DynamoRIO / DynamoRIO/dynamorio
CRASH native_exec combined with early_inject
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 629
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 30
Description
I have not diagnosed the exact cause, but it doesn't seem to be
-emulate_brk (which assumes we're in control the whole execution). Given
that -native_exec is not high priority, for now I'm just going to change
the tests to use late injection.
```
# bin32/drrun -debug -msgbox_mask 12 -loglevel 2 -native_exec_list libcommon.nativeexec.appdll.so -- suite/tests/bin/common.nativeexec
calling via IAT-style call
nativeexec.dll:import_me1(57)
calling via PLT-style call
nativeexec.dll:import_me2(37)
calling via funky ind call
nativeexec.dll:import_me3(17)
calling nested native
nativeexec.exe:print_int(42)
calling cross-module unwinder
before longjmp, 1
after longjmp
calling indirect ret_imm
-> 40
calling loop_test
all done
SC_XSP)
(Error occurred @1840 frags)
version 5.0.16523, custom build
-no_dynamic_options -loglevel 2 -code_api -msgbox_mask 12 -stack_size 56K -max_elide_jmp 0 -max_elide_call 0 -early_inject -emulate_brk -no_inline_ignored_syscalls -native_exec_default_list '' -native_exec_list 'libcommon.nativeexec.appdll.so' -no_native_exec_managed_code -no_indcall2direct
0x54a8e93c 0xf70f3750
0x54a8ea70 0xf72a96d3
0x54a8eaf0 0xf7274032>
Program received signal SIGSEGV, Segmentation fault.
0x49303fbc in ___tls_get_addr_internal () from /lib/ld-linux.so.2
(gdb) bt
#0 0x49303fbc in ___tls_get_addr_internal () from /lib/ld-linux.so.2
#1 0x493473d3 in ?? ()
```
Contributor guide
Assessment
This issue has not been assessed yet.