-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Crash compiling my unsafe (crappy) code #8286
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
Comments
Could you run rustc under gdb and gist the backtrace from rust_task_fail? |
I installed rustc via: |
We don't give good debug output yet, but the backtrace will show us mangled functions names which are useful. |
Also, seeing if you can reproduce with HEAD would be useful. |
Well, when I run
The program quits. It crashes on a rust level, not a C/C++ level. Is there a way to get a stacktrace from a |
Ok I sat a breakpoint at |
Yeah, |
I did mention to get a backtrace from rust_task_fail :) Yours works too, though. |
I suspect it might be triggered by one of the destructors. Try commenting them out and see if it's still reproducible? |
Indeed. Commenting out the Weakref destructor makes it compile! |
I tried to make myself familiar with rust and tried to compile this code with rust 0.7. rustc crashed and gave me this trace.
The text was updated successfully, but these errors were encountered: