Skip to content

rustc exits with SIGSEV (signal 11) #34194

Closed
@neandrake

Description

@neandrake

I have a small project that I've been learning rust with. Just now I've added some code and the next time I run cargo build rustc exits with SIGSEV signal 11. I've previously not run into this issue while working on this project.

Minimal Reproducible Code: main.rs.txt

cspeckrun@specktop ~/P/n/t/barf> cargo build --verbose
   Compiling barf v0.1.0 (file:///Users/cspeckrun/Projects/neandrake/test/barf)
     Running `rustc src/main.rs --crate-name barf --crate-type bin -g --out-dir /Users/cspeckrun/Projects/neandrake/test/barf/target/debug --emit=dep-info,link -L dependency=/Users/cspeckrun/Projects/neandrake/test/barf/target/debug -L dependency=/Users/cspeckrun/Projects/neandrake/test/barf/target/debug/deps`
error: Could not compile `barf`.

Caused by:
  Process didn't exit successfully: `rustc src/main.rs --crate-name barf --crate-type bin -g --out-dir /Users/cspeckrun/Projects/neandrake/test/barf/target/debug --emit=dep-info,link -L dependency=/Users/cspeckrun/Projects/neandrake/test/barf/target/debug -L dependency=/Users/cspeckrun/Projects/neandrake/test/barf/target/debug/deps` (signal: 11, SIGSEGV: invalid memory reference)
cspeckrun@specktop ~/P/n/t/barf>

Meta

I'm working on Mac (OSX 10.11.5), with rust installed through Homebrew

Cargo & Rust Version:

cspeckrun@specktop ~/P/n/t/barf> rustc --version --verbose
rustc 1.9.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-apple-darwin
release: 1.9.0
cspeckrun@specktop ~/P/n/t/barf> cargo --version --verbose
cargo 0.10.0 (10ddd7d 2016-04-08)

Details on homebrew install:

cspeckrun@specktop ~/P/n/t/barf> brew info rust
rust: stable 1.9.0 (bottled), HEAD
Safe, concurrent, practical language
https://www.rust-lang.org/
Conflicts with: multirust
/usr/local/Cellar/rust/1.0.0 (13,947 files, 322M)
  Poured from bottle on 2015-05-16 at 08:45:38
/usr/local/Cellar/rust/1.1.0 (13,888 files, 324.4M)
  Poured from bottle on 2015-06-26 at 12:02:48
/usr/local/Cellar/rust/1.2.0 (4,034 files, 244.9M)
  Poured from bottle on 2015-08-13 at 09:49:46
/usr/local/Cellar/rust/1.3.0 (4,147 files, 245M)
  Poured from bottle on 2015-09-19 at 01:12:26
/usr/local/Cellar/rust/1.4.0 (3,968 files, 232.4M)
  Poured from bottle on 2015-11-03 at 23:02:54
/usr/local/Cellar/rust/1.5.0 (4,051 files, 215.8M)
  Poured from bottle on 2015-12-10 at 11:44:31
/usr/local/Cellar/rust/1.6.0 (8,908 files, 218.1M)
  Poured from bottle on 2016-01-24 at 17:57:02
/usr/local/Cellar/rust/1.7.0 (10,323 files, 228.2M)
  Poured from bottle on 2016-03-04 at 00:39:39
/usr/local/Cellar/rust/1.8.0 (9,398 files, 234.8M)
  Poured from bottle on 2016-04-17 at 02:59:36
/usr/local/Cellar/rust/1.9.0 (10,239 files, 239.8M) *
  Poured from bottle on 2016-05-27 at 19:44:00
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/rust.rb
==> Dependencies
Build: cmake ✔
Required: pkg-config ✔, openssl ✔, libssh2 ✔
Optional: llvm ✘
==> Options
--with-llvm
    Build with brewed LLVM. By default, Rust's LLVM will be used.
--HEAD
    Install HEAD version
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions