-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Compiler crash in ebml.rs #2089
Comments
I can't reproduce this, either in HEAD or commit 0904f25. The test runs in either case. Can you do a make clean, update to HEAD (currently 21be137 ) and try again? Thanks. |
got 28a0e9c (current HEAD) can still repro. What does ebml.rs do? Any pointers for debugging this here? |
ebml.rs is a library that reads/writes data in a binary XML-like format called EBML (see http://ebml.sourceforge.net/ ). In rustc, it's used to serialize data needed for separate compilation (when you import another crate, rustc reads some data written in EBML format to find out how to typecheck uses of items defined in other crates). Usually a bug like this means there's an inconsistent between the decoder and the encoder (like a parser and a prettyprinter) -- see the files under rustc/metadata. It's going to be hard to debug this without being able to reproduce it, but for starters, can you get a backtrace in gdb? (Ask on IRC if you have trouble with that.) |
(I guess there's a remote possibility that I might not be seeing the bug because I build with optimization disabled. I'll try rebuilding with optimization when I get a chance) |
I tried rebuilding without optimization and still have the issue. I'll try to get a breakpoint in there, but some change landed a couple of days ago that's making finding the right function to put a breakpoint on a total nightmare. I'll ask in IRC tomorrow if anyone has any pointers. The bug name is inaccurate, I guess, since it isn't crashing but exiting normally in a bad way, so without the breakpoint, it's hard to get the bt. |
Usually setting a breakpoint on |
Yup, that works great, here's the bt:
|
environment issue with rustc picking the wrong library when trying to compile. |
(Relates to #2135) |
fails to compile with the error:
This seems to be the minimal repro case. I haven't been able to work around it, so not entirely sure what's happening.
OS X 10.6, intel core2duo, branch master at commit 0904f25
The text was updated successfully, but these errors were encountered: