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

Misreported option::get failure #2018

Closed
jdm opened this issue Mar 16, 2012 · 5 comments
Closed

Misreported option::get failure #2018

jdm opened this issue Mar 16, 2012 · 5 comments

Comments

@jdm
Copy link
Contributor

jdm commented Mar 16, 2012

fn main() {
    let x = 5;
    #error("%?", x);
}

built with -g currently triggers an option::get failure in debuginfo::create_function. However, the only output is this:

godot:src jdm$ RUST_LOG=rustc=0,::rt::backtrace rust/build/x86_64-apple-darwin/stage2/bin/rustc -g rust_dbg2.rs 
rust: upcall fail 'option none', ../src/rustc/rustc.rc:1
error: internal compiler error unexpected failure
note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: upcall fail 'explicit failure', ../src/rustc/driver/rustc.rs:180
rust: domain main @0x10302d200 root task failed
@marijnh
Copy link
Contributor

marijnh commented Mar 17, 2012

This is a symptom of #2012.

@jdm
Copy link
Contributor Author

jdm commented Mar 17, 2012

I've fixed the actual cause of the failure, but it's the misreporting of it that I wanted this issue to address.

@marijnh
Copy link
Contributor

marijnh commented Mar 17, 2012

I don't quite get it. Why do you think it's misreporting it? option::get fails with that message when you call it on none.

@jdm
Copy link
Contributor Author

jdm commented Mar 17, 2012

first of all - the upcall fail message 'option none' doesn't appear unless RUST_LOG includes ::rt::backtrace. Secondly, ../src/rustc/rustc.rc:1 is not the source of the failure. If you just run the compiler without any RUST_LOG, you see:

error: internal compiler error unexpected failure
note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues

and nothing more.

@marijnh
Copy link
Contributor

marijnh commented Mar 18, 2012

Ah, I see. The bad span info is bug #1972 , and the suppressing of fail messages is discussed in #1928 .

@marijnh marijnh closed this as completed Mar 18, 2012
Kobzol pushed a commit to Kobzol/rust that referenced this issue Dec 30, 2024
… skipping of link-checking (rust-lang#2023)

* Remove properly tracked config file from .gitignore

The file is part of the git history and is a configuration file.

Fixes: rust-lang#2018

* Add  env. variable support

* Refactoring

* Really skip linkcheck if requested
Kobzol pushed a commit to Kobzol/rust that referenced this issue Dec 30, 2024
… skipping of link-checking (rust-lang#2023)

* Remove properly tracked config file from .gitignore

The file is part of the git history and is a configuration file.

Fixes: rust-lang#2018

* Add  env. variable support

* Refactoring

* Really skip linkcheck if requested
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

2 participants