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

usize overflow in Vec::reserve #412

Closed
codahale opened this issue Mar 31, 2015 · 3 comments
Closed

usize overflow in Vec::reserve #412

codahale opened this issue Mar 31, 2015 · 3 comments
Labels
A-server Area: server. C-bug Category: bug. Something is wrong. This is bad!

Comments

@codahale
Copy link

  • hyper 0.3.6
  • rustc 1.0.0-nightly (6cf3b0b74 2015-03-30) (built 2015-03-31)
  • Linux 3.14.35-28.38.amzn1.x86_64 SSL #1 SMP Wed Mar 11 22:50:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
  • wrk @ a209691

I’m using the hello-world example from the examples dir. This only happens with release builds, and it only happens after a number of successful requests (~12,000+):

thread '<unnamed>' panicked at 'Vec::reserve: `usize` overflow', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libcore/option.rs:332
thread '<unnamed>' panicked at 'child thread None panicked', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/thread/mod.rs:797
thread '<main>' panicked at 'child thread None panicked', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/thread/mod.rs:797
@seanmonstar
Copy link
Member

Could you run again with RUST_BACKTRACE=1?

On Tue, Mar 31, 2015, 7:15 AM Coda Hale [email protected] wrote:

  • hyper 0.3.6
  • rustc 1.0.0-nightly (6cf3b0b74 2015-03-30) (built 2015-03-31)
  • Linux 3.14.35-28.38.amzn1.x86_64 SSL #1
    SSL #1 SMP Wed Mar 11 22:50:37
    UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
  • wrk @ a209691

I’m using the hello-world example from the examples dir. This only
happens with release builds, and it only happens after a number of
successful requests:

thread '' panicked at 'Vec::reserve: usize overflow', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libcore/option.rs:332
thread '' panicked at 'child thread None panicked', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/thread/mod.rs:797
thread '

' panicked at 'child thread None panicked', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/thread/mod.rs:797


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

@seanmonstar
Copy link
Member

Perhaps fixed in 0.3.7?

@reem reem added C-bug Category: bug. Something is wrong. This is bad! A-server Area: server. labels Apr 1, 2015
@codahale
Copy link
Author

codahale commented Apr 1, 2015

I can’t repro on 0.3.7, so whatever the problem was it’s solved now.

@codahale codahale closed this as completed Apr 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-server Area: server. C-bug Category: bug. Something is wrong. This is bad!
Projects
None yet
Development

No branches or pull requests

3 participants