Giter Site home page Giter Site logo

Building fails with SIGSEV about not-perf HOT 5 CLOSED

tumdum avatar tumdum commented on July 17, 2024
Building fails with SIGSEV

from not-perf.

Comments (5)

koute avatar koute commented on July 17, 2024

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. ):

  1. Is it always reproducible on your system?
  2. Do you have any $RUSTFLAGS set? (Or flags in .cargo/config.)
  3. Does it also crash if you manually run /home/klak/tmp/not-perf/target/release/build/libc-80018afddfa52891/build-script-build after running cargo build --release?
  4. Does it also crash if you clone libc and try to build it by itself?

from not-perf.

tumdum avatar tumdum commented on July 17, 2024
  1. Yes
  2. $RUSTFLAGS are empty and I don't have ~/.cargo/config
  3. Yes
  4. Yes :(

from not-perf.

koute avatar koute commented on July 17, 2024

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.

bjorn3 avatar bjorn3 commented on July 17, 2024

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.

tumdum avatar tumdum commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.