gaffe23/linux-inject

Injecting library to a multithreaded process causes it to segfault

korcankaraokcu opened this issue · 3 comments

After executing the code "ptrace_cont(target);" in line 258, target segfaults. The target is Torchlight2

ar1a commented

Can confirm, I have tried with Team fortress 2 and the target segfaults.

ptrace_cont(target);

I have tested with sample-target, it throws segmentation fault on ptrace_cont(target);

what do you expect what is happening when you are writing x86_64 instructions to the code section of a x86 process and then run it? segfault

if your game is x86, then you need a x86 shared object and a x86 injector. tf2 is x86, a x86_64 .so+injector won't work. keep in mind. you might need to build a cross compiler for i686/x86 if you are on x86_64 and the game is x86 only to get it working successfully