
#14433: Windows10 GHCI Crash, it can't run correctly ----------------------------------+-------------------------------------- Reporter: Shizumi | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.4.1 Component: GHCi | Version: 8.2.1 Resolution: duplicate | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: #14168 #14398 | Differential Rev(s): Wiki Page: | ----------------------------------+-------------------------------------- Changes (by Phyx-): * status: new => closed * resolution: => duplicate * related: => #14168 #14398 Comment: Let's continue this at #14398. This is locale related, it's having trouble converting char to a widechar, and seems to have some issues under what looks like a Chinese locale. 8.0 works because it doesn't have support for import libraries, so it doesn't have this call. The function that fails is `mbstowcs` and the documentation states: `If mbstowcs encounters an invalid multibyte character, it returns –1` So something is corrupting the path. This corruption was either introduced in 8.2 or always existed but we never knew it because the paths weren't being validated. Judging from #14168 which seems to indicate that there's some path corruption long before it hits the rts. Shizumi, can you as well try the steps in https://ghc.haskell.org/trac/ghc/ticket/14398#comment:3 there's a big possibility that 8.4 fixes the memory corruption by an unrelated commit, which is why it's working. but without the path I can't figure it out.. I'll have to make a special build of 8.2 with the aggressive error handlers turned off for the monitor to work. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14433#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler