Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Edb hangs or crashes on multi threads binary. #674
Most of the time it stucks after some syscalls return (often syscall 0x38 or futex syscall). the menu keeps working, i can restart or kill the program but not keep on debugging.
Interesting that 0.9 has no issue as there hasn't (shouldn't) been any fundamental changes to how things worked with regard to threads. Is there a program I can use to replicate it locally easily?
Or is it basically any threaded program?
Unfortunately, dealing with threads is a bit of a difficult task to get just right.
With edb 1.0 you can catch or pass exceptions to many sig signals, not with 0.9 version, and i'm wondering if there is a problem in this feature.
I think I see the source of the issue... and it's complicated :-P.
I've reworked how exception ignoring works because it frankly made more sense to handle it at a lower level then we were. And I was able to resolve the hang as well.
However, there is still an issue:
Suppose there are 3 threads, and a SIGUSR1 comes in, a few things happen:
I'll have to think a bit on how to address this, but whatever I come up with, should be able to address this issue and similar ones to it completely.
added a commit
Sep 14, 2018
Just tried latest git with the same binary:
-However when ignoring all signals exceptions with the preference menu, the debugger kills the program as soon as i run it .
Thanks for your job.