#5639: Computing the sum of all the primes below two million leads to a runtime
system crash
-------------------------------+--------------------------------------------
Reporter: manzyuk | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 7.0.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Linux | Blocking:
Architecture: x86_64 (amd64) | Failure: Runtime crash
-------------------------------+--------------------------------------------
Comment(by manzyuk):
The binary created on the desktop machine doesn't work on the laptop
because of a missing shared library dependency:
{{{
manzyuk@paddy:~$ ./euler-10
./euler-10: error while loading shared libraries: libgmp.so.10: cannot
open shared object file: No such file or directory
manzyuk@paddy:~$ ldd euler-10
linux-vdso.so.1 => (0x00007fffdb5ff000)
libgmp.so.10 => not found
libm.so.6 => /lib/libm.so.6 (0x00007f619dc07000)
librt.so.1 => /lib/librt.so.1 (0x00007f619d9fe000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f619d7fa000)
libc.so.6 => /lib/libc.so.6 (0x00007f619d477000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f619d259000)
/lib64/ld-linux-x86-64.so.2 (0x00007f619deae000)
}}}
The binary built on the laptop is linked against `libgmp.so.3`, not
`libgmp.so.10`:
{{{
manzyuk@paddy:~/tmp$ ldd euler-10
linux-vdso.so.1 => (0x00007fff881ff000)
libgmp.so.3 => /usr/lib/libgmp.so.3 (0x00007febe2833000)
libm.so.6 => /lib/libm.so.6 (0x00007febe25b0000)
librt.so.1 => /lib/librt.so.1 (0x00007febe23a7000)
libdl.so.2 => /lib/libdl.so.2 (0x00007febe21a3000)
libc.so.6 => /lib/libc.so.6 (0x00007febe1e20000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007febe1c02000)
/lib64/ld-linux-x86-64.so.2 (0x00007febe2ab7000)
}}}
The desktop has both `libgmp.so.10` and `libgmp.so.3`, so I copied the
binary built on the laptop to the desktop and ran it:
{{{
manzyuk@pandora:~$ ./euler-10
euler-10: internal error: scavenge_stack: weird activation record found on
stack: 2
(GHC version 7.0.3 for x86_64_unknown_linux)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
Aborted
}}}
Since this doesn't happen on the laptop, I am leaning towards accepting
that this is a hardware bug and closing the ticket. Apologies for making
noise.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5639#comment:4>
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