#4995: Compiling pandoc with llvm backend fails with panic
--------------------------------+-------------------------------------------
Reporter: jgm | Owner: dterei
Type: bug | Status: new
Priority: normal | Milestone: 7.2.1
Component: Compiler (LLVM) | Version: 7.0.2
Keywords: llvm pandoc | Testcase:
Blockedby: | Difficulty:
Os: MacOS X | Blocking:
Architecture: x86 | Failure: None/Unknown
--------------------------------+-------------------------------------------
Comment(by dterei):
OK figured it all out. Basically one of the things the LLVM mangler
searches for in the assembly instructions is 'jmp' instructions. I was
naively just searching "jmp" which picks up some of the random names that
ghc generates such as:
{{{
movl $_sjmpK_info, 4(%ebp)
[...]
jmp _sjmp7_info
}}}
Ghc name generator is basically sequential, so thats why the bug only
appeared after compiling a certain amount of code and why restarting the
compiler fixes the bug. I have a fix ready that I'll commit soon but just
restarting the compiler is a decent enough work around until the next GHC
comes out. Thanks for the bug report!
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4995#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs