vikasnkumar / hotpatch

Hot patching executables on Linux using .so file injection
http://www.selectiveintellect.com/hotpatch.html
BSD 3-Clause "New" or "Revised" License
360 stars 119 forks source link

Segmentation fault after injecting library #12

Closed qwrt747 closed 8 years ago

qwrt747 commented 8 years ago

hi, im trying comand line version of hotpatcher by your test library and symbol, it was done and date has written in log file, but right after injection,the target application get crashed and segfault error shown.

is it regular or something is wrong im using ubuntu 14.04 i386

edit: it has arbitrary functionality! sometimes is done correctly ,but now, it just inject in my self-written app and for other processes like firefox (in -vvv mode) prints:

...
[hotpatch_inject_library:783] mysym not invoked as dlsym() wasn't found.
...

how to solve it? thanks

qwrt747 commented 8 years ago

finally it seems , a delay solves every thing. injecting after completely starting the target solved my problems. good luck

vikasnkumar commented 8 years ago

Glad that you solved your race condition. sorry was unable to respond earlier.