Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack overflow during compilation #180

Open
mitchmindtree opened this issue Dec 20, 2018 · 3 comments
Open

Stack overflow during compilation #180

mitchmindtree opened this issue Dec 20, 2018 · 3 comments

Comments

@mitchmindtree
Copy link
Contributor

I'm not 100% sure whether this issue belongs here or at the cargo repo, however this seems to be the only crate for which this is occurring on this system.

I'm getting the following stack overflow while attempting to compile this crate:

Joshuas-MacBook-Air:gleam joshuabatty$ cargo check
    Updating crates.io index
   Compiling khronos_api v3.0.0
   Compiling cfg-if v0.1.6
   Compiling xml-rs v0.8.0
   Compiling log v0.4.6
   Compiling gl_generator v0.10.0
   Compiling gleam v0.6.8 (/Users/joshuabatty/Documents/Rust/gleam)

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
error: Could not compile `gleam`.

Caused by:
  process didn't exit successfully: `rustc --crate-name gleam src/lib.rs --color always --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=56b5b8b73780c6f2 -C extra-filename=-56b5b8b73780c6f2 --out-dir /Users/joshuabatty/Documents/Rust/gleam/target/debug/deps -C incremental=/Users/joshuabatty/Documents/Rust/gleam/target/debug/incremental -L dependency=/Users/joshuabatty/Documents/Rust/gleam/target/debug/deps` (signal: 6, SIGABRT: process abort signal)

System:
MacBook Air (Mid 2011)
MacOS 10.10.5

I'm not yet sure whether this is specific to this machine or not. Is it possible that this old macbook air has a lower stack size limit?

Occurs on both 1.33.0-nightly and 1.31 stable version of rustc and cargo.

I originally bumped into this in a downstream repo that uses glutin, which uses this. Still currently trying to find a workaround.

@wirelyre
Copy link

wirelyre commented Feb 6, 2019

I reproduce on MacBook Pro (Mid 2012), macOS 10.10.5 Yosemite.

Bisecting shows that the build started failing on v0.6.4, specifically 261b5e1.

@mitchmindtree, could you please confirm that on your machine:

git checkout v0.6.3; cargo build    # works
git checkout v0.6.4; cargo build    # doesn't

@jdm
Copy link
Member

jdm commented Feb 8, 2019

This is definitely an issue that should be filed on the rust compiler rather than gleam. Please do so!

@staktrace
Copy link

Filed rust-lang/rust#58319

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants