[plt-scheme] Can't compile 372 on PPC64

From: Paulo J. Matos (pocm at soton.ac.uk)
Date: Fri Mar 14 20:10:07 EDT 2008

On Fri, Mar 14, 2008 at 11:10 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> At Fri, 14 Mar 2008 21:26:52 +0000, "Paulo J. Matos" wrote:
>  > (gdb) handle SIGSEGV nostop noprint
>  > Signal        Stop      Print   Pass to program Description
>  > SIGSEGV       No        No      Yes             Segmentation fault
>  > (gdb) c
>  > Continuing.
>  > Seg fault (internal error) at 0x40000031000
>  >
>  > Program received signal SIGABRT, Aborted.
>  > 0x0000040000182d64 in .raise () from /lib/libc.so.6
>  > (gdb) bt
>  > #0  0x0000040000182d64 in .raise () from /lib/libc.so.6
>  > #1  0x0000040000184954 in .abort () from /lib/libc.so.6
>  > #2  0x000000001016fcb0 in fault_handler (sn=<value optimized out>,
>  > si=<value optimized out>,
>  >     ctx=<value optimized out>) at ./sighand.c:20
>  > #3  <signal handler called>
>  > #4  symbol_bucket (table=0x400002c6c58, key=0x40000000008 "", length=33685760,
>  >     naya=0x40000000000) at xsrc/symbol.c:39
>  > #5  0x0000000010131c2c in symbol_bucket (table=<value optimized out>,
>  >     key=<value optimized out>, length=14, naya=0x400002d0fbc) at
>  > xsrc/symbol.c:111
>
>  So, it crashed right away.
>
>  Actually, looking again at the initial SIGSEGV, it's probably not a
>  valid place for a write barrier after all. (I misread the stack trace,
>  which on first glance looked like the usual place in a hashing function
>  where the first write barrier is often hit.)
>
>
>  > Do you think it's worth a try the current SVN head?
>
>  Yes, that's a good idea. Now that you suggest it, I remember that
>  Andrew Reilly tracked down and fixed a 64-bit GC bug a few weeks ago.
>

Unfortunately I still get the bug in SVN rev 8974.
Although lines numbers are different given that many things changed in
the code, the bug seems to be the same. Backtrace is:
$ gdb mzscheme3m
GNU gdb 6.7.1
Copyright (C) 2007 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 "powerpc64-unknown-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/pmatos/plt-build/mzscheme/mzscheme3m
Welcome to MzScheme v3.99.0.18 [3m], Copyright (c) 2004-2008 PLT Scheme Inc.

Program received signal SIGSEGV, Segmentation fault.
symbol_bucket (table=0x400002c6c8c, key=0x40000000008 "", length=33685760,
    naya=0x40000000000) at xsrc/symbol.c:39
39            int c = key [i ++ ] ;
(gdb) bt
#0  symbol_bucket (table=0x400002c6c8c, key=0x40000000008 "", length=33685760,
    naya=0x40000000000) at xsrc/symbol.c:39
#1  0x0000000010145fbc in symbol_bucket (table=<value optimized out>,
    key=<value optimized out>, length=14, naya=0x400002d113c)
    at xsrc/symbol.c:111
#2  0x00000000101461b4 in scheme_intern_exact_symbol_in_table (
    symbol_table=0x400002c6c8c, kind=0, name=0x101a9730 "#%module-begin",
    len=14) at xsrc/symbol.c:265
#3  0x000000001014673c in scheme_intern_symbol (
    name=0x101a9730 "#%module-begin") at xsrc/symbol.c:373
#4  0x0000000010028150 in scheme_add_global_keyword (
    name=<value optimized out>, obj=<value optimized out>,
    env=<value optimized out>) at xsrc/env.c:923
#5  0x0000000010099108 in scheme_init_module (env=0x400002c6b60)
    at xsrc/module.c:174
#6  0x000000001002b3fc in scheme_basic_env () at xsrc/env.c:284
#7  0x000000001001c51c in actual_main (argc=<value optimized out>,
    argv=0xfffff997108) at xsrc/main.c:2026
#8  0x000000001007f714 in scheme_image_main (argc=<value optimized out>,
    argv=<value optimized out>) at xsrc/image.c:9
#9  0x000000001001e3d8 in main (argc=1, argv=<value optimized out>)
    at xsrc/main.c:2156

>  Matthew
>
>
>
>



-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Sponsor ECS runners - Action against Hunger:
http://www.justgiving.com/ecsrunslikethewind


Posted on the users mailing list.