Skip to content

rustc build core dump on OpenBSD #31363

Closed
@semarie

Description

@semarie

I am investigating a core dump issue (rustc compiler crash without panic) under OpenBSD during the build. The segfault occurs at stage2 during libcore building.

It seems to occurs occasionnally on OpenBSD buildhost.

Note that rustc under OpenBSD use system malloc(3), that comes with several security options (see http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/malloc.conf.5).

Backtrace of one build:

(gdb) bt
#0  0x00000f38e4e53170 in str::from_utf8::h677e0dbe19ab7a5adYR ()
   from /data/semarie/obj/rust/x86_64-unknown-openbsd/stage2/lib/libstd-db5a760f.so
#1  0x00000f38e4de62a1 in ffi::os_str::OsString::into_string::h08ad47b28c773394gSe ()
   from /data/semarie/obj/rust/x86_64-unknown-openbsd/stage2/lib/libstd-db5a760f.so
#2  0x00000f38e4de8498 in env::Args.Iterator::next::he30da4a3586351acwle ()
   from /data/semarie/obj/rust/x86_64-unknown-openbsd/stage2/lib/libstd-db5a760f.so
#3  0x00000f38e27c5c7f in main::he8593f4eb18ffee8dMd ()
   from /data/semarie/obj/rust/x86_64-unknown-openbsd/stage2/lib/librustc_driver-db5a760f.so
#4  0x00000f38e4e1ac0e in sys_common::unwind::try::try_fn::h17969813569916126057 ()
   from /data/semarie/obj/rust/x86_64-unknown-openbsd/stage2/lib/libstd-db5a760f.so
#5  0x00000f38e4e122dc in __rust_try ()
   from /data/semarie/obj/rust/x86_64-unknown-openbsd/stage2/lib/libstd-db5a760f.so
#6  0x00000f38e4e0a046 in sys_common::unwind::inner_try::h5984569719e85a59C7s ()
   from /data/semarie/obj/rust/x86_64-unknown-openbsd/stage2/lib/libstd-db5a760f.so
#7  0x00000f38e4e1a724 in rt::lang_start::h7b315fa4cd5a7fa9Kiy ()
   from /data/semarie/obj/rust/x86_64-unknown-openbsd/stage2/lib/libstd-db5a760f.so
#8  0x00000f363ed00aa1 in _start () from /data/semarie/core/stage2/bin/rustc
#9  0x0000000000000000 in ?? ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-openbsdOperating system: OpenBSD

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions