Skip to content

Spurious segfault in tests for musl #38618

Closed
@alexcrichton

Description

@alexcrichton

First seen on Travis, the error looks like:

     Running build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-linux-musl/release/deps/coretest-a84303f8bbcf2658
running 607 tests
..........................................................................................................................................................................................................................................................................................................................ii....................................................................................................................................................................................................................................................error: process didn't exit successfully: `/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-linux-musl/release/deps/coretest-a84303f8bbcf2658 --quiet` (signal: 11, SIGSEGV: invalid memory reference)
To learn more, run the command again with --verbose.
command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "-j" "4" "--target" "x86_64-unknown-linux-musl" "--release" "--frozen" "--manifest-path" "/checkout/src/rustc/std_shim/Cargo.toml" "--features" "panic-unwind jemalloc backtrace" "-p" "std_shim" "-p" "core" "-p" "std" "-p" "libc" "-p" "compiler_builtins" "-p" "unwind" "-p" "build_helper" "-p" "std_unicode" "-p" "rand" "-p" "alloc" "-p" "alloc_system" "-p" "collections" "-p" "panic_abort" "--" "--quiet"

cleaned up as:

error: process didn't exit successfully: `/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-linux-musl/release/deps/coretest-a84303f8bbcf2658 --quiet` (signal: 11, SIGSEGV: invalid memory reference)

This means that the test harness itself segfaulted. Sounds quite suspicious!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-spuriousArea: Spurious failures in builds (spuriously == for no apparent reason)C-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions