-
Notifications
You must be signed in to change notification settings - Fork 10
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
Figure out pstack and Rust strip = "symbols" interaction #147
Comments
Does this mean there is a problem only with strip=debuginfo? Also, is this a problem that only occurs with cross-compilation? If both are true, since only strip=debuginfo use /usr/bin/strip, that would be consistent with my guess in nextest-rs/nextest@d4f982b#commitcomment-140325483 that non-illumos host's /usr/bin/strip are causing some problems. |
Ah no, I mean that no matter what I set I do think this is likely a cross-compilation issue as you pointed out -- I was doing my builds natively on illumos but the CI that runs |
@taiki-e -- so what can we do here? Is this something where rustc can help, or maybe cross? |
For now, I think it makes sense to wait for discussion at the next compiler-team meeting (rust-lang/rust#123151 (comment)). If the decision is made to use llvm-strip, the fix will likely be backported to stable (as it also affects macOS, which is tier 1 target). |
Huh, reading this: https://illumos.org/books/dev/debugging.html
pstack doesn't rely on DWARF? oh dear... I think our backtrace testing infra assumes that you're using the DWARF-centric unwinding and symbolication strategy if you're a Unix... |
(writing up a quick summary so I don't forget about this)
@jclulow reported to me that a hung nextest process didn't show its symbols in
pstack
. It turned out that was because the build process we were using within nextest was stripping all symbols.I tried switching to
strip = "debuginfo"
but that didn't seem to help. The only thing that caused stacks to show up inpstack
wasstrip = "none"
.In nextest-rs/nextest@d4f982b#commitcomment-140289873, Taiki believes that this is a bug (there was apparently a similar bug in MSVC as well.) I tried setting up a small project to investigate:
https://github.com/sunshowers/pstack-test
but found that even with the
strip-symbols
profile (which activatesstrip = "symbols"
),pstack
could show function symbols. Not quite clear why that would be happening though!The text was updated successfully, but these errors were encountered: