[GHC] #14081: 8.2.1 runghc from Windows x32 segfaults an all programs

GHC ghc-devs at haskell.org
Mon Aug 7 07:54:10 UTC 2017


#14081: 8.2.1 runghc from Windows x32 segfaults an all programs
----------------------------------+------------------------------
        Reporter:  sergv          |                Owner:  (none)
            Type:  bug            |               Status:  new
        Priority:  highest        |            Milestone:  8.2.2
       Component:  Compiler       |              Version:  8.2.1
      Resolution:                 |             Keywords:
Operating System:  Windows        |         Architecture:  x86
 Type of failure:  Runtime crash  |            Test Case:
      Blocked By:                 |             Blocking:
 Related Tickets:                 |  Differential Rev(s):
       Wiki Page:                 |
----------------------------------+------------------------------

Comment (by sergv):

 I have reset `PATH` to a standard value and `LIBRARY_PATH` is not set at
 all. Here's output of strace in cygwin:

 {{{
 $ echo $LIBRARY_PATH

 $ export
 PATH="/bin/:/usr/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem"
 $ strace ./ghc/ghc-8.2.1-x32/bin/ghci -v3
 WARNING: GHCi invoked via 'ghci.exe' in MinTTY consoles (e.g., Cygwin or
 MSYS)
          doesn't handle Ctrl-C well; use the 'ghcii.sh' shell wrapper
 instead
 GHCi, version 8.2.1: http://www.haskell.org/ghc/  :? for help
 Glasgow Haskell Compiler, Version 8.2.1, stage 2 booted by GHC version
 8.0.1
 Using binary package database:
 C:\home\ghc\ghc-8.2.1-x32\lib\package.conf.d\package.cache
 package flags []
 loading package database C:\home\ghc\ghc-8.2.1-x32\lib\package.conf.d
 wired-in package ghc-prim mapped to ghc-prim-0.5.1.0
 wired-in package integer-gmp mapped to integer-gmp-1.0.1.0
 wired-in package base mapped to base-4.10.0.0
 wired-in package rts mapped to rts
 wired-in package template-haskell mapped to template-haskell-2.12.0.0
 wired-in package ghc mapped to ghc-8.2.1
 wired-in package dph-seq not found.
 wired-in package dph-par not found.
 *** Parser [source]:
 !!! Parser [source]: finished in 0.00 milliseconds, allocated 0.067
 megabytes
 *** Desugar:
 *** Simplify [expr]:
 !!! Simplify [expr]: finished in 0.00 milliseconds, allocated 0.055
 megabytes
 *** CorePrep [expr]:
 !!! CorePrep [expr]: finished in 0.00 milliseconds, allocated 0.857
 megabytes
 *** ByteCodeGen [Ghci1]:
 !!! ByteCodeGen [Ghci1]: finished in 0.00 milliseconds, allocated 0.070
 megabytes
 Access violation in generated code when reading 77b2ffff
 --- Process 2564 created
 --- Process 2564 loaded C:\Windows\SysWOW64\ntdll.dll at 77b20000
 --- Process 2564 unloaded DLL at 77820000
 --- Process 2564 unloaded DLL at 75b10000
 --- Process 2564 unloaded DLL at 77820000
 --- Process 2564 unloaded DLL at 77720000
 --- Process 2564 loaded C:\Windows\SysWOW64\kernel32.dll at 75b10000
 --- Process 2564 loaded C:\Windows\SysWOW64\KernelBase.dll at 77150000
 --- Process 2564 loaded C:\Windows\SysWOW64\msvcrt.dll at 77590000
 --- Process 2564 loaded C:\Windows\SysWOW64\user32.dll at 759d0000
 --- Process 2564 loaded C:\Windows\SysWOW64\gdi32.dll at 774c0000
 --- Process 2564 loaded C:\Windows\SysWOW64\lpk.dll at 77580000
 --- Process 2564 loaded C:\Windows\SysWOW64\usp10.dll at 76000000
 --- Process 2564 loaded C:\Windows\SysWOW64\advapi32.dll at 75e60000
 --- Process 2564 loaded C:\Windows\SysWOW64\sechost.dll at 77130000
 --- Process 2564 loaded C:\Windows\SysWOW64\rpcrt4.dll at 760a0000
 --- Process 2564 loaded C:\Windows\SysWOW64\sspicli.dll at 75620000
 --- Process 2564 loaded C:\Windows\SysWOW64\cryptbase.dll at 75610000
 --- Process 2564 loaded C:\Windows\SysWOW64\imm32.dll at 757c0000
 --- Process 2564 loaded C:\Windows\SysWOW64\msctf.dll at 75820000
 --- Process 2564 loaded C:\Windows\SysWOW64\embdtrst.dll at 75130000
 --- Process 2564 loaded C:\Windows\SysWOW64\apphelp.dll at 750e0000
 --- Process 2972 created
 --- Process 2972 loaded C:\Windows\SysWOW64\ntdll.dll at 77b20000
 --- Process 2972 unloaded DLL at 77820000
 --- Process 2972 unloaded DLL at 75b10000
 --- Process 2972 unloaded DLL at 77820000
 --- Process 2972 unloaded DLL at 77720000
 --- Process 2972 loaded C:\Windows\SysWOW64\kernel32.dll at 75b10000
 --- Process 2972 loaded C:\Windows\SysWOW64\KernelBase.dll at 77150000
 --- Process 2972 loaded C:\Windows\SysWOW64\gdi32.dll at 774c0000
 --- Process 2972 loaded C:\Windows\SysWOW64\user32.dll at 759d0000
 --- Process 2972 loaded C:\Windows\SysWOW64\advapi32.dll at 75e60000
 --- Process 2972 loaded C:\Windows\SysWOW64\msvcrt.dll at 77590000
 --- Process 2972 loaded C:\Windows\SysWOW64\sechost.dll at 77130000
 --- Process 2972 loaded C:\Windows\SysWOW64\rpcrt4.dll at 760a0000
 --- Process 2972 loaded C:\Windows\SysWOW64\sspicli.dll at 75620000
 --- Process 2972 loaded C:\Windows\SysWOW64\cryptbase.dll at 75610000
 --- Process 2972 loaded C:\Windows\SysWOW64\lpk.dll at 77580000
 --- Process 2972 loaded C:\Windows\SysWOW64\usp10.dll at 76000000
 --- Process 2972 loaded C:\Windows\SysWOW64\shell32.dll at 76380000
 --- Process 2972 loaded C:\Windows\SysWOW64\shlwapi.dll at 75f10000
 --- Process 2972 loaded C:\Windows\SysWOW64\wsock32.dll at 74fe0000
 --- Process 2972 loaded C:\Windows\SysWOW64\ws2_32.dll at 75df0000
 --- Process 2972 loaded C:\Windows\SysWOW64\nsi.dll at 75ad0000
 --- Process 2972 loaded C:\Windows\SysWOW64\imm32.dll at 757c0000
 --- Process 2972 loaded C:\Windows\SysWOW64\msctf.dll at 75820000
 --- Process 2972 thread 2824 created
 --- Process 2972 thread 3052 created
 --- Process 2972 thread 3032 created
 --- Process 2972 thread 2436 created
 --- Process 2972 loaded C:\Windows\SysWOW64\ole32.dll at 76190000
 --- Process 2972 loaded C:\Windows\SysWOW64\profapi.dll at 74ff0000
 --- Process 2972 thread 1276 created
 --- Process 2972, exception c0000005 at 7717ece7
 --- Process 2972 thread 2824 exited with status 0x1
 --- Process 2972 thread 3032 exited with status 0x1
 --- Process 2972 thread 1276 exited with status 0x1
 --- Process 2972 thread 3052 exited with status 0x1
 --- Process 2972 thread 2436 exited with status 0x1
 --- Process 2972 exited with status 0x1
 --- Process 2564 exited with status 0x1
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14081#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list