-
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
Crash on Windows, Exception code: 0xc0000005 #5878
Comments
I didn't add the backtrace, here it is:
|
@TacoSteemers what version of windows is this? XP? Windows 7? Windows 8? (I'll need to set up a machine with it to replicate the bug.) |
It's Windows 7. |
nominating well-covered |
(assigning to self as reminder to attempt to reproduce. other devs can work-steal if idle.) |
I'm guessing you are running rustc after a fresh mingw install?
Also, you may need to downgrade your pthread library:
|
Also #5712 |
just a bug, removing milestone/nomination. |
@vadimcn Have you tested and are fairly sure that libpthread needs to be at 2.8.0-3 when using gcc 4.5 ? If so, then I can add that info to the "getting started guide". |
@thadguidry Pretty sure, but feel free to verify independently. |
I still get this trying to compile with a 4.8.1 gcc toolchain on Windows 7. Output right before rustc.exe crashes is here: http://pastebin.mozilla.org/3022119 |
@thadguidry: You'll need to copy libgcc_s_dw2-1.dll and libstdc++-6.dll from %mingw%\bin into %rust%\build\i686-pc-mingw32\stage0\bin |
@vadimcn @brson Actually, the mingw-builds toolchain always has it in just the right place for us to easily pick it up: C:\mingw-toolchains\x64-4.8.1-release-win32-sjlj-rev5\mingw64\bin and I specify my Msys profile path as : export PATH="/c/mingw-toolchains/x64-4.8.1-release-win32-sjlj-rev5/mingw64/bin:/user/local:$PATH" Thoughts ? |
@thadguidry: So does this work? Regarding finding them automatically:
|
@vadimcn @brson @graydon @pnkfelix @TacoSteemers I have updated and added new steps (Step 5) that correctly install the needed pthread libraries for Windows users of MinGW. Rust now correctly compiles Stage0, Stage1, Stage2 out of the box following the guide here: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust |
Thanks for picking up the ticket. It looks like I am indeed running MinGW 4.7.0, judging from the directory name "libexec\gcc\mingw32\4.7.0". A sidenote, doc/master/tutorial.html#getting-started refer to the 0.8 release which doesn't appear to be accessible yet. This is probably intentional, but I figured I'd mention it in case it isn't. |
Rustup r? @ghost changelog: none
I installed using the executable from the website.
Whenever I run rustc, with or without a source file as argument, the crash with "Exception code: 0xc0000005" occurs.
Here is a copy+paste of what I found in the Windows Event Viewer.
Using gdb I get the following:
The text was updated successfully, but these errors were encountered: