Comments (5)
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. ):
- Is it always reproducible on your system?
- Do you have any
$RUSTFLAGS
set? (Or flags in.cargo/config
.) - Does it also crash if you manually run
/home/klak/tmp/not-perf/target/release/build/libc-80018afddfa52891/build-script-build
after runningcargo build --release
? - Does it also crash if you clone
libc
and try to build it by itself?
from not-perf.
- Yes
$RUSTFLAGS
are empty and I don't have~/.cargo/config
- Yes
- Yes :(
from not-perf.
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.
from not-perf.
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.
from not-perf.
Closing - I no longer have access to that machine and I was never able to reproduce this on other machines.
from not-perf.
Related Issues (20)
- abort() called from nwind_on_exception_through_trampoline on AArch64 HOT 8
- Provide some versioning (and maybe upload to crates.io)
- Crashes due to lru on 1.48.0-nightly
- Mis-match error for inode HOT 1
- Cross-compiling for ARMV7? HOT 6
- Chromium trace output does not work
- Needs examples
- demangling support HOT 9
- System-wide profiling support
- aarch64 crash - asking for help HOT 2
- profiling process startup / specify command to run and profile HOT 1
- Extend from and to arguments to specify time from execution end
- Feature: Increase concurrency of flamegraph rendering HOT 2
- Flamegraph backtrace discrepancy HOT 4
- How to run nperf with "cargo bench"? HOT 5
- The perf_event_open syscall failed for PID XXX HOT 2
- Support compressed debug sections
- Support for pprof profiling data
- Hard-to-diagnose panic if `/proc/kallsyms` file is absent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from not-perf.