[GHC] #11831: Illegal Instruction when running byte operations in ghci

#11831: Illegal Instruction when running byte operations in ghci ----------------------------------+------------------------------- Reporter: Kritzefitz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.10.3 Keywords: | Operating System: Linux Architecture: arm | Type of failure: GHCi crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: ----------------------------------+------------------------------- On a Debian armel machine I started ghci through `cabal repl` in bytes-0.15.2 an run the following commands, which reproducibly (for me) run into a crash: {{{#!hs
:m Data.Word Data.Binary.Put Data.Bits Data.Bytes.Put runPut $ Data.Bytes.Put.putWord8 1 "\SOH" -- Exactly the same again: runPut $ Data.Bytes.Put.putWord8 1 "Illegal instruction }}}
Using `Data.Binary.Put.putWord8` instead of `Data.Bytes.Put.putWord8` doesn't lead to a crash, even though the only difference between the two is that the bytes version is an instance method. Using an installed version of `bytes` instead of compiling it with GHCi (in my case with `cabal repl`) doesn't crash. Some strange reactions during debugging this lead me to believe, that running some calculations between the two shown above can avert the crash, but I couldn't figure out, what exactly had to be done. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11831 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11831: Illegal Instruction when running byte operations in ghci -------------------------------------+------------------------------------- Reporter: Kritzefitz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: #10375, #8896, | Differential Rev(s): #10863, #10969 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * cc: erikd (added) * related: => #10375, #8896, #10863, #10969 Comment: Which version of llvm do you have installed? llvm-3.5.0 is known to be broken, and llvm-3.5.2 is known to be working. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11831#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11831: Illegal Instruction when running byte operations in ghci -------------------------------------+------------------------------------- Reporter: Kritzefitz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: #10375, #8896, | Differential Rev(s): #10863, #10969 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Kritzefitz): According to the [https://buildd.debian.org/status/fetch.php?pkg=ghc&arch=armel&ver=7.10.3-7&stamp=1454152730 Debian buildd log] llvm-3.5.2 was used. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11831#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC