#5111: linux-powerpc : segfault in stage2 compiler
-------------------------+--------------------------------------------------
    Reporter:  erikd     |        Owner:                       
        Type:  bug       |       Status:  new                  
    Priority:  normal    |    Milestone:                       
   Component:  Compiler  |      Version:  7.1                  
    Keywords:            |     Testcase:                       
   Blockedby:            |   Difficulty:                       
          Os:  Linux     |     Blocking:                       
Architecture:  powerpc   |      Failure:  Installing GHC failed
-------------------------+--------------------------------------------------

Comment(by erikd):

 Since the problem was occuring in `GhciMonad.turnOffBuffering` I ran "`gdb
 -x commands`" with the file commands file containing:

 {{{
 file inplace/lib/ghc-stage2
 set args +RTS -V0 -i0 -RTS -Binplace/lib --interactive
 break GhciMonad_turnOffBuffering_closure
 break GhciMonad_turnOffBuffering_info
 break GhciMonad_turnOffBuffering_srt
 }}}

 Running this I still get a new segfault with a backtrace as follows:

 {{{
 Breakpoint 1 at 0x11bd4274
 Breakpoint 2 at 0x1007a760
 Breakpoint 3 at 0x11bd4268
 (gdb) r
 Starting program: /home/erikd/Git/ghc-no-ghci/inplace/lib/ghc-stage2 +RTS
 -V0 -i0 -RTS -Binplace/lib --interactive
 [Thread debugging using libthread_db enabled]
 [New Thread 0xf7dff490 (LWP 1748)]

 Program received signal SIGSEGV, Segmentation fault.
 0x11acd94c in LOOKS_LIKE_INFO_PTR_NOT_NULL (p=2105675784) at
 includes/rts/storage/ClosureMacros.h:225
 225         return info->type != INVALID_OBJECT && info->type <
 N_CLOSURE_TYPES;
 (gdb) bt
 #0  0x11acd94c in LOOKS_LIKE_INFO_PTR_NOT_NULL (p=2105675784) at
 includes/rts/storage/ClosureMacros.h:225
 #1  0x11acd9d4 in LOOKS_LIKE_INFO_PTR (p=2105675784) at
 includes/rts/storage/ClosureMacros.h:230
 #2  0x11acda3c in LOOKS_LIKE_CLOSURE_PTR (p=0x11bd4274) at
 includes/rts/storage/ClosureMacros.h:235
 #3  0x11ace45c in evacuate1 (p=0x11bd2c10) at rts/sm/Evac.c:371
 #4  0x11aa6d04 in scavenge_large_srt_bitmap (large_srt=0x11bd2d08) at
 rts/sm/Scav.c:283
 #5  0x11aa6dd8 in scavenge_srt (srt=0x11bd2d08, srt_bitmap=65535) at
 rts/sm/Scav.c:310
 #6  0x11aa6f3c in scavenge_fun_srt (info=0x10070f1c) at rts/sm/Scav.c:359
 #7  0x11aa9098 in scavenge_static () at rts/sm/Scav.c:1506
 #8  0x11aa9b2c in scavenge_loop1 () at rts/sm/Scav.c:1879
 #9  0x11a9eaec in scavenge_until_all_done () at rts/sm/GC.c:967
 #10 0x11a9d0c0 in GarbageCollect (force_major_gc=rtsFalse, gc_type=2,
 cap=0x11d63500) at rts/sm/GC.c:371
 #11 0x11a8c0e0 in scheduleDoGC (cap=0x11d63500, task=0x11d772d8,
 force_major=rtsFalse) at rts/Schedule.c:1427
 #12 0x11a8a878 in schedule (initialCapability=0x11d63500, task=0x11d772d8)
 at rts/Schedule.c:547
 #13 0x11a8cf7c in scheduleWaitThread (tso=0xf7e03d04, ret=0x0,
 cap=0x11d63500) at rts/Schedule.c:1914
 #14 0x11a7f000 in rts_evalLazyIO (cap=0x11d63500, p=0x11bcca28, ret=0x0)
 at rts/RtsAPI.c:494
 #15 0x11a829b8 in real_main () at rts/RtsMain.c:63
 #16 0x11a82ae8 in hs_main (argc=7, argv=0xffffe1f4,
 main_closure=0x11bcca28) at rts/RtsMain.c:111
 #17 0x10003888 in main ()
 }}}

 Debugging continues.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5111#comment:14>
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

Reply via email to