Skip to content

Rust 1.23 bus error during stage 2 build on Solaris sparc #47930

Closed
@psumbera

Description

@psumbera

While building Rust 1.23 (using 1.22.1) on Solaris sparc it ends like this (on intel it's ok):

...
Copying stage2 rustc from stage1 (sparcv9-sun-solaris -> sparcv9-sun-solaris / sparcv9-sun-solaris)
Building rustdoc for stage2 (sparcv9-sun-solaris)
   Compiling void v1.0.2
   Compiling bitflags v0.9.1
   Compiling cc v1.0.3
   Compiling fnv v1.0.6
error: Could not compile `void`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `bitflags`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `fnv`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `cc`.
...

There are four core dumps from this:


Feb  1 12:20:53 s11-u3-ul-cbe genunix: [ID 603404 kern.notice] NOTICE: core_log: rustc[6944] core dumped: /var/cores/core.rustc.157622.1517487635
Feb  1 12:20:57 s11-u3-ul-cbe genunix: [ID 603404 kern.notice] NOTICE: core_log: rustc[6940] core dumped: /var/cores/core.rustc.157622.1517487640
Feb  1 12:21:03 s11-u3-ul-cbe genunix: [ID 603404 kern.notice] NOTICE: core_log: rustc[6938] core dumped: /var/cores/core.rustc.157622.1517487646
Feb  1 12:21:03 s11-u3-ul-cbe genunix: [ID 603404 kern.notice] NOTICE: core_log: rustc[6942] core dumped: /var/cores/core.rustc.157622.1517487649

All cores look very similar:

0007ff0d6d7f3600 librustc_trans-addd6d21065150e2.so`_$LT$std..sync..mpsc..Sender$LT$T$GT$$GT$::send::h815a2ce69c64504c+0x18(0, 10007ff0d7888fb, 780007ff0d6d7f41, d000000016264f79,
800007ff0d6d7f41, 2800000000000000)

rustc command line which cores dump is:

s11-u3-ul-cbe 13:22 /scratch/userland-rust-s11.3/components/rust/rustc/build/sparcv9: RUSTBUILD_NATIVE_DIR=/scratch/userland-rust-s11.3/components/rust/rustc/build/sparcv9/build/sparcv9-sun-solaris/native RUSTC=/scratch/userland-rust-s11.3/components/rust/rustc/build/sparcv9/build/bootstrap/debug/rustc RUSTC_REAL=/scratch/userland-rust-s11.3/components/rust/rustc/build/sparcv9/build/sparcv9-sun-solaris/stage2/bin/rustc RUSTC_STAGE=2 RUSTC_DEBUG_ASSERTIONS=false RUSTC_SYSROOT=/scratch/userland-rust-s11.3/components/rust/rustc/build/sparcv9/build/sparcv9-sun-solaris/stage2 RUSTC_LIBDIR=/scratch/userland-rust-s11.3/components/rust/rustc/build/sparcv9/build/sparcv9-sun-solaris/stage2/lib RUSTC_RPATH=true RUSTDOC=/scratch/userland-rust-s11.3/components/rust/rustc/build/sparcv9/build/bootstrap/debug/rustdoc RUSTDOC_REAL=/path/to/nowhere/rustdoc/not/required /scratch/userland-rust-s11.3/components/rust/rustc/build/sparcv9/build/bootstrap/debug/rustc --crate-name bitflags /scratch/userland-rust-s11.3/components/rust/rustc/rustc-1.23.0-src-vendored-sources/bitflags-0.7.0/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=2 -C metadata=484c479121fee6f9 -C extra-filename=-484c479121fee6f9 --out-dir /scratch/userland-rust-s11.3/components/rust/rustc/build/sparcv9/build/sparcv9-sun-solaris/stage2-tools/sparcv9-sun-solaris/release/deps --target sparcv9-sun-solaris -L dependency=/scratch/userland-rust-s11.3/components/rust/rustc/build/sparcv9/build/sparcv9-sun-solaris/stage2-tools/sparcv9-sun-solaris/release/deps -L dependency=/scratch/userland-rust-s11.3/components/rust/rustc/build/sparcv9/build/sparcv9-sun-solaris/stage2-tools/release/deps --cap-lints allow --verbose
Segmentation Fault (core dumped)

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-SPARCTarget: SPARC processorsT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions