Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Injecting library to a multithreaded process causes it to segfault #7

Open
korcankaraokcu opened this issue Jun 3, 2016 · 3 comments

Comments

@korcankaraokcu
Copy link

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

@ar1a
Copy link

ar1a commented Jul 10, 2016

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

@jm33-m0
Copy link

jm33-m0 commented Aug 17, 2020

ptrace_cont(target);

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

@gordon0001
Copy link

gordon0001 commented Mar 12, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants