# New Ticket Created by  Joseph Sadusk 
# Please include the string:  [perl #49236]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=49236 >


I just updated parrot to svn rev 24322 and attempted to do a clean
build.  The build failed with a segfault calling miniparrot to generate
config.fpmc.  Here is the output:
gcc -o miniparrot src/main.o \
    -Wl,-rpath=/home/joe/work/parrot_svn/blib/lib
-L/home/joe/work/parrot_svn/blib/lib -lparrot  -lresolv -lnsl -ldl -lm
-lcrypt -lutil -lpthread -lrt -lgmp -lreadline -L/usr/local/lib -Wl,-E
src/null_config.o
Invoking Parrot to generate runtime/parrot/include/config.fpmc --cross
your fingers
./miniparrot config_lib.pasm > runtime/parrot/include/config.fpmc
/bin/sh: line 1: 13437 Segmentation fault      ./miniparrot
config_lib.pasm > runtime/parrot/include/config.fpmc
make: *** [runtime/parrot/include/config.fpmc] Error 139

I wanted to make sure this wasn't anything left in my tree, so I checked
out into another clean directory and built again, same result.

I ran miniparrot in gdb, here is the backtrace:
$ gdb miniparrot
GNU gdb Red Hat Linux (6.6-16.fc7rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) set args config_lib.pasm
(gdb) r
Starting program: /home/joe/work/parrot_svn/miniparrot config_lib.pasm
[Thread debugging using libthread_db enabled]
[New Thread -1208575792 (LWP 13953)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208575792 (LWP 13953)]
0x0026b0b4 in register_nci_method (interp=0x82cb008, type=56,
func=0x40bdc0, 
    name=0x4c4289 "fill", proto=0x4c4284 "vJOI") at src/inter_misc.c:58
58          VTABLE_set_pmc_keyed_str(interp,
interp->vtables[type]->_namespace,
(gdb) bt
#0  0x0026b0b4 in register_nci_method (interp=0x82cb008, type=56, 
    func=0x40bdc0, name=0x4c4289 "fill", proto=0x4c4284 "vJOI")
    at src/inter_misc.c:58
#1  0x0040ce26 in Parrot_FixedBooleanArray_class_init
(interp=0x82cb008, 
    entry=56, pass=1) at ./src/pmc/fixedbooleanarray.c:1153
#2  0x002500f6 in Parrot_initialize_core_pmcs (interp=0x82cb008)
    at src/core_pmcs.c:165
#3  0x002639db in init_world (interp=0x82cb008) at
src/global_setup.c:156
#4  0x002639a7 in init_world_once (interp=0x82cb008) at
src/global_setup.c:122
#5  0x0026a955 in make_interpreter (parent=0x0, flags=0)
    at src/inter_create.c:181
#6  0x0025641f in Parrot_new (parent=0x0) at src/embed.c:85
#7  0x0804881f in main (argc=2, argv=0xbff79ff4) at src/main.c:49
(gdb) 


This was all on Fedora 7 i386, using the stock perl 5.8.8.



Reply via email to