[GHC] #3812: segfault in maybePerformBlockedException

GHC trac at galois.com
Fri Jan 22 09:41:48 EST 2010


#3812: segfault in maybePerformBlockedException
-------------------------------+--------------------------------------------
    Reporter:  duncan          |        Owner:                     
        Type:  bug             |       Status:  new                
    Priority:  normal          |    Milestone:  6.12.2             
   Component:  Runtime System  |      Version:  6.12.1             
    Keywords:                  |   Difficulty:                     
          Os:  Solaris         |     Testcase:                     
Architecture:  sparc           |      Failure:  Building GHC failed
-------------------------------+--------------------------------------------

Comment(by simonmar):

 I tried building the stable branch on sparky, and I get

 {{{
 "inplace/bin/ghc-stage1" -optc-Wall -optc-Wextra -optc-Wstrict-prototypes
 -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-
 Waggregate-return -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-
 Wcast-align -optc-Wnested-externs -optc-Wredundant-decls -optc-Iincludes
 -optc-Irts -optc-DCOMPILING_RTS -optc-DUSE_LIBFFI_FOR_ADJUSTORS -optc-fno-
 strict-aliasing -optc-fno-common -optc-Ilibffi/build/include -optc-fomit-
 frame-pointer -optc-DRtsWay=\"rts_v\" -optc-w   -H64m -O0 -fasm -Iincludes
 -Irts -DCOMPILING_RTS -package-name rts -static  -dcmm-lint
 -Ilibffi/build/include     -i -irts -irts/dist/build
 -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen
 -optc-O2   -c rts/StgCRun.c -o rts/dist/build/StgCRun.o
 /opt/gcc/bin/../../SUNW0scgfss/4.0.4/prod/bin/fbe:
 "/tmp/ghc18508_0/ghc18508_0.s", line 18: error: statement syntax
 /opt/gcc/bin/../../SUNW0scgfss/4.0.4/prod/bin/fbe:
 "/tmp/ghc18508_0/ghc18508_0.s", line 32: error: statement syntax
 }}}

 the .s file in question is

 {{{
         .section        ".text",#alloc,#execinstr,#progbits
         .file   "StgCRun.c"
         .hidden StgRun

         .section        ".text",#alloc,#execinstr,#progbits
         .align  4


         .global StgRun
 StgRun:
         sethi   %hi(0x2000),%g1
         xor     %g1,-96,%g1
         save    %sp,%g1,%sp
         jmpl    %i0,%o7
         nop
         sethi   %hi(0x1c00),%g1
         sethi   %hi(%l1),%i5
         xor     %g1,-1024,%g1
         add     %g1,%fp,%g1
         or      %g0,%g1,%o0

 .L900000111:
         .align  4

 .L900000112:
         .global StgReturn

 .L900000113:

 .L900000114:
         ld      [%i5+%lo(%l1)],%i0
         ret     ! Result =  %i0
         restore %g0,%g0,%g0
         .type   StgRun,2
         .size   StgRun,(.-StgRun)
         .ident  "cg: Sun Compiler Common 12 SunOS_sparc gccfss_lang
 2007/07/11"
         .ident  "GCC: (GNU) 4.0.4 (gccfss)"
         .ident  "iropt: Sun Compiler Common 12 SunOS_sparc gccfss_lang
 2007/07/11"
 }}}

 any ideas?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3812#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list