[GHC] #8877: "if this code is reached, the program will abort" in sparc
GHC
ghc-devs at haskell.org
Wed Mar 12 08:55:39 UTC 2014
#8877: "if this code is reached, the program will abort" in sparc
----------------------------+-------------------------------------
Reporter: nomeata | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Keywords: | Operating System: Unknown/Multiple
Architecture: sparc | Type of failure: Runtime crash
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #8857 |
----------------------------+-------------------------------------
Hi,
sparc, when built with dynamic libraries, fails with a segmentation fault:
https://buildd.debian.org/status/fetch.php?pkg=ghc&arch=sparc&ver=7.8.20140228-1&stamp=1393975264
Possible cause indicated by
{{{
"inplace/bin/ghc-stage1" -static -H32m -O -lffi -optl-pthread -Iincludes
-Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-
ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name
rts -optc-DNOSMP -dcmm-lint -i -irts -irts/dist/build
-irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen
-O2 -c rts/Apply.cmm -o rts/dist/build/Apply.o
/tmp/ghc14927_0/ghc14927_2.hc: In function 'stg_PAP_entry':
/tmp/ghc14927_0/ghc14927_2.hc:101:30:
warning: function called through a non-compatible type [enabled by
default]
/tmp/ghc14927_0/ghc14927_2.hc:101:30:
note: if this code is reached, the program will abort
}}}
It works without shared libraries (see #8857)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8877>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list