Code Monkey home page Code Monkey logo

Comments (3)

jfrimmel avatar jfrimmel commented on June 15, 2024

Hello,
can you please supply the following information:

  1. is this reproducable
  2. which crate are you analyzing
  3. the whole command line used
  4. The output of the run with RUST_BACKTRACE=1

With that information I hope to fix that bug.

from cargo-valgrind.

irevoire avatar irevoire commented on June 15, 2024

Hello, sorry for the huge delay!

  1. Yes it happens with everything
  2. I can generate the bug with the hello world provided by cargo when you run cargo new [name]
  3. cargo valgrind
% export RUST_BACKTRACE=1
% cargo new hello
    Created binary (application) `hello` package
% cd hello
% cargo run
   Compiling hello v0.1.0 (/home/irevoire/hello)
    Finished dev [unoptimized + debuginfo] target(s) in 0.62s
     Running `target/debug/hello`
Hello, world!

% cargo valgrind
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
   Analyzing `target/debug/hello`
thread '<unnamed>' panicked at 'failed to allocate a guard page', src/libstd/sys/unix/thread.rs:336:17
stack backtrace:
   0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
   1: core::fmt::write
   2: std::io::stdio::_print
   3: rust_oom
   4: rust_oom
   5: std::panicking::rust_panic_with_hook
   6: std::panicking::begin_panic_fmt
   7: std::rt::lang_start_internal
   8:
   9:
  10:
  11: <unknown>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
fatal runtime error: failed to initiate panic, error 94376704
error: valgrind command failed

And I don’t know if this is of any helps but here is the backtrace with RUST_BACKTRACE=full:

thread '<unnamed>' panicked at 'failed to allocate a guard page', src/libstd/sys/unix/thread.rs:336:17
stack backtrace:
   0:           0x116af8 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf24f776311cdf529
   1:           0x12eed0 - core::fmt::write::h01edf6dd68a42c9c
   2:           0x115174 - std::io::stdio::_print::hf62f3360234422f1
   3:           0x11870d - rust_oom
   4:           0x1183e3 - rust_oom
   5:           0x118d57 - std::panicking::rust_panic_with_hook::h9a662f58cf3f8ffe
   6:           0x118b36 - std::panicking::begin_panic_fmt::hb07c3a07faf6b5b3
   7:           0x119436 - std::rt::lang_start_internal::h7d3aa0ed326f9560
   8:           0x110dc3 -
   9:           0x110c6b -
  10:           0x110a25 -
  11:          0x4023000 - <unknown>
fatal runtime error: failed to initiate panic, error 94376704
error: valgrind command failed

from cargo-valgrind.

irevoire avatar irevoire commented on June 15, 2024

This bug also happens with only valgrind so I’ll move this issue to the rust-lang repository.

from cargo-valgrind.

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.