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

multithreaded programs with ddi tool #10

Open
seoyoonm opened this issue Nov 24, 2014 · 1 comment
Open

multithreaded programs with ddi tool #10

seoyoonm opened this issue Nov 24, 2014 · 1 comment

Comments

@seoyoonm
Copy link

Hi, I am very impressed the research VirtualSwindle based on ddi tool. :)
So, I want to use this tool to see method call. But, when I hook a method with ddi tool, some apps crash with segmentation fault.

I just hooked a method named toString() as the sample code strmon.c. My toy app works well; but some apps crash with segmentation fault. For example, I tried hooking toString() in the application Kakao talk, which is famous messenger app in Korea.

I asked this issue to Collin by mail. He answered it is likely that the function is called by multiple threads. It will lead to a crash. I confirmed that kakaotalk is implemented with threads.

So, my question is how can I make this tool work in multithread environment. Do you have any idea? Can you give me a hint where I should modify the tool?

@seoyoonm seoyoonm changed the title App crashes with segmentation fault multithreaded programs with ddi tool Nov 24, 2014
@seoyoonm
Copy link
Author

I want to know the reason why the ddi tool gives segmentation fault in the multithreaded application. Do they race on the library function? But, the application works well with the function( e.x.,toString() ) in java. Then, why the application have segmentation fault not in java method but in library function?

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

1 participant