[GHC] #8830: internal error: Misaligned section: 18206e5b on Windows

#8830: internal error: Misaligned section: 18206e5b on Windows ----------------------------+------------------------------- Reporter: joeyhess | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Windows Architecture: x86 | Type of failure: GHCi crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------+------------------------------- Loading package gnutls-0.1.5 ... ghc.exe: internal error: Misaligned section: 18206e5b (GHC version 7.6.3 for i386_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. Only occurs when loading the module in as part of a build involving TH. A non-TH-using program using this library links successfully. I have installed a gnutls built for Windows, from http://josefsson.org/gnutls4win/. Different versions have different section offsets, but all the versions I've tried fail like this. I've also gotten the same error linking gnuidn, instead of gnutls, with gnuidn from ftp://ftp.gnu.org/gnu/libidn/libidn-1.28-win32.zip This makes me think this may be a general ghci on windows bug, rather than a misbuilt library. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8830 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8830: internal error: Misaligned section: 18206e5b on Windows -------------------------------------+------------------------------ Reporter: joeyhess | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: GHCi crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+------------------------------ Changes (by gintas): * status: new => infoneeded Comment: Could you provide more detailed instructions to reproduce the issue? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8830#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8830: internal error: Misaligned section: 18206e5b on Windows -------------------------------------+------------------------------ Reporter: joeyhess | Owner: Type: bug | Status: infoneeded Priority: lowest | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: GHCi crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+------------------------------ Changes (by gintas): * priority: normal => lowest -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8830#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8830: internal error: Misaligned section: 18206e5b on Windows -------------------------------+------------------------------------- Reporter: joeyhess | Owner: Type: bug | Status: infoneeded Priority: lowest | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+------------------------------------- Comment (by mtolly): This appears to specifically happen when you link in static C libraries during TH on Windows. MinGW's linker will automatically prefer static libraries over dynamic ones if it finds them, so you can work around it by only using dynamic libraries. Here's what I did: I have an executable that uses libsndfile, and its Haskell binding hsndfile, and also uses TH. On Windows XP with MinGW/MSYS, I compiled and installed libsndfile and its dependencies, and installed hsndfile, but when it got to the module that needs TH, I got: {{{ Loading package hsndfile-0.7.1 ... ghc.exe: internal error: Misaligned section .eh_frame: 0d035673 (GHC version 7.8.3 for i386_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. }}} So, I went into the lib/ folder I had installed the C libraries into, and deleted all the static libraries (like libsndfile.a), leaving only e.g. libsndfile.dll.a and libsndfile.la, plus libsndfile-1.dll in my bin/ folder. Then I recompiled all the Haskell packages that used C libs (hsndfile and everything on top of it). Tried to compile the executable again, and it complained of not being able to find "sndfile.dll". So I just copied libsndfile-1.dll to sndfile.dll, and then it compiled and ran fine. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8830#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8830: internal error: Misaligned section: 18206e5b on Windows -------------------------------+------------------------------------- Reporter: joeyhess | Owner: Type: bug | Status: infoneeded Priority: lowest | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+------------------------------------- Comment (by Phyx-): @joeyhess Do you have a reproducible case for this? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8830#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8830: internal error: Misaligned section: 18206e5b on Windows -------------------------------+------------------------------ Reporter: joeyhess | Owner: Type: bug | Status: closed Priority: lowest | Milestone: Component: Compiler | Version: 7.6.3 Resolution: invalid | Keywords: Operating System: Windows | Architecture: x86 Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------+------------------------------ Changes (by thomie): * status: infoneeded => closed * resolution: => invalid Comment: Closing, as no response from submitter. Without a reproducible test case we can't do anything. GHC on Windows is much better than it was one year ago, so hopefully this is fixed as well. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8830#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC