-
Notifications
You must be signed in to change notification settings - Fork 13.3k
fatal runtime error: assertion failed: !ptr.is_null() #16029
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
Comments
This looks like an error that indicates that the runtime isn't set up yet, would it be possible to reduce the code down to a smaller example? |
@alexcrichton at this moment, not from my side, since I don't have knownledge on both codebases. Any help @phildawes? |
Hi Oblitum. I haven't seen this, but then I only have ubuntu linux to test on. Does the same thing happen with a recent nightly? |
@phildawes I have just pulled rust and built it and tried again, same error.. |
still happening in 3be6a2f with racer-rust/racer@ecde206. |
@phildawes @alexcrichton I just started looking at Rust, so I have no idea if this ought to work or not. I was able to create a minimal reproducer for this issue on OS X though: extern crate syntax;
use syntax::parse::{new_parse_sess};
use std::task;
fn main() {
task::try(proc() {
new_parse_sess();
});
} Output:
|
Should've specified that is with rust revision b7aa03a |
Even more minimal test case. It looks like "extern crate rustc" is causing the problem - removing that line fixes the failure.
|
I'm unable to reproduce the assertion failure on the test case you gave, did you just compile and run it? |
Yep:
Here's the backtrace:
|
A bit more info. It looks like the rt::init symbol does not exist in the version that includes "extern crate rustc":
|
I was able to get this bug to go away by rebuilding rustc manually with --enable-rpath. Previously, I had built rustc via homebrew's --HEAD option. @oblitum is that how you built rustc as well? The only config options I see in the homebrew file are --disable-rpath and --enable-clang. Could one of those be causing this? |
@jgallagher probably. I'm using rust just like you said: homebrew --HEAD. |
@oblitum With much help from @alexcrichton and a lot of detective work, this is what's going on:
There are three possible fixes:
|
@jgallagher thanks for the detailed report! |
Triage: ahhhh the old runtime failure error message. These were the days 😄 Given this ticket hasn't seen an update in over two years, and involves a bunch of stuff that doesn't exist anymore, I'm going to give it a close. |
@steveklabnik just cc'ed it on #14662, just in case. |
minor: Don't auto-publish sourcegen Closes rust-lang#16029
I'm at 66a0b52 and I'm trying racer-rust/racer@07b2346 on OS X, but the only thing I'm getting is:
The text was updated successfully, but these errors were encountered: