In the latest version of Dyninst, rewriting a PIE binary (not a library) results in an executable that immediately segfaults. This happens even if no instrumentation was done at all. Simply opening the binary and saving it
reproduces the problem. Here's a sample backtrace:Â
dl_main at rtld.c:172
_dl_sysdep_start at ../elf/dl-sysdep.c:249
_dl_start_final at rtld.c:332
dl_start at rtld.c:558
_start() from /lib64/ld-linux-x86_64.so.2
I am having this issue on both Ubuntu 14.04 and Ubuntu 16, the x86_64 versions.
Any clue?Â
Thanks.