Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Illegal instruction (core dumped) #39

tensor5 opened this Issue · 11 comments

4 participants


I don't know if it's an issue of ghc or hlint, but after upgrading to 7.8.1 and 1.8.60 I get the error

Illegal instruction (core dumped)

on any file.


Eek, that will be a ghc issue. What processor/os are you on? I suggest you report it on the ghc bug tracker.


x86_64. So you haven't tested it on 7.8 yet, right?


Nope. I am windows 32 bit, but I will give it a go later tonight. I am sure someone will have already given it a test though...


I can't reproduce this on my Windows machine that I built the binaries on - hlint 1.8.60 works fine built by GHC 7.8.2, both 32 and 64bit, on some test files I have lying around.

Would it be possible for you to attach some kind of debugger to the binary and see what 'illegal instruction' is executing? It would be mighty helpful.


@thoughtpolice - I suspect the original commenter may be on Linux.


Yes, I'm on Archlinux.
The line of dmesg is

[ 3528.651175] traps: hlint[4233] trap invalid opcode ip:dfbd2b sp:7fff10855588 error:0 in hlint[400000+ef1000]

I'll wait until 7.8.2 is available for Arch, and see if it's related to that.


I still can't reproduce this on my machine (64bit Ubuntu 13.10). Can I ask which tarball you're using?

I suppose there are some possible binary incompatibilities - glibc, or gmp possibly (I don't know if Arch for example is using the newly minted GMPv6).

Please do report back when the ArchLinux 7.8.2 build is available. Thanks!


Can’t reproduce with

▸hlint --version
HLint v1.8.60, (C) Neil Mitchell 2006-2014
▸ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.2

on Arch Linux (x86_64) when running hlint on both whole haskell/cabal repository and some random file from it. GHC 7.8.2 comes from staging repository.


Mine comes from the [haskell-core] repository. It might be a problem of this particular binary, next week the new binary will come out and I'll try with it.


I have two computers that practically equal, both of them AMD Athlon II X2, and on both of them I get the "Illegal instruction" thing.
Then I have an Intel Sandybridge laptop, and HLint works fine on that one.
All three machines use ArchLinux and GHC 7.8.2.

I experimented a little bit with HLint inside ghci (I don't know anything about hlint internals) to try and pin down the problem:

Prelude Language.Haskell.HLint2> findSettings "/usr/share/x86_64-linux-ghc-7.8.2/hlint-1.8.60" "/usr/share/x86_64-linux-ghc-7.8.2/hlint-1.8.60/HLint.hs" Nothing
Illegal instruction (core dumped)
@tensor5 tensor5 referenced this issue in haskell-suite/haskell-src-exts

Illegal instruction (core dumped) #96


Solved after upgrading to haskell-src-exts-1.15.0.

@tensor5 tensor5 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.