Skip to content

Stack overflow during compilation #180

Open
@mitchmindtree

Description

@mitchmindtree

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions