Re: [perl #60190] [BUG] problems with the compiler-option "-O2" on a 64bit-system

2008-10-31 Thread Andy Dougherty
On Fri, 31 Oct 2008, Gerd Pokorra wrote:

> [EMAIL PROTECTED] tge]$ gdb ../../parrot

> (gdb) set args ../../runtime/parrot/library/PGE/Perl6Grammar.pbc
> --output=TGE/Parser.pir TGE/Parser.pg
> (gdb) run
> Starting
> program: /home/gz016/parrot-sources/debug/parrot-0.8.0/parrot 
> ../../runtime/parrot/library/PGE/Perl6Grammar.pbc --output=TGE/Parser.pir 
> TGE/Parser.pg
> [Thread debugging using libthread_db enabled]
> [New Thread 0x7f543fe82700 (LWP 5203)]

Another thing you might want to consider is that you can probably find a 
more tractable test case somewhere in the test suite.  Try

   perl t/harness --core-tests

and see what tests fail.  (Obviously, ones that depend on PGE will fail, 
but we already know that.  You're looking for simpler test cases.)

Then, once you find tests that fail, try running those individual tests 
with parrot (and also with parrot -G to turn off garbage collection) and 
see what's the smallest or simplest failing test case you can find.  They 
might be better candidates for debugging.

-- 
Andy Dougherty  [EMAIL PROTECTED]


Re: [perl #60190] [BUG] problems with the compiler-option "-O2" on a 64bit-system

2008-10-31 Thread Gerd Pokorra
Hello,

now a new information with backtrace.

Gerd Pokorra


[EMAIL PROTECTED] tge]$ gdb ../../parrot
GNU gdb Fedora (6.8-22.fc9)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later

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 "x86_64-redhat-linux-gnu"...
(gdb) set args ../../runtime/parrot/library/PGE/Perl6Grammar.pbc
--output=TGE/Parser.pir TGE/Parser.pg
(gdb) run
Starting
program: /home/gz016/parrot-sources/debug/parrot-0.8.0/parrot 
../../runtime/parrot/library/PGE/Perl6Grammar.pbc --output=TGE/Parser.pir 
TGE/Parser.pg
[Thread debugging using libthread_db enabled]
[New Thread 0x7f543fe82700 (LWP 5203)]

Program received signal SIGSEGV, Segmentation fault.
0x0099cee4 in Parrot_CallSignature_set_pmc (interp=0x11c2080, 
pmc=0x1668658, value=0x1247518) at ./src/pmc/callsignature.pmc:106
106 sig_struct->type_tuple = value;
Missing separate debuginfos, use: debuginfo-install icu.x86_64
(gdb) backtrace
#0  0x0099cee4 in Parrot_CallSignature_set_pmc
(interp=0x11c2080, 
pmc=0x1668658, value=0x1247518) at ./src/pmc/callsignature.pmc:106
#1  0x00898e61 in Parrot_build_sig_object_from_varargs (
interp=0x11c2080, sig=0xa2a791 "PP->I", args=0x7fff47e9ed40)
at src/multidispatch.c:459
#2  0x00899443 in Parrot_mmd_multi_dispatch_from_c_args (
interp=0x11c2080, name=0xa260fc "cmp", sig=0xa2a791 "PP->I")
at src/multidispatch.c:575
#3  0x0092ec2b in Parrot_default_cmp (interp=0x11c2080,
pmc=0x0, 
value=0x12e3648) at ./src/pmc/default.pmc:2446
#4  0x0082dd5f in Parrot_lt_p_ic_ic (cur_opcode=0x7f543fdabc28, 
interp=0x11c2080) at src/ops/cmp.ops:294
#5  0x008b7bcd in runops_slow_core (interp=0x11c2080, 
pc=0x7f543fdabc28) at src/runops_cores.c:222
#6  0x0089264a in runops_int (interp=0x11c2080, offset=586)
at src/interpreter.c:937
#7  0x0089307b in runops (interp=0x11c2080, offs=)
at src/inter_run.c:101
#8  0x008931b1 in runops_args (interp=0x11c2080, sub=0x12ae928, 
obj=, meth_unused=, 
sig=0xa6f7ac "S", ap=0x7fff47e9ef80) at src/inter_run.c:236
#9  0x008935b5 in Parrot_run_meth_fromc_args (interp=0x11c2080, 
sub=0x1668658, obj=0x1247518, meth=0x0, sig=0x12e3648 "")
---Type  to continue, or q  to quit--- 
at src/inter_run.c:426
#10 0x0083d8bb in Parrot_le_p_sc_ic (cur_opcode=0x7f543fe398d8, 
interp=0x11c2080) at src/ops/cmp.ops:387
#11 0x008b7bcd in runops_slow_core (interp=0x11c2080, 
pc=0x7f543fe398d8) at src/runops_cores.c:222
#12 0x0089264a in runops_int (interp=0x11c2080, offset=3)
at src/interpreter.c:937
#13 0x0089307b in runops (interp=0x11c2080, offs=)
at src/inter_run.c:101
#14 0x008931b1 in runops_args (interp=0x11c2080, sub=0x12b3158, 
obj=, meth_unused=, 
sig=0xa18413 "vP", ap=0x7fff47e9f190) at src/inter_run.c:236
#15 0x0089392b in Parrot_runops_fromc_args (interp=0x11c2080, 
sub=0x1668658, sig=0x12e3648 "") at src/inter_run.c:300
#16 0x00a07c4d in imcc_run (interp=0x11c2080, 
sourcefile=, argc=3, argv=0x7fff47e9f3e0)
at compilers/imcc/main.c:791
#17 0x00400b82 in main (argc=3, argv=0x7fff47e9f3e0) at
src/main.c:61
(gdb) 





Am Dienstag, den 28.10.2008, 20:22 +0100 schrieb chromatic via RT:
> On Tuesday 28 October 2008 07:05:47 [EMAIL PROTECTED] (via RT) wrote:
> 
> > But perhaps there will someone be able to find a way to solve this problem.
> 
> Can you provide a backtrace from GDB?
> 
> -- c
> 
> 
> 



Re: [perl #60190] [BUG] problems with the compiler-option "-O2" on a 64bit-system

2008-10-31 Thread Gerd Pokorra
Hello,

here is some more information. I hope the added command output is
useful.

Gerd Pokorra

[EMAIL PROTECTED] tge]# ../../parrot
-g ../../runtime/parrot/library/PGE/Perl6Grammar
.pbc --output=TGE/Parser.pir TGE/Parser.pg
Segmentation fault
[EMAIL PROTECTED] tge]# ../../parrot
-t ../../runtime/parrot/library/PGE/Perl6Grammar
.pbc --output=TGE/Parser.pir TGE/Parser.pg
error:imcc:syntax error, unexpected IDENTIFIER ('grammar')
in file 'TGE/Parser.pg' line 1
[EMAIL PROTECTED] tge]#


[EMAIL PROTECTED] tge]#
gdb ../../parrot
GNU gdb Fedora (6.8-22.fc9)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later

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 "x86_64-redhat-linux-gnu"...
(no debugging symbols found)
(gdb) set args  ../../runtime/parrot/library/PGE/Perl6Grammar.pbc
--output=TGE/P
arser.pir TGE/Parser.pg
(gdb) run
Starting
program: /home/gz016/parrot-sources/test2/parrot-0.8.0/parrot ../../run
time/parrot/library/PGE/Perl6Grammar.pbc --output=TGE/Parser.pir
TGE/Parser.pg
.
.
.
Program received signal SIGSEGV, Segmentation fault.
0x0098bfca in Parrot_Iterator_shift_string ()

from /home/gz016/parrot-sources/test2/parrot-0.8.0/blib/lib/libparrot.so.0.8.
0
(gdb) 

Am Dienstag, den 28.10.2008, 20:22 +0100 schrieb chromatic via RT:
> On Tuesday 28 October 2008 07:05:47 [EMAIL PROTECTED] (via RT) wrote:
> 
> > But perhaps there will someone be able to find a way to solve this problem.
> 
> Can you provide a backtrace from GDB?
> 
> -- c
> 
> 
> 



Re: [perl #60190] [BUG] problems with the compiler-option "-O2" on a 64bit-system

2008-10-28 Thread chromatic
On Tuesday 28 October 2008 07:05:47 [EMAIL PROTECTED] (via RT) wrote:

> But perhaps there will someone be able to find a way to solve this problem.

Can you provide a backtrace from GDB?

-- c




[perl #60190] [BUG] problems with the compiler-option "-O2" on a 64bit-system

2008-10-28 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by  [EMAIL PROTECTED] 
# Please include the string:  [perl #60190]
# in the subject line of all future correspondence about this issue. 
# http://rt.perl.org/rt3/Ticket/Display.html?id=60190 >


Hello

I want to build parrot-RPMs on a 64bit system under Fedora 9 for the
parrot-version 0.8.0. The command
> make rpms
failed.
The reason is that the compiler-option "-O2" prevent building parrot
with languages on a 64bit system. The following commands shows this
problem:
> perl Configure.pl --optimize="-O2"
...
> make perl6
...
gmake -C compilers/tge
gmake[1]: Entering directory
`/home/gz016/parrot-sources/test2/parrot-0.8.0/compilers/tge'
../../parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pbc
--output=TGE/Parser.pir TGE/Parser.pg
gmake[1]: *** [TGE/Parser.pir] Segmentation fault
gmake[1]: Leaving directory
`/home/gz016/parrot-sources/test2/parrot-0.8.0/compilers/tge'
make: *** [compilers.dummy] Error 2
>

So I build the RPMs without the compiler-option "-O2". But perhaps there
will someone be able to find a way to solve this problem.

Gerd Pokorra