| Summary: | Valgrind always crashes Rust programs on FreeBSD with "failed to allocate a guard page" | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | asomers |
| Component: | general | Assignee: | Julian Seward <jseward> |
| Status: | RESOLVED DOWNSTREAM | ||
| Severity: | normal | CC: | pjfloyd, tom |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | FreeBSD | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
asomers
2021-02-02 23:24:50 UTC
The FreeBSD port of valgrind is currently a separate fork that is not maintained as part of the core project. You can find an issue tracker for it at https://github.com/paulfloyd/freebsd_valgrind/issues. Thanks for the pointer Tom. However, I should add that the Rust code in question is identical on every platform except Linux. So this bug might affect Solaris and OSX in addition to FreeBSD. However, I don't have the ability to test on those platforms. That error won't be anything to do with the code as such though, it will be to do with the OS integration and how the system calls and memory management are emulated and the details of that will likely vary even among different BSD derived platforms. (In reply to asomers from comment #2) > Thanks for the pointer Tom. However, I should add that the Rust code in > question is identical on every platform except Linux. So this bug might > affect Solaris and OSX in addition to FreeBSD. However, I don't have the > ability to test on those platforms. I can test Solaris if I can get my hands on a rust executable. macOS is rather more difficult to test, even though I do have a MacBook. I'll try to figure what is going on with FreeBSD. (In reply to Paul Floyd from comment #4) > (In reply to asomers from comment #2) > > Thanks for the pointer Tom. However, I should add that the Rust code in > > question is identical on every platform except Linux. So this bug might > > affect Solaris and OSX in addition to FreeBSD. However, I don't have the > > ability to test on those platforms. > > I can test Solaris if I can get my hands on a rust executable. macOS is > rather more difficult to test, even though I do have a MacBook. > > I'll try to figure what is going on with FreeBSD. I don't have an easy way to build you an executable, but the following commands should work if you have an Illumos machine. $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh $ . ~/.cargo/env $ cargo new hello $ cd hello $ cargo build $ target/debug/hello |