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

SIGSEGV when std::time::Instant::now() called #125290

Open
sunny0531 opened this issue May 19, 2024 · 3 comments
Open

SIGSEGV when std::time::Instant::now() called #125290

sunny0531 opened this issue May 19, 2024 · 3 comments
Labels
C-discussion Category: Discussion or questions that doesn't represent real issues. O-NixOS Operating system: NixOS, https://nixos.org/

Comments

@sunny0531
Copy link

sunny0531 commented May 19, 2024

I tried this code:

fn main() {
    let now=std::time::Instant::now();
    println!("{:#?}",now);
}

Then it crashed with signal SIGSEGV
signal SIGSEGV: address not mapped to object (fault address: 0x680)

Meta

Unstable channel Nix
rustc --version --verbose:

rustc 1.77.2 (25ef9e3d8 2024-04-09) (built from a source tarball)
binary: rustc
commit-hash: 25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04
commit-date: 2024-04-09
host: x86_64-unknown-linux-gnu
release: 1.77.2
LLVM version: 17.0.6
@sunny0531 sunny0531 added the C-bug Category: This is a bug. label May 19, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 19, 2024
@tbu-
Copy link
Contributor

tbu- commented May 19, 2024

Do you have a stack trace?

@Nilstrieb
Copy link
Member

I have no problems with my nixos-unstable. Have you built this executable before doing an update and it segfaults now after the update? That happens sometimes with nix and isn't a bug in rust

@workingjubilee
Copy link
Contributor

workingjubilee commented May 20, 2024

Please retry with RUST_BACKTRACE=1? Or maybe try using gdb on the core dump...

@jieyouxu jieyouxu added the S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. label May 22, 2024
@saethlin saethlin added O-NixOS Operating system: NixOS, https://nixos.org/ C-discussion Category: Discussion or questions that doesn't represent real issues. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. C-bug Category: This is a bug. S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. labels May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-discussion Category: Discussion or questions that doesn't represent real issues. O-NixOS Operating system: NixOS, https://nixos.org/
Projects
None yet
Development

No branches or pull requests

7 participants