-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Profiling code led to segmentation fault and non-terminating state (infinite loop). #4107
Comments
Let me guess, you're running OSX? If so, this is likely a dup of #3971. If not, it would be helpful if you could put the actual code being run into a gist so I can test it. |
I appreciate your offer of help. Basically, I don't know what to do here---this looks like a kernel (Darwin) bug to me (instruction pointers off by one). There's a chance we could work around it by replacing the profiler with a Mac-specific version as suggested by @loladiro (I can't quite find the link right now), but I confess it's not a high priority for me (I don't have a mac, which would make testing pretty difficult, and anyway am swamped for the next couple of months with other things). |
@timholy - i understand, thanks. if i absolutely have to use it, i'll just use it on a vm. but it might be good just to report it to them |
@nutsiepully It would be great to have more eyeballs on this issue, since I am also swamped with other things. My next step was going to be do build a debug version of Apple's libunwind so that I could get run things through gdb and actually be able to step through the segfaulting code. |
Bump, is this still an issue? |
I imagine this is fixed ever since @Keno's patches to libunwind. |
Cool. Closing for now. @nutsiepully, feel free to reopen if you can reproduce. (Ready for school next week?) |
@quinnj - sure, will do. (oh yes!) |
Hi,
I was trying to profile the code provided in this OpenBLAS issue.
It was a simple modification that wraps the code inside a function and then calls it
However, when I ran this code, in the first 2 instances I got a
segmentation fault 11
. After that the code just went into an non-terminating state, and I had to stop processing after around 5 mins of execution.htop
was showing cores being used, so it's possible that the code was running but was terribly slowing down due to the profiler, or it entered some kind of infinite loop.I ran this code a couple of times (in original) without the
@profile
and it completed comfortable after about 80 seconds.The text was updated successfully, but these errors were encountered: