Closed tumdum closed 4 years ago
Hmm... this is very interesting!
According to those logs it crashes in libc
crate's build.rs
, which is very very strange as that script doesn't have any unsafe
nor any external dependencies. And of course I can't reproduce it on my system. ):
$RUSTFLAGS
set? (Or flags in .cargo/config
.)/home/klak/tmp/not-perf/target/release/build/libc-80018afddfa52891/build-script-build
after running cargo build --release
?libc
and try to build it by itself?$RUSTFLAGS
are empty and I don't have ~/.cargo/config
That is really interesting. I guess at this point it would be interesting to see where exactly it SIGSEGVs - maybe then we can figure out why it does it.
Can you try running the build script under gdb
? IIRC the build scripts might be built by-default in release mode (I'm not sure), so it may be necessary to cargo new --bin
a new crate, copy the build.rs
into its src/main.rs
and perhaps run it with the same environment variables as the original build.rs
to properly be able to debug it.
the build scripts might be built by-default in release mode
I believe they are build with the same codegen options as the rest of the rlibs/executables by default.
Closing - I no longer have access to that machine and I was never able to reproduce this on other machines.
Executing repro.sh.txt produces compilation failure with sigsev, logs: log.txt