Skip to content
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

random segfault #210

Closed
Linker-123 opened this issue Aug 23, 2023 · 8 comments
Closed

random segfault #210

Linker-123 opened this issue Aug 23, 2023 · 8 comments

Comments

@Linker-123
Copy link

I tried to use self profile and summarize seems to segfault.

Steps to reproduce:

  • Download and install the latest nightly toolchain
  • Set the toolchain to default
  • run RUSTFLAGS="-Zself-profile" cargo build
  • try to use summarize summarize <filename>

Result:
zsh: segmentation fault (core dumped) summarize summarize ...

Additional info

I'm working in a cargo workspace where each member contains a binary and a library
some contain two binaries.

System Info

rustup --version
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.74.0-nightly (c469197b1 2023-08-22)`

ArchLinux, kernel 6.4.11-arch2-1

@andjo403
Copy link
Contributor

more information is needed is the crate that you get the fault with available some where or can you print the backtrace from the coredump?

@bjorn3
Copy link
Member

bjorn3 commented Aug 26, 2023

Which version of summarize are you using?

@tgnottingham
Copy link

I see segfaults when running summarize in release mode off of the stable branch / 10.0.0 tag (6129647), which is what you get when installing as laid out in the README (cargo install --git https://github.com/rust-lang/measureme --branch stable summarize).

The segfault doesn't happen when built with the dev profile on the stable branch, nor when built with the release profile on the master branch. Git bisecting shows that it was fixed by #202.

@Linker-123
Copy link
Author

more information is needed is the crate that you get the fault with available some where or can you print the backtrace from the coredump?

No, It's a private project, I no longer have access to the backtrace unfortunately, can try to reproduce.

@Linker-123
Copy link
Author

I followed the instructions in the readme, seems like @tgnottingham was able to reproduce my experience.

@lazear
Copy link

lazear commented Sep 20, 2023

I am having the same issue - on both a private project, but also a public one.

$ cargo install --git https://github.com/rust-lang/measureme --branch stable summarize
$ RUSTFLAGS="-Zself-profile" cargo +"nightly-2023-06-15-aarch64-apple-darwin" build
$ summarize summarize sage-0029664.mm_profdata
> zsh: segmentation fault  summarize summarize sage-0029664.mm_profdata

Darwin Michaels-MacBook-Air.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:52 PDT 2023; arm64

FYI, removing the --branch stable from the installation command was sufficient to fix the issue

@Zannick
Copy link

Zannick commented Oct 27, 2023

Stable is now 2 years since its last update, and I just encountered this problem myself. Please update stable or update the docs.

@michaelwoerister
Copy link
Member

The stable branch is up-to-date now. We'll look into a way for better taking care of this in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants