-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[meta] set strip = none for release builds
Restore behavior changed in 4e259a7, because it turns out that `strip = "debuginfo"` still strips too much. This was observed with the cargo-nextest 0.9.68-rc.1 binary on illumos, where `pstack` showed lots of ??? marks. Part of #1345.
- Loading branch information
1 parent
ef58431
commit d4f982b
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d4f982b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be an illumos version of rust-lang/rust#122857.
Could you open an issue at rust-lang/rust?
Then I think we can avoid doing strip debuginfo on illumos as we have done for MSVC. (rust-lang/cargo#13630 / taiki-e/upload-rust-binary-action#69)
d4f982b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks -- so I'm not actually sure what's going on since I can't repro this on illumos with a simple example. Even
strip = "none"
seems to cause the data to be shown in pstack, even though I verified it's not in the ELF at all.I have a repo at https://github.com/sunshowers/pstack-test and will keep following up on this as time permits.
d4f982b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also filed oxidecomputer/helios#147
d4f982b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to find out how strip=debuginfo works in illumos, but it seems to work in a different way than MSVC and actually uses a similar way to macOS (rust-lang/rust#102418).
It seems that PR (102418) assumes that the /usr/bin/strip is the illumos native strip utility, and since the strip command on linux basically only supports platforms the same as the host (rust-lang/rust#114411, taiki-e/upload-rust-binary-action#8), it is not surprising that it would work oddly in a cross-compilation.
I have not actually tested anything, but if it is a strip=debuginfo bug, I'm thinking that illumos may need rust-lang/rust#123151 as well as macOS.