Skip to content

attempting to build on NetBSD/amd64 9.99.81 causes boootstrap/debug/rustc to crash with a SIGSEGV #135513

Open
@robohack

Description

@robohack

I've been attempting to build rust from a clone done today (HEAD is 3736b85) on NetBSD/amd64 9.99.81 and I'm seeing boootstrap/debug/rustc crash with a SIGSEGV while "Building stage1 library artifacts".

./configure --set install.prefix=/usr/local --set install.sysconfdir=/usr/local/etc

Then because I didn't want to build LLVM I added the following line to the [llvm] section of the generated ./config.toml:

download-ci-llvm = true

Running ./x.py build results in:

   Compiling llvm-bitcode-linker v0.0.1 (/work/woods/m-rust/src/tools/llvm-bitcode-linker)
    Finished `release` profile [optimized] target(s) in 26.06s
Building stage1 library artifacts (x86_64-unknown-netbsd)
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/work/woods/m-rust/build/bootstrap/debug/rustc /work/woods/m-rust/build/bootstrap/debug/rustc - --crate-name ___ --print=file-names -Csymbol-mangling-version=legacy '--check-cfg=cfg(feature,values(any()))' -Zunstable-options '--check-cfg=cfg(bootstrap)' -Zmacro-backtrace -Csplit-debuginfo=off -Cprefer-dynamic -Zinline-mir -Zinline-mir-preserve-debug -Zmir_strip_debuginfo=locals-in-tiny-functions -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Cembed-bitcode=yes -Cforce-frame-pointers=yes '-Zcrate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/")' --target x86_64-unknown-netbsd --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 254)
  --- stderr
  rustc exited with signal: 11 (SIGSEGV) (core dumped)
Build completed unsuccessfully in 0:18:05

GDB 11.0 can't find any symbols to give a reasonable stack backtrace from the resulting core (despite file reporting that the binary is "not stripped").

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.O-netbsdOperating system: NetBSDS-needs-infoStatus: The issue lacks details necessary to triage or act on it.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions