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 in rustdoc test. #18801

Closed
aatxe opened this issue Nov 9, 2014 · 2 comments
Closed

Stack overflow in rustdoc test. #18801

aatxe opened this issue Nov 9, 2014 · 2 comments
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-macos Operating system: macOS T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@aatxe
Copy link
Member

aatxe commented Nov 9, 2014

When I run both cargo test and rustdoc --test src/lib.rs with this crate, I experience a stack overflow as so:

cargo test

task '<main>' has overflowed its stack
Process didn't exit successfully: `rustdoc --test /Users/Aaron/Documents/Programming/Rust/irc/src/lib.rs --crate-name irc -L /Users/Aaron/Documents/Programming/Rust/irc/target -L /Users/Aaron/Documents/Programming/Rust/irc/target/deps --extern irc=/Users/Aaron/Documents/Programming/Rust/irc/target/libirc-3f763cf8257f2e48.rlib` (status=4)

rustdoc --test src/lib.rs

task '<main>' has overflowed its stack
Illegal instruction: 4

I'm on OS X 10.10.1. I've installed rust using rustup. The output of rustdoc --version=verbose is:

rustdoc 0.13.0-nightly
binary: rustdoc
commit-hash: unknown
commit-date: unknown
host: x86_64-apple-darwin
release: 0.13.0-nightly

I am not experiencing this issue on Travis-CI, where instead it terminates properly.

Here's the results of running the command in lldb:

(lldb) r --test src/lib.rs
Process 54758 launched: '/usr/local/bin/rustdoc' (x86_64)
Process 54758 stopped
* thread #1: tid = 0x1fad6c, 0x0000000102df0c5b libsyntax-4e7c5e5c.dylib`fold::Vec$LT$T$GT$.MoveMap$LT$T$GT$::move_map::h3105311920876362688 + 75, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x7fff5fb80ff8)
    frame #0: 0x0000000102df0c5b libsyntax-4e7c5e5c.dylib`fold::Vec$LT$T$GT$.MoveMap$LT$T$GT$::move_map::h3105311920876362688 + 75
libsyntax-4e7c5e5c.dylib`fold::Vec$LT$T$GT$.MoveMap$LT$T$GT$::move_map::h3105311920876362688 + 75:
-> 0x102df0c5b:  movq   %rdi, -0x158(%rbp)
   0x102df0c62:  movq   0x8(%rsi), %rax
   0x102df0c66:  testq  %rax, %rax
   0x102df0c69:  je     0x102df0ebd               ; fold::Vec$LT$T$GT$.MoveMap$LT$T$GT$::move_map::h3105311920876362688 + 685

A full backtrace (from running bt) can be found here.

@huonw huonw added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Nov 9, 2014
@huonw
Copy link
Member

huonw commented Nov 9, 2014

I have unfortunately not been able to reproduce on linux (and travis is running linux too), so this may be OSX specific.

(For future triage: the commit-hash: unknown is caused by #18771, the exact version of Rust here is probably either e816708 or 93c85eb.)

@huonw huonw added O-macos Operating system: macOS I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. labels Nov 9, 2014
@tamird
Copy link
Contributor

tamird commented Apr 22, 2015

This is stale :( @steveklabnik close?

lnicola pushed a commit to lnicola/rust that referenced this issue Jan 7, 2025
feat: show go-to-type-def actions for subst when hovering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-macos Operating system: macOS T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants