[GHC] #14433: Windows10 GHCI Crash, it can't run correctly

#14433: Windows10 GHCI Crash, it can't run correctly --------------------------------------+---------------------------------- Reporter: Shizumi | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Keywords: | Operating System: Windows Architecture: x86_64 (amd64) | Type of failure: Runtime crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: --------------------------------------+---------------------------------- I followed the Haskel Platform website download the version 8.2.1 and installed it sucessfully, i add the extra path too.But when I open GHCI in start menu or in PowerShell,it cant run sucessfully, below are the error message, ps: here is Windows 10 Pro Insider Preview, does it matter or what? PS C:\Users\SHIZU-NOTEBOOK\Desktop> ghci GHCI, version 8.2.1: http://www.haskell.org/ghc/ :? for help ghc.exe: internal error: mkPath failed converting char* to wchar_t* (GHC version 8.2.1 for x86_64_unknown_mingw32) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14433 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14433: Windows10 GHCI Crash, it can't run correctly ----------------------------------+-------------------------------------- Reporter: Shizumi | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.4.1 Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+-------------------------------------- Changes (by bgamari): * cc: Phyx- (added) * milestone: => 8.4.1 Old description:
I followed the Haskel Platform website download the version 8.2.1 and installed it sucessfully, i add the extra path too.But when I open GHCI in start menu or in PowerShell,it cant run sucessfully, below are the error message, ps: here is Windows 10 Pro Insider Preview, does it matter or what?
PS C:\Users\SHIZU-NOTEBOOK\Desktop> ghci GHCI, version 8.2.1: http://www.haskell.org/ghc/ :? for help ghc.exe: internal error: mkPath failed converting char* to wchar_t* (GHC version 8.2.1 for x86_64_unknown_mingw32) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
New description: I followed the Haskel Platform website download the version 8.2.1 and installed it sucessfully, i add the extra path too.But when I open GHCI in start menu or in PowerShell,it cant run sucessfully, below are the error message, ps: here is Windows 10 Pro Insider Preview, does it matter or what? {{{ PS C:\Users\SHIZU-NOTEBOOK\Desktop> ghci GHCI, version 8.2.1: http://www.haskell.org/ghc/ :? for help ghc.exe: internal error: mkPath failed converting char* to wchar_t* (GHC version 8.2.1 for x86_64_unknown_mingw32) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. }}} -- Comment: Any idea what is going on here, Tamar? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14433#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

Any idea what is going on here, Tamar? Still I don't know why,however,when I switch to version 8.0.2, there is no
#14433: Windows10 GHCI Crash, it can't run correctly ----------------------------------+-------------------------------------- Reporter: Shizumi | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.4.1 Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+-------------------------------------- Comment (by Shizumi): Replying to [comment:1 bgamari]: problem. BTW, I found a similiar error like me some days ago and I follow the suggestion there that install a API monitor and monitor ghc.exe,there are only two exe where should be four. Sorry for my poor English, Thank you! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14433#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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
participants (1)
-
GHC