[GHC] #10051: panic - the 'impossible' happened
#10051: panic - the 'impossible' happened -------------------------------------+------------------------------------- Reporter: jpw1991 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.4 Keywords: | Operating System: Unknown/Multiple Architecture: x86_64 | Type of failure: GHCi crash (amd64) | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Hi there, I'm new to Haskell and I'm loving it so far. I finished a learning project in Haskell and it works fine on Linux. I'm bringing it over to Windows and I got the following error while running it: C:\Repositories\HaskellPong>ghci Main.hs -LC:\SDL\lib -lSDL2 GHCi, version 7.8.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading object (static archive) C:\SDL\lib\libSDL2.a ... ghc.exe: Unknown PEi386 section name `.rdata$.refptr.DUMMYAUD_bootstrap' (while processing: C:\SDL\lib\ libSDL2.a) ghc.exe: panic! (the 'impossible' happened) (GHC version 7.8.3 for x86_64-unknown-mingw32): loadArchive "C:\\SDL\\lib\\libSDL2.a": failed Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug The repository is public, so you can go and get it from here: https://jwoodss@bitbucket.org/jwoodss/haskellpong.git -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10051> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10051: panic - the 'impossible' happened -------------------------------+----------------------------------------- Reporter: jpw1991 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.4 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+----------------------------------------- Changes (by jpw1991): * os: Unknown/Multiple => Windows -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10051#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10051: panic - the 'impossible' happened -------------------------------+----------------------------------------- Reporter: jpw1991 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.4 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+----------------------------------------- Comment (by archblob): This looks like the same problem reported in #7103. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10051#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10051: panic - the 'impossible' happened ---------------------------------+----------------------------------------- Reporter: jpw1991 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.4 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: #7103, #9907 | Differential Revisions: ---------------------------------+----------------------------------------- Changes (by rwbarton): * related: => #7103, #9907 Comment: Or #9907. I don't know enough about Windows to be sure whether these are duplicates, but they all look related at least. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10051#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10051: panic - the 'impossible' happened ---------------------------------+----------------------------------------- Reporter: jpw1991 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.4 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: #7103, #9907 | Differential Revisions: ---------------------------------+----------------------------------------- Comment (by Austin Seipp <austin@…>): In [changeset:"a293925d810229fbea77d95f2b3068e78f8380cc/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="a293925d810229fbea77d95f2b3068e78f8380cc" rts/linker: ignore unknown PE sections Summary: Currently the linker tries to see if it understands/knows every section in the PE file before it continues. If it encounters a section it doesn't know about it errors out. Every time there's a change in MinGW compiler that adds a new section to the PE file this will break the ghc linker. The new sections don't need to be understood by `ghc` to continue so instead of erroring out the section is just ignored. When running with `-debug` the sections that are ignored will be printed. Test Plan: See the file `ghcilinkerbug.zip` in #9907. 1) unzip file content. 2) open examplecpp.cabal and change base <4.8 to <4.9. 3) execute cabal file with cabal repl. Applying the patch makes `cabal repl` in step 3) work. Note that the file will fail on a `___mingw_vprintf` not being found. This is because of the `cc-options` specifying `-std=c++0x`, which will also require `libmingwex.a` to be linked in but wasn't specified in the cabal file. To fix this, remove the `cc-options` which defaults to c99. Reviewers: austin Reviewed By: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D671 GHC Trac Issues: #9907, #7103, #10051, #7056, #8546 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10051#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10051: panic - the 'impossible' happened -------------------------------------+------------------------------------- Reporter: jpw1991 | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 7.8.4 Resolution: duplicate | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: GHCi crash | (amd64) Blocked By: | Test Case: Related Tickets: #9907, #7103, | Blocking: #7056, #8546 | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: new => closed * resolution: => duplicate * related: #7103, #9907 => #9907, #7103, #7056, #8546 Comment: Duplicate of #9907, which will be merged to 7.10.1. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10051#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10051: panic - the 'impossible' happened -------------------------------------+------------------------------------- Reporter: jpw1991 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.1 Component: GHCi | Version: 7.8.4 Resolution: duplicate | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: GHCi crash | (amd64) Blocked By: | Test Case: Related Tickets: #9907, #7103, | Blocking: #7056, #8546 | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thoughtpolice): * milestone: => 7.10.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10051#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC