Opened 12 months ago

Last modified 12 months ago

#8877 new bug

"if this code is reached, the program will abort" in unregisterised build

Reported by: nomeata Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.8.1-rc2
Keywords: Cc: ptrommler@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Runtime crash Test Case:
Blocked By: Blocking:
Related Tickets: #8857 Differential Revisions:

Description

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)

Change History (1)

comment:1 Changed 12 months ago by trommler

  • Architecture changed from sparc to Unknown/Multiple
  • Cc ptrommler@… added
  • Summary changed from "if this code is reached, the program will abort" in sparc to "if this code is reached, the program will abort" in unregisterised build
  • Version changed from 7.6.3 to 7.8.1-rc2

I see the same on powerpc64 with dynamic libraries enabled:
https://build.opensuse.org/package/live_build_log/home:ptrommler/ghc/openSUSE_Factory_PowerPC_standard/ppc64

Changing architecture accordingly.

Note: See TracTickets for help on using tickets.