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

stage0 segfaults on Win7 64bit #5220

Closed
mrhandle opened this issue Mar 4, 2013 · 2 comments
Closed

stage0 segfaults on Win7 64bit #5220

mrhandle opened this issue Mar 4, 2013 · 2 comments
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows Operating system: Windows

Comments

@mrhandle
Copy link

mrhandle commented Mar 4, 2013

The rustc.exe provided in the following package segfaults on Win7 32bit

rust-stage0-2013-02-27-a6d9689-winnt-i386-1ba692a33072597ae124736c9e4040197bc5c1cb.tar

$ gdb rustc.exe
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from c:\dev\rust-build\i686-pc-mingw32\stage0\bin\rustc.exe...(n
o debugging symbols found)...done.
(gdb) r
Starting program: c:\dev\rust-build\i686-pc-mingw32\stage0\bin\rustc.exe
[New Thread 153636.0x25ae0]

Program received signal SIGSEGV, Segmentation fault.
0x6fc5b93f in libstdc++-6!_ZN9__gnu_cxx18__exchange_and_addEPVii ()
   from C:\dev\MinGW\bin\libstdc++-6.dll
(gdb) bt
#0  0x6fc5b93f in libstdc++-6!_ZN9__gnu_cxx18__exchange_and_addEPVii ()
   from C:\dev\MinGW\bin\libstdc++-6.dll
#1  0x6fc60eb6 in libstdc++-6!_ZN9__gnu_cxx9free_list8_M_clearEv ()
   from C:\dev\MinGW\bin\libstdc++-6.dll
#2  0x6fc89d16 in libstdc++-6!_ZNSs4_Rep10_M_disposeERKSaIcE ()
   from C:\dev\MinGW\bin\libstdc++-6.dll
#3  0x6fc8ab18 in libstdc++-6!_ZNSs6assignERKSs ()
   from C:\dev\MinGW\bin\libstdc++-6.dll
#4  0x0109177e in _fu1575___ZNSs4_Rep20_S_empty_rep_storageE ()
   from c:\dev\rust-build\i686-pc-mingw32\stage0\bin\rustllvm.dll
#5  0x0165104c in (anonymous namespace)::InfoOutputFilename ()
   from c:\dev\rust-build\i686-pc-mingw32\stage0\bin\rustllvm.dll
#6  0x01851b80 in ?? ()
#7  0x00751167 in DllMainCRTStartup@12 ()
   from c:\dev\rust-build\i686-pc-mingw32\stage0\bin\rustllvm.dll
#8  0x77269950 in ntdll!RtlpNtMakeTemporaryKey ()
   from C:\Windows\system32\ntdll.dll
#9  0x00750000 in ?? ()
#10 0x7726d8c9 in ntdll!RtlEmptyAtomTable ()
   from C:\Windows\system32\ntdll.dll
#11 0x007510c0 in __dll_exit ()
   from c:\dev\rust-build\i686-pc-mingw32\stage0\bin\rustllvm.dll
#12 0x7727681c in ntdll!RtlStatMemoryStream ()
   from C:\Windows\system32\ntdll.dll
#13 0x0028fd24 in ?? ()
#14 0x772752d6 in ntdll!TpCaptureCaller () from C:\Windows\system32\ntdll.dll
#15 0x0028fd24 in ?? ()
#16 0x77269e79 in ntdll!RtlpNtSetValueKey ()
   from C:\Windows\system32\ntdll.dll
#17 0x0028fd24 in ?? ()
#18 0x00000000 in ?? ()
(gdb) info locals
No symbol table info available.
(gdb) f 4
#4  0x0109177e in _fu1575___ZNSs4_Rep20_S_empty_rep_storageE ()
   from c:\dev\rust-build\i686-pc-mingw32\stage0\bin\rustllvm.dll
