Illegal instruction (core dumped) #39

Closed
tensor5 opened this Issue Apr 12, 2014 · 11 comments

Comments

Projects
None yet
4 participants
@tensor5

tensor5 commented Apr 12, 2014

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.

@ndmitchell

This comment has been minimized.

Show comment
Hide comment
@ndmitchell

ndmitchell Apr 12, 2014

Owner

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

Owner

ndmitchell commented Apr 12, 2014

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

@tensor5

This comment has been minimized.

Show comment
Hide comment
@tensor5

tensor5 Apr 12, 2014

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

tensor5 commented Apr 12, 2014

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

@ndmitchell

This comment has been minimized.

Show comment
Hide comment
@ndmitchell

ndmitchell Apr 12, 2014

Owner

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...

Owner

ndmitchell commented Apr 12, 2014

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...

@thoughtpolice

This comment has been minimized.

Show comment
Hide comment
@thoughtpolice

thoughtpolice Apr 12, 2014

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.

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.

@ndmitchell

This comment has been minimized.

Show comment
Hide comment
@ndmitchell

ndmitchell Apr 12, 2014

Owner

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

Owner

ndmitchell commented Apr 12, 2014

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

@tensor5

This comment has been minimized.

Show comment
Hide comment
@tensor5

tensor5 Apr 12, 2014

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.

tensor5 commented Apr 12, 2014

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.

@thoughtpolice

This comment has been minimized.

Show comment
Hide comment
@thoughtpolice

thoughtpolice Apr 12, 2014

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!

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!

@nagisa

This comment has been minimized.

Show comment
Hide comment
@nagisa

nagisa Apr 12, 2014

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.

nagisa commented Apr 12, 2014

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.

@tensor5

This comment has been minimized.

Show comment
Hide comment
@tensor5

tensor5 Apr 12, 2014

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.

tensor5 commented Apr 12, 2014

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.

@tensor5

This comment has been minimized.

Show comment
Hide comment
@tensor5

tensor5 Apr 14, 2014

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 commented Apr 14, 2014

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 Apr 14, 2014

Closed

Illegal instruction (core dumped) #96

@tensor5

This comment has been minimized.

Show comment
Hide comment
@tensor5

tensor5 Apr 15, 2014

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

tensor5 commented Apr 15, 2014

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

@tensor5 tensor5 closed this Apr 15, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment