HEAD segfaulting

Ian Lynagh igloo at earth.li
Tue Mar 30 16:46:18 EST 2004


Hi all,

I'm getting segfaults with the HEAD:

$ echo 'main = putStrLn "Foo"' > Q.hs
$ ghc Q.hs
Segmentation fault
$ ghc Q.hs +RTS -Ds -Dc -Dw -DG -Dg -Db -DS -Dt -Dp -Dr -DP -Dl 2>&1 | tail -30
group at 0x40a10000, length 18 blocks
group at 0x40a23000, length 6 blocks
group at 0x40a39000, length 1 blocks
group at 0x40a3b000, length 2 blocks
group at 0x40a3f000, length 9 blocks
group at 0x40a4c000, length 10 blocks
group at 0x40a70000, length 5 blocks
group at 0x40b57000, length 96 blocks
group at 0x40be0000, length 4 blocks
group at 0x40be6000, length 26 blocks
     Gen    Steps      Max   Mutable  Mut-Once  Step   Blocks     Live    Large
                    Blocks  Closures  Closures                          Objects
       0        2      728         0         0     0      948        0        0
                                                   1       57   231872        0
       1        1      728        58         0     0      398  1623052       11

all threads:
        thread 1 @ 0x40914000 is not blocked
sched: -->> running thread 1 ThreadRunGHC ...
sched: --<< thread 1 (ThreadRunGHC) stopped, yielding
all threads:
        thread 1 @ 0x40914000 is not blocked
sched: -->> running thread 1 ThreadRunGHC ...
sched: --<< thread 1 (ThreadRunGHC) stopped, yielding
all threads:
        thread 1 @ 0x40914000 is not blocked
sched: -->> running thread 1 ThreadRunGHC ...
ghc-6.3: internal error: checkStackFrame: weird activation record found on stack (0x40933f1c).
    Please report this as a bug to glasgow-haskell-bugs at haskell.org,
    or http://www.sourceforge.net/projects/ghc/
$ 

(that's all the -D*s in "ghc +RTS -?" except -Di).

The above used GHC 6.2 to compile, but 6.2.1 also gave segfaults.

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib,gtk --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.3 (Debian 20040320)
$ 

Using Debian GNU/Linux on x86.


Thanks
Ian



More information about the Cvs-ghc mailing list