(gdb) info locals
No symbol table info available.
(gdb) info
Display all 54 possibilities? (y or n)
address                    program
all-registers              record
args                       registers
auto-load                  scope
auxv                       selectors
bookmarks                  set
breakpoints                sharedlibrary
classes                    signals
common                     skip
copying                    source
dcache                     sources
display                    stack
extensions                 static-tracepoint-markers
files                      symbol
float                      target
frame                      tasks
functions                  terminal
handle                     threads
inferiors                  tracepoints
line                       tvariables
locals                     types
macro                      variables
macros                     vector
mem                        vtbl
os                         w32
probes                     warranty
proc                       watchpoints
(gdb) info  sharedlibrary
From        To          Syms Read   Shared Object Library
0x77231000  0x77395d1c  Yes (*)     C:\Windows\system32\ntdll.dll
0x764f1000  0x765ebd58  Yes (*)     C:\Windows\syswow64\kernel32.dll
0x767c1000  0x76806a18  Yes (*)     C:\Windows\syswow64\KernelBase.dll
0x761d1000  0x7627b2c4  Yes (*)     C:\Windows\syswow64\msvcrt.dll
0x61901000  0x6195d734  Yes         c:\dev\rust-build\i686-pc-mingw32\stage0\bin
\rustrt.dll
0x74b11000  0x74b44784  Yes (*)     C:\Windows\syswow64\ws2_32.dll
0x76291000  0x76365e04  Yes (*)     C:\Windows\syswow64\rpcrt4.dll
0x74911000  0x749521f0  Yes (*)     C:\Windows\syswow64\sspicli.dll
0x74901000  0x7490b474  Yes (*)     C:\Windows\syswow64\cryptbase.dll
0x74971000  0x74988ed8  Yes (*)     C:\Windows\SysWOW64\sechost.dll
0x75f81000  0x75f85058  Yes (*)     C:\Windows\syswow64\nsi.dll
0x75961000  0x759ff04c  Yes (*)     C:\Windows\syswow64\advapi32.dll
0x718a1000  0x718bb944  Yes (*)     C:\Windows\SysWOW64\IPHLPAPI.DLL
0x71751000  0x7175621c  Yes (*)     C:\Windows\SysWOW64\winnsi.dll
0x75f41000  0x75f44050  Yes (*)     C:\Windows\syswow64\psapi.dll
0x6e941000  0x6e963724  Yes (*)     C:\dev\MinGW\bin\libgcc_s_dw2-1.dll
0x6fc41000  0x6fd40014  Yes (*)     C:\dev\MinGW\bin\libstdc++-6.dll
0x67641000  0x680d6d50  Yes (*)     c:\dev\rust-build\i686-pc-mingw32\stage0\bin
\rustc-c84825241471686d-0.6.dll
0x00751000  0x016c98a4  Yes         c:\dev\rust-build\i686-pc-mingw32\stage0\bin
\rustllvm.dll
0x75f51000  0x75f79278  Yes (*)     C:\Windows\syswow64\imagehlp.dll
0x74ce1000  0x75929898  Yes (*)     C:\Windows\syswow64\shell32.dll
0x75a01000  0x75a56b60  Yes (*)     C:\Windows\syswow64\shlwapi.dll
0x75d31000  0x75da292c  Yes (*)     C:\Windows\syswow64\gdi32.dll
0x75fb1000  0x76094198  Yes (*)     C:\Windows\syswow64\user32.dll
0x76281000  0x762892f8  Yes (*)     C:\Windows\syswow64\lpk.dll
0x74a71000  0x74b0c9fc  Yes (*)     C:\Windows\syswow64\usp10.dll
0x6fe01000  0x701d8998  Yes (*)     c:\dev\rust-build\i686-pc-mingw32\stage0\bin
\syntax-84efebcb12c867a2-0.6.dll
0x6ab01000  0x6ada8b6c  Yes (*)     c:\dev\rust-build\i686-pc-mingw32\stage0\bin
\std-4782a756585a81-0.6.dll
0x66301000  0x6659899c  Yes (*)     c:\dev\rust-build\i686-pc-mingw32\stage0\bin
\core-c3ca5d77d81b46c1-0.6.dll
0x76491000  0x764d1ce0  Yes (*)     C:\Windows\SysWOW64\imm32.dll
0x76811000  0x768dbebc  Yes (*)     C:\Windows\syswow64\msctf.dll
0x74531000  0x74564daa  Yes (*)     C:\Windows\SysWOW64\nvinit.dll
0x0f001000  0x0f005030  Yes (*)     C:\Program Files (x86)\NVIDIA Corporation\Co
ProcManager\detoured.dll
0x69af1000  0x69b3851c  Yes (*)     C:\Program Files (x86)\NVIDIA Corporation\Co
ProcManager\Nvd3d9wrap.dll
0x75a61000  0x75bfcacc  Yes (*)     C:\Windows\syswow64\setupapi.dll
0x75931000  0x759561e4  Yes (*)     C:\Windows\syswow64\cfgmgr32.dll
0x749e1000  0x74a6e644  Yes (*)     C:\Windows\syswow64\oleaut32.dll
0x74b51000  0x74cab0cc  Yes (*)     C:\Windows\syswow64\ole32.dll
0x75f91000  0x75fa1ac0  Yes (*)     C:\Windows\syswow64\devobj.dll
0x69ab1000  0x69ae8c05  Yes (*)     C:\Program Files (x86)\NVIDIA Corporation\Co
ProcManager\nvdxgiwrap.dll
(*): Shared library is missing debugging information.
(gdb)

Changing the compatibility setting for rustc.exe does nothing.
Running rustc.exe as admin does nothing.

Please let me know if you need any additional information. Also, if there is a debug build of stage0 I'd like to try it on my system.

@khris
Copy link

khris commented Apr 4, 2013

I guess it caused by compatibility issue between your MinGW's libstdc++ version and what rustc.exe requires. rustc.exe in snapshot tarball doesn't works with libstdc++ 4.7.x and above.

If so, you should downgrade or just put 4.6.x's libstdc++-6.dll into i686-pc-mingw32/stage0/bin/stage0.

@bstrie
Copy link
Contributor

bstrie commented Jul 2, 2013

Currently we only support 32-bit Windows. Given that it's been four months, I'm going to close this for now. Try again on the same machine once 0.7 is released and reopen if this still happens (and ensure you have the right MinGW version).

@bstrie bstrie closed this as completed Jul 2, 2013
bors added a commit to rust-lang-ci/rust that referenced this issue May 2, 2020
Resolve false positives of unnecessary_cast for non-decimal integers

This PR resolves false positives of `unnecessary_cast` for hexadecimal integers to floats and adds a corresponding test case.

Fixes: rust-lang#5220

changelog: none
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-windows Operating system: Windows
Projects
None yet
Development

No branches or pull requests

3 participants