#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):

 Ok, bug number #4867 has some good info.

 Finding a GHCi test that crashes is easy, they all crash before GHCi
 prints the command prompt. Running under gdb I get:

 {{{
 erikd > gdb inplace/lib/ghc-stage2
 GNU gdb (GDB) 7.2-debian
 Copyright (C) 2010 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "powerpc-linux-gnu".
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>...
 Reading symbols from /home/erikd/Git/ghc-no-ghci/inplace/lib/ghc-
 stage2...done.
 (gdb) run --interactive -Binplace/lib
 Starting program: /home/erikd/Git/ghc-no-ghci/inplace/lib/ghc-stage2
 --interactive -Binplace/lib
 [Thread debugging using libthread_db enabled]
 [New Thread 0xf7dff490 (LWP 9874)]
 [New Thread 0xf71ff490 (LWP 9875)]
 GHCi, version 7.1.20110527: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package ffi-1.0 ... linking ... done.

 Program received signal SIGSEGV, Segmentation fault.
 0xf529d28c in ?? ()
 (gdb) bt
 #0  0xf529d28c in ?? ()
 #1  0x10078ddc in s3b1_info ()
 #2  0x11a885a8 in schedule (initialCapability=0x48a19255, task=0x3bf9fffc)
 at rts/Schedule.c:457
 Backtrace stopped: previous frame inner to this frame (corrupt stack?)
 }}}

 which suggests, as before, that its crashing in haskell code.

 I did however get some useful info from running:

 {{{
 inplace/bin/ghc-stage2 --interactive +RTS -Dl
 }}}

 which spits out a huge pile of stuff and ends with:

 {{{
 Loading package ffi-1.0 ... linking ... resolveObjs: start
 initLinker: start
 initLinker: idempotent return
 resolveObjs: done
 done.
 lookupSymbol: looking up base_GHCziIOziHandleziFD_stdin_closure
 initLinker: start
 initLinker: idempotent return
 lookupSymbol: value of base_GHCziIOziHandleziFD_stdin_closure is
 0xf53d38d4
 lookupSymbol: looking up base_GHCziIOziHandleziFD_stdout_closure
 initLinker: start
 initLinker: idempotent return
 lookupSymbol: value of base_GHCziIOziHandleziFD_stdout_closure is
 0xf53d3880
 lookupSymbol: looking up base_GHCziIOziHandleziFD_stderr_closure
 initLinker: start
 initLinker: idempotent return
 lookupSymbol: value of base_GHCziIOziHandleziFD_stderr_closure is
 0xf53d3940
 Segmentation fault
 }}}

 That gives me something to chase.

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