Opened 3 months ago

Last modified 3 weeks ago

#26468 new defect

Compiling rustc on a 32bit Linux leads to segfault on some machines

Reported by: gk Owned by: tbb-team
Priority: High Milestone:
Component: Applications/Tor Browser Version:
Severity: Normal Keywords: ff60-esr, tbb-rbm, GeorgKoppen201809, TorBrowserTeam201809
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by gk)

On one of my build machines I can't compile the Rust compiler for Linux 32bit. Rather, I get a segfault in stage0:

error: Could not compile `rustc`.

Caused by:
  process didn't exit successfully: `/var/tmp/build/rustc-1.26.1-src/build/build/bootstrap/debug/rustc --crate-name rustc librustc/lib.rs --error-format json --crate-type dylib --emit=dep-info,link -C prefer-dynamic -C opt-level=2 -C metadata=62da728f128af3fa -C extra-filename=-62da728f128af3fa --out-dir /var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps --target i686-unknown-linux-gnu -L dependency=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps -L dependency=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/release/deps --extern syntax_pos=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libsyntax_pos-956e46049acbb600.so --extern rustc_back=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/librustc_back-d5f9039f91fa232f.so --extern flate2=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libflate2-06a170b7b78daff3.rlib --extern serialize=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libserialize-be5d856205d3af9f.so --extern serialize=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libserialize-be5d856205d3af9f.rlib --extern rustc_const_math=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/librustc_const_math-1a374f4e5cd0912b.so --extern backtrace=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libbacktrace-cbe0b3a6423ab494.rlib --extern lazy_static=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/liblazy_static-674a88edfbfebb58.rlib --extern graphviz=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libgraphviz-8ccf05007c6f4e63.so --extern rustc_errors=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/librustc_errors-1dfae20cf97cb076.so --extern byteorder=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libbyteorder-c95b5065cc316357.rlib --extern syntax=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libsyntax-bd1a771ca7a469d4.so --extern tempdir=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libtempdir-713a439227f6e59f.rlib --extern bitflags=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libbitflags-5ec3c7f454c41b77.rlib --extern arena=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libarena-3efd8026fabf93e2.so --extern rustc_apfloat=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/librustc_apfloat-4ae4d4d739a0e47d.rlib --extern log=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/liblog-ecf25297be670426.rlib --extern fmt_macros=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libfmt_macros-a9f532f6a542c80f.so --extern rustc_data_structures=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/librustc_data_structures-98fca6e9d8caf27c.so --extern proc_macro=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libproc_macro-d1676b8843c4f7c5.so --extern jobserver=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/deps/libjobserver-3052499a1818882b.rlib -L native=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/build/backtrace-sys-6855d45accb2e023/out/.libs -L native=/var/tmp/build/rustc-1.26.1-src/build/build/i686-unknown-linux-gnu/stage0-rustc/i686-unknown-linux-gnu/release/build/miniz-sys-0d14bf4e8d0dcb19/out` (signal: 11, SIGSEGV: invalid memory reference)
thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1064:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
command did not execute successfully: "/var/tmp/dist/rust-rust-old/bin/cargo" "build" "--target" "i686-unknown-linux-gnu" "--release" "--frozen" "--features" " jemalloc" "--manifest-path" "/var/tmp/build/rustc-1.26.1-src/src/rustc/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101
failed to run: /var/tmp/build/rustc-1.26.1-src/build/build/bootstrap/debug/bootstrap build

That might affect other builders as well and could harm our reproducible builds efforts.

Child Tickets

Change History (7)

comment:1 Changed 3 months ago by gk

Description: modified (diff)

comment:2 Changed 3 months ago by gk

Keywords: TorBrowserTeam201807 added; TorBrowserTeam201806 removed

Moving first batch of tickets to July 2018

comment:3 Changed 3 months ago by gk

Keywords: GeorgKoppen201807 added; GeorgKoppen201806 removed

Moving my tickets.

comment:4 Changed 8 weeks ago by gk

Keywords: GeorgKoppen201808 added; GeorgKoppen201807 removed

Moving my tickets.

comment:5 Changed 8 weeks ago by gk

Keywords: TorBrowserTeam201808 added; TorBrowserTeam201807 removed

Move our tickets to August.

comment:6 Changed 3 weeks ago by gk

Keywords: GeorgKoppen201809 added; GeorgKoppen201808 removed

Moving my tickets to September.

comment:7 Changed 3 weeks ago by gk

Keywords: TorBrowserTeam201809 added; TorBrowserTeam201808 removed

Moving our tickets to September 2018

Note: See TracTickets for help on using tickets.