sprintf cause crash

33 views
Skip to first unread message

liang fang

unread,
Apr 26, 2022, 8:57:10 AM4/26/22
to DynamoRIO Users
please check my app,it will crash on aarch64 platform while test programe with multi-thread.  event_thread_init will be called twice, it will crash at the second time. i don't know why it will be called twice, maybe multi-thread cause that.

here is my log:
....
(event_thread_init|129)
(event_thread_init|133)
mainfunc_start_time:1650977654, Tue Apr 26 20:54:14 2022
Note: Google Test filter = DlschFddPerformanceItTest.PerformanceMonitorSuSch9Ue
[start Run]

(DlschFddPerformanceItTest)
(event_thread_init|129)
(event_thread_init|133)
<Application /5g_build/5g_Main/WN_5G_BTS_L2L3_23A2/test/l2_pcit/linux_output/l2_pc_it_performance (5652).  DynamoRIO Sample Client 'memtrace' internal crash at PC 0x0000fffdb3b472f4.  Please report this at http://dynamorio.org/issues.  Program aborted.
Received SIGSEGV at pc 0x0000fffdb3b472f4 in thread 5683
Base: 0x0000000071000000
Registers:      eflags=0x0000000080000000
version 9.0.19096, custom build
-no_dynamic_options -client_lib '/home/f00564767/work/DynamoRIO/codetrace/build/libmemtrace.so;0;"-tollget-collect" "DlschCcSchedulerJobProc"' -client_lib64 '/home/f00564767/work/DynamoRIO/codetrace/build/libmemtrace.so;0;"-tollget-collect" "DlschCcSchedulerJobProc"' -code_api -stack_size 56K -signal_stack_size 32K -max_
0x0000fffdb43a3540 0x0000fffdb3b442d0
0x0000fffdb43a36b0 0x0000fffdb3b62a8c
0x0000fffdb43a3c90 0x0000fffdb3b4b244
0x0000fffdb43a3df0 0x0000000072001a78
0x0000fffdb43a3f10 0x000000007300549c
0x0000fffdb43a3f50 0x00000000710b59bc
0x0000fffdb43a4540 0x00000000710487b4
0x0000fffdb43a45b0 0x00000000711570d8
0x0000fffdb43a4610 0x0000fffdb384461c
0x0000ffffd877e040 0x000000000cf28904
0x0000ffffd877e080 0x000000000cf48394
0x0000ffffd877e0e0 0x000000000d0084cc
0x0000ffffd877e130 0x000000000ae52d7c
0x0000ffffd877e1d0 0x000000000ae4b3c4
0x0000ffffd877e1f0 0x000000000a3d4834>

real    0m1.518s
user    0m1.134s
sys     0m0.535s


memtrace.cpp

John Galea

unread,
Apr 26, 2022, 4:42:36 PM4/26/22
to DynamoRIO Users
Looking at the code, lines 138 and 139 don't seem right. You have a format string bugs.

```

```

liang fang

unread,
Apr 27, 2022, 4:17:27 AM4/27/22
to DynamoRIO Users
i know that var is very large, why that is string bug
Reply all
Reply to author
Forward
0 new messages