-
Notifications
You must be signed in to change notification settings - Fork 82
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
Stack is empty with -fno-exceptions
on m2 macbook
#161
Comments
-fno-exceptions
-fno-exceptions
on m2 macbook
I found it can work on linux.
|
Thank you for opening this and providing suchc a clear minimal reproducible example. I will look into this tomorrow. |
Alright, I have reproduced the behavior you describe. I think what's happening here is that I'll look into how to and whether to provide a better library default here to prevent issues in the future. |
libunwind indeed work, I test it with this patch #162
I found that I might not have built it correctly, which means the output is wrong. The stack is generated but does not properly resolve symbols, similar to jeremy-rifkin's result. |
Thanks so much for taking the time to figure that out! I gave your patch a try with the repro setup using |
Sorry for the synchronization issue. When I use GCC on macOS, the stack is generated correctly (even with unwind). However, with Apple Clang or Clang, the stack remains empty. |
Thanks for clarifying, interesting that it doesn't work on clang |
Tested a number of configurations:
I didn't test -stdlib=libstdc++ behavior. I will proceed with setting execinfo as the default for clang on apple. |
We can build this library without the -no-exceptions flag and then link it with a no-exceptions library. However, I found that without exception support, the stack will be empty. Here is an simple example.
I test it on Apple M2 Pro macbook.
The text was updated successfully, but these errors were encountered: