DR debugging and logging - internal tool crash

51 views
Skip to first unread message

Mah

unread,
May 16, 2022, 9:16:41 PM5/16/22
to DynamoRIO Users
Hi, I am trying to debug a client with dynamorio to see sequence of instruction before and after instrumentation. I am getting internal tool crash error with following output:


<log dir=/home/ma843/janus-asan/janus/../external/DynamoRIO-Linux-7.0.0-RC1//bin64/../logs/malloc-diff.2378561.00000000>

<Starting application /auto/homes/ma843/Janus-private/tests/security/bin-clang++/malloc-diff (2378561)>

<Paste into GDB to debug DynamoRIO clients:

set confirm off

add-symbol-file '/home/ma843/janus-asan/janus/../lib/libjasan.so' 0x0000000072007890

add-symbol-file '/auto/homes/ma843/janus-asan/external/DynamoRIO-Linux-7.0.0-RC1/lib64/debug/libdynamorio.so' 0x00007f25aa4c6a68

add-symbol-file '/lib/x86_64-linux-gnu/libstdc++.so.6' 0x00007f25aa145160

add-symbol-file '/lib/x86_64-linux-gnu/libm.so.6' 0x00007f25aa3253c0

add-symbol-file '/lib/x86_64-linux-gnu/libc.so.6' 0x00007f25a9ce6630

add-symbol-file '/usr/lib64/ld-linux-x86-64.so.2' 0x00007f25aa2e8100

add-symbol-file '/lib/x86_64-linux-gnu/libgcc_s.so.1' 0x00007f25aa2ce5e0

>

<Initial options = -no_dynamic_options -loglevel 4 -checklevel 0 -client_lib '/home/ma843/janus-asan/janus/../lib/libjasan.so;0;"@/home/ma843/Janus-private/tests/security/bin-clang++/malloc-diff.jrs" "@1" "@0"' -code_api -stack_size 56K -max_elide_jmp 0 -max_elide_call 0 -early_inject -emulate_brk -no_inline_ignored_syscalls -native_exec_default_list '' -no_native_exec_managed_code -no_indcall2direct >

<spurious rep/repne prefix @0x00007f25aa469df0 (f3 0f 1e fa): >

<Invalid opcode encountered>

<(1+x) Handling our fault in a TRY at 0x00007f25aa70047c>

<Application /auto/homes/ma843/Janus-private/tests/security/bin-clang++/malloc-diff (2378561).  Tool internal crash at PC 0x000000003cf44728.  Please report this at your tool's issue tracker.  Program aborted.

Received SIGSEGV at unknown pc 0x000000003cf44728 in thread 2378561

Base: 0x00007f25aa499000

Registers:eax=0x00000000000000ee ebx=0x00007ffcdbc76280 ecx=0x0000000000000000 edx=0x0000000000000000

   esi=0x000000000000004a edi=0x00007f25aa28b030 esp=0x00007ffcdbc75878 ebp=0x00007ffcdbc762c8

   r8 =0x0000000000000000 r9 =0x0000000000000000 r10=0x0000000000000008 r11=0x0000000000000246

   r12=0x00007ffcdbc762c0 r13=0x00007ffcdbc76418 r14=0x00007f25aa497190 r15=0x0000000000000000

   eflags=0x0000000000010246

version 7.0.0, build 1

-no_dynamic_options -loglevel 4 -checklevel 0 -client_lib '/home/ma843/janus-asan/janus/../lib/libjasan.so;0;"@/home/ma843/Janus-private/tests/security/bin-clang++/malloc-diff.jrs" "@1" "@0"' -code_api -stack_size 56K -max_elide_jmp 0 -max_elide_call 0 -early_inject -emulate_brk -no_inline_ignored_syscalls -native_exec_d

0x00007ffcdbc762c8 0x0000000000000000>


I have also attached the log file (compressed). 

The <Invalid opcode encountered> error also shows when run without a client, but DR doesn't crash. 

Also, what are the labels L0 and L1 in the log file. I understand that L3 is non-meta( application) instruction and m4 is meta instruction. 


log.0.2378561.html.zip

Nahome Bete

unread,
May 18, 2022, 2:03:01 PM5/18/22
to DynamoRIO Users
The DR version you are using is very old (DynamoRIO-Linux-7.0.0-RC1), can you use the latest release and try it again? 
Reply all
Reply to author
Forward
0 new messages