Skip to content
New issue

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

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

Already on GitHub? # to your account

task '<unknown>' has overflowed its stack #64

Closed
mytrile opened this issue Sep 27, 2014 · 6 comments · Fixed by #65
Closed

task '<unknown>' has overflowed its stack #64

mytrile opened this issue Sep 27, 2014 · 6 comments · Fixed by #65

Comments

@mytrile
Copy link

mytrile commented Sep 27, 2014

When I create new cargo project and try to run the server from the examples directory it gives me this error after successful compilation:

task '<unknown>' has overflowed its stack
[1]    14646 illegal hardware instruction  ./target/demo

Same thing when I run the benchmarks in the hyper project repo.

Rust - rustc 0.12.0-nightly (d64b4103d 2014-09-26 21:47:47 +0000)
OS - Mac OSX 10.9.5 (13F34)

@seanmonstar
Copy link
Member

Could you run them with RUST_BACKTRACE=1 RUST_LOG=hyper=debug and paste
the results?
On Sep 27, 2014 12:43 AM, "Dimitar Kostov" notifications@github.com wrote:

When I create new cargo project and try to run the server from the
examples directory it gives me this error after successful compilation:

task '' has overflowed its stack
[1] 14646 illegal hardware instruction ./target/demo

Same thing when I run the benchmarks in the hyper project repo


Reply to this email directly or view it on GitHub
#64.

@mytrile
Copy link
Author

mytrile commented Sep 27, 2014

[~/tmp/demo]▶ RUST_BACKTRACE=1 RUST_LOG=hyper=debug ./target/demo                                      
DEBUG:hyper::server: Incoming stream
task '<unknown>' has overflowed its stack
[1]    27509 illegal hardware instruction  RUST_BACKTRACE=1 RUST_LOG=hyper=debug ./target/demo
[~/tmp/hyper]▶ RUST_BACKTRACE=1 RUST_LOG=hyper=debug cargo bench                                         [master]
     Running target/release/client-f71daafad9cad1f7

running 3 tests
task '<unknown>' has overflowed its stack
Process didn't exit successfully: `/Users/dimitar/tmp/hyper/target/release/client-f71daafad9cad1f7 --bench` (status=4)

@seanmonstar
Copy link
Member

Hm, useless. Could you try running in gdb?

@seanmonstar
Copy link
Member

Hm, I'm getting it now also. Will dig in.

@seanmonstar
Copy link
Member

It seems the implementation of read on Box<NetworkStream> is recursing until overflow. Something in rustc must have changed regarding how it derefs.

@seanmonstar
Copy link
Member

I wonder if it's related to this: rust-lang/rust#17464

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

Successfully merging a pull request may close this issue.

2 participants