[GHC] #13455: GHCi crash GHC with creation of a "crash dump file" in Windows

GHC ghc-devs at haskell.org
Sun Mar 19 13:22:17 UTC 2017


#13455: GHCi crash GHC with creation of a "crash dump file" in Windows
--------------------------------+----------------------------------
           Reporter:  vanto     |             Owner:  (none)
               Type:  bug       |            Status:  new
           Priority:  normal    |         Milestone:
          Component:  Compiler  |           Version:  8.0.2
           Keywords:            |  Operating System:  Windows
       Architecture:  x86       |   Type of failure:  Runtime crash
          Test Case:            |        Blocked By:
           Blocking:            |   Related Tickets:
Differential Rev(s):            |         Wiki Page:
--------------------------------+----------------------------------
 Hi,\\
 I repeated this several times in order and GHC crash after typing the
 command {{{:r}}} several times in GHCi\\
 If the two files are taken separately there is no crash\\

 file {{{test1.hs}}}

 {{{
 main :: IO ()
 main = do {
              putStr "hello";
              x <- getChar;
              putStr "x = ";
              print x;
            }
 }}}
 file {{{test2.hs}}}

 {{{
 putStr :: String -> IO ()
 putStr [] = return ()
 putStr (x:xs) = do putChar x
                    putChar '\n'

 putStrLn :: String -> IO ()
 putStrLn xs = do putStr xs
                  putChar '\n'
 }}}
 1- open GHCi\\
 2- {{{:load}}} test1.hs\\
 3- run main\\
 4- {{{:load}}} test2.hs\\
 5- an error message comes then type {{{:r}}}\\
 6- keep trying {{{:r}}} until the crash of GHC. usually at the end of the
 third time.\\
 7- see the Windows message to the screen.\\


 a "crash dump file" is created. It say:\\
 exception code 0xC0000096\\
 process name: ghc.exe: C:\ghc-8.0.2\bin\ghc.exe\\
 information: the thread tried to execute a statement that the operation is
 not allowed in the current mode of the computer\\
 modules name:\\
 ghc.exe,
 ntdll.dll,
 kernel32.dll,
 gdi32.dll,
 user32.dll,
 advapi32.dll,
 rpcrt4.dll,
 msvcrt.dll,
 shell32.dll,
 shlwapi.dll,
 wsock32.dll,
 ws2_32.dll,
 nsi.dll,
 imm32.dll,
 msctf.dll,
 lpk.dll,
 usp10.dll,
 comctl32.dll,
 ole32.dll,
 userenv.dll,
 secur32.dll,
 apphelp.dll\\
 a particularly pointed to by Windows file is msvcrt.dll\\


 Hope this help

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


More information about the ghc-tickets mailing list