-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
lldb can't continue on NilAccessError, stuck after EXC_BAD_ACCESS #9753
Comments
If it only stuck there when lldb is concerned, then isn't it lldb's bug and not Nim's? |
not necessarily, see #9634 (comment) for another case where c++ code works but not nim code, with lldb; |
I still don't see why this is a Nim bug. It's the compiler job to generate code that works correctly natively. The fact that it doesn't work on LLDB is an LLDB bug. You can't compare with C++ because of the differences between implementation of underlying functions and exceptions. I think you should raise this to the LLVM bug tracker. I'm certain that LLDB developers would be interested in it. |
just tried on ubuntu: lldb and gdb work fine ; so it's either an OSX problem or lldb on OSX problem; can someone who's on an older version of OSX please try ? |
update: I tried using same technique as in #9634 (comment) ; result:
conclusion: this time, it's an lldb issue, unlike #9634 |
update:
there are embryos of solutions here: https://stackoverflow.com/questions/26829119/how-to-make-lldb-ignore-exc-bad-access-exception |
Try to compile with |
just did, same issue; I'm pretty sure the culprit lies in #9753 (comment)
so arguments like "only gdb is supported" by Nim doesn't really help if you're on OSX; my hope is stuff like https://stackoverflow.com/questions/26829119/how-to-make-lldb-ignore-exc-bad-access-exception is fixable (even if requiring locally patched |
filed https://bugs.llvm.org/show_bug.cgi?id=40669, following up there |
nim c --debugger:native bugs/lldb/t01.nim
lldb bugs/lldb/t01
note
I'm on OSX (mojave)
can't test on gdb because of https://stackoverflow.com/questions/52529838/gdb-8-2-cant-recognized-executable-file-on-macos-mojave-10-14 as mentioned here #9634
The text was updated successfully, but these errors were encountered: