-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
Segfaulting, unsure why. #863
Comments
Edit: Just re-attached, it'll crash any time I hit a breakpoint, tell it to F9 resume, then try to interact with EDB. |
Interesting, to be clear, you are saying that edb segfaults, not the process being debugged, correct? Could you share more about your system, and anything else that would help me reproduce the issue? |
Yes, edb segfaults, not the process being debugged. I've found a way to prevent it. As long as I don't interact with edb after I F9 resume it's fine and I can trigger safe interaction by simply doing something in the software to trigger a breakpoint again, then edb is fine until the next F9. What could I share about the system to help? Given the nature of what I'm currently doing...it'd best be something discussed privately at most. It's always follows:
Process is still running. |
Edb seems to only crash if the process does something in particular, but unfortunately that's all I can determine. The nature of what I'm doing is sensitive. |
I understand that what you are doing is sensitive. Any chance you can narrow down the issue in some kind of minimum reproducible example? Unfortunately, I can't do much to fix the issue unless I can reproduce it locally. |
I think it would be best if I could try to debug the issue locally. I've found it only segfaults if the target process goes through a specific routine. It's a process that most definitely does low-level system access (raw drive access, RAID access, mdamd, etc). A similar routine does not cause the issue but one in particular does and I can trigger it -every- time. Edit: I'm currently forced to work on a very small drive just to use this debugger, so I can't set up a dev environment to mimic and I doubt you'd be able to recreate (easily) the circumstances to reproduce the issue unless you have some spare drives and turn a bit Shultz about the use of the debugger. X_X; |
You may want to attach to EDB with GDB and see where and how it crashes. |
All gdb gives me:
Edit: Attempted to consume those signals and |
OK, well that helps a little bit. I can see where in there are possible memory errors and add some extra asserts to try to narrow it down. |
Hmm, so I've looked at the code in that routine and there's not a ton to go on at the moment. There aren't many memory references to possibly be null or out of bounds, but there are some that I can investigate. A few thoughts:
|
I'll attempt to use the AUR's Edit:
Looks like 1376. I am pretty sure the software creates a thread and then keels it after it's done with it. If it didn't then what it's being asked to do would be monumentally slow. |
Interesting. This is super helpful. I can definitely make the code a little more resilient here. Obviously, it is assuming that Thanks! |
I'm not sure what is triggering a segfault but the process being debugged doesn't crash and I can re-attach to it. Triggering a routine that I had a previous breakpoint on causes EDB to catch it, then I restore the opcodes and correct the RIP, re-add breakpoint, F9 resume, process is fine and EDB is at this point still running but as soon as I attempt to interact with EDB it'll segfault, even if it's a simple scroll.
The text was updated successfully, but these errors were encountered: