Comments (3)
Hello,
can you please supply the following information:
- is this reproducable
- which crate are you analyzing
- the whole command line used
- The output of the run with
RUST_BACKTRACE=1
With that information I hope to fix that bug.
from cargo-valgrind.
Hello, sorry for the huge delay!
- Yes it happens with everything
- I can generate the bug with the hello world provided by cargo when you run
cargo new [name]
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.
This bug also happens with only valgrind so I’ll move this issue to the rust-lang repository.
from cargo-valgrind.
Related Issues (20)
- Running cargo valgrind shows `error: No runnable target found.` HOT 4
- Not working on unit tests (missing field `xwhat`) HOT 8
- Missing git tags for last release HOT 1
- Sudo cargo valgrind HOT 3
- Add drop guard to prevent running child process
- Allow passing flags to valgrind HOT 2
- Handle non-installed valgrind gracefully
- Catch panics with custom hook
- Print helpful error on deserialization error
- Clippy comment contains no information
- Fix clippy issues
- cargo valgrind unexpectedly crashed (but may be misbehaving instrumented program) HOT 7
- Cargo valgrind crashed while running tests. HOT 6
- Calling valgrind's profiling tools? HOT 3
- Re-enable and fix clippy in CI
- Deserialization error when there are both errors while running and errors detected after program finishes
- Oooops. cargo valgrind unexpectedly crashed. This is a bug! HOT 2
- Passing environment variables
- bug
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 cargo-valgrind.