-
Notifications
You must be signed in to change notification settings - Fork 291
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
How to debug SIGBUS error #3168
Comments
Can you run with |
Thank you, I didn't know this existed. I'll try it and report back. |
Unfortunately, the report doesn't really seem to help me much |
@Wolvan - agree, looks like the stack is showing the signal handler context, not the failing context (signal originating context) and that is not very useful. Do you have |
Problem seems to come from FSEvents module. Not getting the SIGBUS signal in lldb but EXC_BAD_ACCESS seems to be very much related. I updated FSEvents and will see if the problem persists, but I attached the lldb output of error and stack below, maybe you see something that I don't? This was my first time using lldb, after all.
|
|
Knowing it was fsevents that caused me problems brought me on the right track. Actually helped me understand debugging c++ code, so that was a nice side effect. I appreciate the time you've taken for me! |
Working a piece of code that does a lot of fs interaction, my node application terminates unrecoverably with a SIGBUS error. No Stack Trace is available that could lead me towards the faulting module or Node Core.
I decided to listen to the SIGBUS signal and execute dmesg at crashtime, which worked with the following output
The following run crashed again sometime in with a similar dmesg output, but the virtual address
0x105004000
So far it seemed to relate to executing remove/unlink on a file or directory, but I changed my strategy to calling the shell's
rm
function instead of using node's integrated unlink, the same issue occurs.I know there is the module
segfault-handler
, but that does not catch stack traces for SIGBUS, I already tried.The text was updated successfully, but these errors were encountered: