-
Notifications
You must be signed in to change notification settings - Fork 12.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
rustc segfaults when printing a backtrace for ICEs when debug=true is set #69151
Comments
cc @eddyb for debuginfo size, though I imagine this is just another case where our defaults being =2 vs. =1 is probably not ideal. |
You pretty much never want
|
Note that the same happens when building servo in debug mode, it's just that when 2GiB of Debug Symbols are exceeded libbacktrace failed. The actual error is ianlancetaylor/libbacktrace#29, where there even is a patch added, I just need to try it out. |
The patch at ianlancetaylor/libbacktrace#29 fixes things, but mmapio should still be used, which actually also removes the trigger condition for the bug present in |
With #70361 merged, this can be closed |
When
debug=true
is set inconfig.toml,
my machine generates alibrustc_driver.so
with a size of 2.2 GB, of which 2.1 GB is debuginfo. This ends up triggering ianlancetaylor/libbacktrace#32. Sincebacktrace-rs
ignores errors fromlibbacktrace
, we continue trying to print the backtrace, which leads to a segfaut since thestrtab
has been freed due to thelibbacktrace
error.There are a couple of ways that we can address this:
libbacktrace
bug - I think this should be fairly straightforward, but I haven't attempted it yet.backtrace-rs
'sgimli
backend - however, I don't think it's feature-complete atm.It would probably also be a good idea to investigate why 2.1 GB of debuginfo is getting generated - this seems really excessive.
The text was updated successfully, but these errors were encountered: