Hi,

I am using:
Linux  2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686 i686
i386 GNU/Linux
Fedora release 8 (Werewolf)
gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)


The make target perl6 fails:
$ make perl6
...
...
...
gmake[1]: Leaving directory `/home/saleem/work/compiler/parrot/languages/perl6'
/usr/bin/perl -MExtUtils::Command -e cp languages/perl6/perl6 ./perl6
/usr/bin/perl -MExtUtils::Command -e ExtUtils::Command::chmod 0755 ./perl6
./perl6 -e"say 'Hello, world.'"
make: *** [perl6] Segmentation fault
make: *** Deleting file `perl6'


This also segfaults:
$ languages/perl6/perl6 -e"say 'Hello, world.'"
Segmentation fault


When using ltrace:
$ ltrace languages/perl6/perl6 -e"say 'Hello, world.'"
__libc_start_main(0x8048920, 2, 0xbf987754, 0x8048ae0, 0x8048ad0
<unfinished ...>
Parrot_set_config_hash_internal(0x81d0a60, 20376, 0x5af7fc8, 1,
0xb3fd65)                                      = 20376
Parrot_new(0, 0x81d6bb4, 0xbf987698, 0x8048731, 0xb7f56000)
                                        = 0x846c008
string_from_cstring(0x846c008, 0xbf988738, 0, 0x8048731, 0xb7f56000)
                                        = 0x863d234
Parrot_set_executable_name(0x846c008, 0x863d234, 0, 0x8048731,
0xb7f56000)                                     = 10
Parrot_set_flag(0x846c008, 512, 0, 0x8048731, 0xb7f56000)
                                        = 512
PackFile_new(0x846c008, 0, 0, 0x8048731, 0xb7f56000)
                                        = 0x8644f68
PackFile_unpack(0x846c008, 0x8644f68, 0x8048bc0, 0x187e90, 0xb7f56000)
                                        = 401316
do_sub_pragmas(0x846c008, 0x86450f0, 4, 0, 0xb7f56000)
                                        = 1052
Parrot_loadbc(0x846c008, 0x8644f68, 4, 0, 0xb7f56000)
                                        = 0x846c008
PackFile_fixup_subs(0x846c008, 1, 0, 0, 0xb7f56000)
                                        = 1052
Parrot_runcode(0x846c008, 2, 0xbf987754, 0, 0xb7f56000 <unfinished ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++



However the interactive mode is working fine:
$ languages/perl6/perl6
> say 'Hello, world.'
Hello, world.
> [ctr-d]


What may be wrong?

Reply via email to