Re: [perl #36969] Syntax error crashing perl-5.8.6
On Sun, Sep 04, 2005 at 06:41:20PM +0900, Jan Kratochvil wrote: > Do you expect just replacing the binary "CORE/libperl.so" is possibly? > Therefore - is this library binary compatible from 5.8.6 to 5.9.2 for all its > libraries? I do not think so, so I will have to rebuild all the libraries. No, everything would have to be recompoiled from scratch. -- You never really learn to swear until you learn to drive.
Re: [perl #36969] Syntax error crashing perl-5.8.6
On Sun, 04 Sep 2005 18:29:40 +0900, Dave Mitchell via RT wrote: ... > Without looking at the original code, this looks a bit like a well-known > problem that's fixed in 5.9.1. Are you able to try your code with 5.9.1 or > 5.9.2 so that we can confirm whether it's the same problem? Do you expect just replacing the binary "CORE/libperl.so" is possibly? Therefore - is this library binary compatible from 5.8.6 to 5.9.2 for all its libraries? I do not think so, so I will have to rebuild all the libraries. Regards, Lace
Re: [perl #36969] Syntax error crashing perl-5.8.6
Hi, On Sun, 04 Sep 2005 12:50:31 +0900, Steve Peters via RT wrote: ... > > > > http://www.jankratochvil.net/priv/perl-semicolon-crash-2005082100-chrooted.tar.gz ... > You mentioned that this problem occured while using mod_perl. What > version of mod_perl? mod_perl-2.0.1-1.fc4 http://www.jankratochvil.net/priv/perl-semicolon-crash-2005082100-chrooted.tar.gz/Fedora-Core-4-rpm-qa > Also, what version of Apache? Also, do you have httpd-2.0.54-10.1 http://www.jankratochvil.net/priv/perl-semicolon-crash-2005082100-chrooted.tar.gz/Fedora-Core-4-rpm-qa > anything smaller that a 22MB file that demonstrates this problem? No. I tried (not so hard) and failed to reproduce it in smaller case. > > Unfortunately unable to minimize some reproducible case. If you do not see the reason easily maybe feel free to drop it as it caused by Perl source syntax error and this part of Perl parsing code has a lot of FIXMEs. I expect it should get resolved in some 5.9.x, maybe already, not sure. Regards, Lace
Re: [perl #36969] Syntax error crashing perl-5.8.6
On Sat, Aug 20, 2005 at 07:14:14PM -0700, lace @ jankratochvil. net wrote: > #0 Perl_pad_free (my_perl=0x8390f10, po=29) at pad.c:1171 > 1171 SvPADTMP_off(PL_curpad[po]); > (gdb) bt > #0 Perl_pad_free (my_perl=0x8390f10, po=29) at pad.c:1171 > #1 0x00e1fafa in Perl_op_clear (my_perl=0x8390f10, o=0x8878480) at op.c:516 > #2 0x00e1fe49 in Perl_op_free (my_perl=0x8390f10, o=0x8878480) at op.c:380 > #3 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88784a8) at op.c:368 > #4 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88a7ac8) at op.c:368 > #5 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88a7b10) at op.c:368 > #6 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88a7aa0) at op.c:368 > #7 0x00e2daff in Perl_newATTRSUB (my_perl=0x8390f10, floor=293, o=0x88a74a0, > proto=0x0, attrs=0x0, block=0x88a7aa0) Without looking at the original code, this looks a bit like a well-known problem that's fixed in 5.9.1. Are you able to try your code with 5.9.1 or 5.9.2 so that we can confirm whether it's the same problem? -- My Dad used to say 'always fight fire with fire', which is probably why he got thrown out of the fire brigade.
[perl #36969] Syntax error crashing perl-5.8.6
> [EMAIL PROTECTED] - Sat Aug 20 19:14:14 2005]: > > > This is a bug report for perl from [EMAIL PROTECTED], > generated with the help of perlbug 1.35 running under perl v5.8.6. > > > - > [Please enter your report here] > > Source w/syntax error causes crash of Perl. > > Unfortunately unable to minimize some reproducible case. It occurs in >mod_perl > environment. Prepared reproducibility binary kit (Fedora Core 4 >based): > http://www.jankratochvil.net/priv/perl-semicolon-crash-2005082100- >chrooted.tar.gz > > Everything contained inside, reproducible by: > chroot /tmp/chrooted/ /usr/sbin/httpd -d >/home/lace/www/engine/etc/httpd -DPERL -X > > Tried also perl-5.8.7 (ported myself) and it still crashes. All the >binaries > tried only in their Fedora Core 4 variants. > > Source fix to avoid this bug: > --- home/lace/www/www.jankratochvil.net/project/captive/CVS.pm-orig >2005-08-21 11:00:52.058785000 +0900 > +++ home/lace/www/www.jankratochvil.net/project/captive/CVS.pm2005- >08-21 11:01:02.607094776 +0900 > @@ -99,7 +99,7 @@ > .'requirement: ' > .a_href('http://linux- >ntfs.sourceforge.net/downloads.html#downloads','ntfsprogs') > .' '.$format.' ≥ 1.8.0' > - .''; > + .'' > .''; > }; > > > Extracted relevant part from gdb(1): > > #0 Perl_pad_free (my_perl=0x8390f10, po=29) at pad.c:1171 > 1171 SvPADTMP_off(PL_curpad[po]); > (gdb) bt > #0 Perl_pad_free (my_perl=0x8390f10, po=29) at pad.c:1171 > #1 0x00e1fafa in Perl_op_clear (my_perl=0x8390f10, o=0x8878480) at >op.c:516 > #2 0x00e1fe49 in Perl_op_free (my_perl=0x8390f10, o=0x8878480) at >op.c:380 > #3 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88784a8) at >op.c:368 > #4 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88a7ac8) at >op.c:368 > #5 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88a7b10) at >op.c:368 > #6 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88a7aa0) at >op.c:368 > #7 0x00e2daff in Perl_newATTRSUB (my_perl=0x8390f10, floor=293, >o=0x88a74a0, proto=0x0, attrs=0x0, block=0x88a7aa0) > at op.c:4376 > #8 0x00e1d536 in Perl_yyparse (my_perl=0x8390f10) at perly.y:355 > #9 0x00e95628 in S_doeval (my_perl=0x8390f10, gimme=0, startop=0x0, >outside=0x0, seq=137958892) at pp_ctl.c:2847 > #10 0x00e9c277 in Perl_pp_require (my_perl=0x8390f10) at pp_ctl.c:3344 > #11 0x003e5026 in modperl_perl_global_request_restore () from >/home/lace/www/engine/etc/httpd/modules/mod_perl.so > #12 0x00e436e1 in Perl_runops_debug (my_perl=0x8390f10) at dump.c:1449 > #13 0x00df0b9e in S_call_body (my_perl=0x8390f10, myop=0x19, >is_eval=58) at perl.c:2299 > #14 0x00df3c73 in Perl_eval_sv (my_perl=0x8390f10, sv=0x83a37a0, >flags=2) at perl.c:2363 > #15 0x003db8f8 in modperl_require_module () from >/home/lace/www/engine/etc/httpd/modules/mod_perl.so > #16 0x003d6d0d in modperl_cmd_modules () from >/home/lace/www/engine/etc/httpd/modules/mod_perl.so > #17 0x00d52e02 in ap_add_named_module () from /usr/sbin/httpd > #18 0x00d532f9 in ap_walk_config () from /usr/sbin/httpd > #19 0x00d53839 in ap_process_config_tree () from /usr/sbin/httpd > #20 0x00d5766b in main () from /usr/sbin/httpd > (gdb) p my_perl->Tcurpad[po] > $1 = (SV *) 0x19 > (gdb) up > #1 0x00e1fafa in Perl_op_clear (my_perl=0x8390f10, o=0x8878480) at >op.c:516 > 516 pad_free(o->op_targ); > (gdb) p *o > $2 = {op_next = 0x8878460, op_sibling = 0x8878460, op_ppaddr = >0xe5a962 , op_targ = 29, op_type = 66, > op_seq = 0, op_flags = 70 'F', op_private = 2 '\002'} > (gdb) p *o->op_next > $3 = {op_next = 0x88784a8, op_sibling = 0x0, op_ppaddr = 0xe5a3c0 >, op_targ = 0, op_type = 5, op_seq = 0, > op_flags = 2 '\002', op_private = 0 '\0'} > > > You mentioned that this problem occured while using mod_perl. What version of mod_perl? Also, what version of Apache? Also, do you have anything smaller that a 22MB file that demonstrates this problem?
[perl #36969] Syntax error crashing perl-5.8.6
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #36969] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=36969 > This is a bug report for perl from [EMAIL PROTECTED], generated with the help of perlbug 1.35 running under perl v5.8.6. - [Please enter your report here] Source w/syntax error causes crash of Perl. Unfortunately unable to minimize some reproducible case. It occurs in mod_perl environment. Prepared reproducibility binary kit (Fedora Core 4 based): http://www.jankratochvil.net/priv/perl-semicolon-crash-2005082100-chrooted.tar.gz Everything contained inside, reproducible by: chroot /tmp/chrooted/ /usr/sbin/httpd -d /home/lace/www/engine/etc/httpd -DPERL -X Tried also perl-5.8.7 (ported myself) and it still crashes. All the binaries tried only in their Fedora Core 4 variants. Source fix to avoid this bug: --- home/lace/www/www.jankratochvil.net/project/captive/CVS.pm-orig 2005-08-21 11:00:52.058785000 +0900 +++ home/lace/www/www.jankratochvil.net/project/captive/CVS.pm 2005-08-21 11:01:02.607094776 +0900 @@ -99,7 +99,7 @@ .'requirement: ' .a_href('http://linux-ntfs.sourceforge.net/downloads.html#downloads','ntfsprogs') .' '.$format.' ≥ 1.8.0' - .''; + .'' .''; }; Extracted relevant part from gdb(1): #0 Perl_pad_free (my_perl=0x8390f10, po=29) at pad.c:1171 1171SvPADTMP_off(PL_curpad[po]); (gdb) bt #0 Perl_pad_free (my_perl=0x8390f10, po=29) at pad.c:1171 #1 0x00e1fafa in Perl_op_clear (my_perl=0x8390f10, o=0x8878480) at op.c:516 #2 0x00e1fe49 in Perl_op_free (my_perl=0x8390f10, o=0x8878480) at op.c:380 #3 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88784a8) at op.c:368 #4 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88a7ac8) at op.c:368 #5 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88a7b10) at op.c:368 #6 0x00e1fe04 in Perl_op_free (my_perl=0x8390f10, o=0x88a7aa0) at op.c:368 #7 0x00e2daff in Perl_newATTRSUB (my_perl=0x8390f10, floor=293, o=0x88a74a0, proto=0x0, attrs=0x0, block=0x88a7aa0) at op.c:4376 #8 0x00e1d536 in Perl_yyparse (my_perl=0x8390f10) at perly.y:355 #9 0x00e95628 in S_doeval (my_perl=0x8390f10, gimme=0, startop=0x0, outside=0x0, seq=137958892) at pp_ctl.c:2847 #10 0x00e9c277 in Perl_pp_require (my_perl=0x8390f10) at pp_ctl.c:3344 #11 0x003e5026 in modperl_perl_global_request_restore () from /home/lace/www/engine/etc/httpd/modules/mod_perl.so #12 0x00e436e1 in Perl_runops_debug (my_perl=0x8390f10) at dump.c:1449 #13 0x00df0b9e in S_call_body (my_perl=0x8390f10, myop=0x19, is_eval=58) at perl.c:2299 #14 0x00df3c73 in Perl_eval_sv (my_perl=0x8390f10, sv=0x83a37a0, flags=2) at perl.c:2363 #15 0x003db8f8 in modperl_require_module () from /home/lace/www/engine/etc/httpd/modules/mod_perl.so #16 0x003d6d0d in modperl_cmd_modules () from /home/lace/www/engine/etc/httpd/modules/mod_perl.so #17 0x00d52e02 in ap_add_named_module () from /usr/sbin/httpd #18 0x00d532f9 in ap_walk_config () from /usr/sbin/httpd #19 0x00d53839 in ap_process_config_tree () from /usr/sbin/httpd #20 0x00d5766b in main () from /usr/sbin/httpd (gdb) p my_perl->Tcurpad[po] $1 = (SV *) 0x19 (gdb) up #1 0x00e1fafa in Perl_op_clear (my_perl=0x8390f10, o=0x8878480) at op.c:516 516 pad_free(o->op_targ); (gdb) p *o $2 = {op_next = 0x8878460, op_sibling = 0x8878460, op_ppaddr = 0xe5a962 , op_targ = 29, op_type = 66, op_seq = 0, op_flags = 70 'F', op_private = 2 '\002'} (gdb) p *o->op_next $3 = {op_next = 0x88784a8, op_sibling = 0x0, op_ppaddr = 0xe5a3c0 , op_targ = 0, op_type = 5, op_seq = 0, op_flags = 2 '\002', op_private = 0 '\0'} [Please do not change anything below this line] - --- Flags: category=core severity=low --- This perlbug was built using Perl v5.8.6 in the Red Hat build system. It is being executed now by Perl v5.8.6 - Wed May 18 18:20:12 EDT 2005. Site configuration information for perl v5.8.6: Configured by Red Hat, Inc. at Wed May 18 18:20:12 EDT 2005. Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Platform: osname=linux, osvers=2.4.21-27.0.2.elsmp, archname=i386-linux-thread-multi uname='linux decompose.build.redhat.com 2.4.21-27.0.2.elsmp #1 smp wed jan 12 23:35:44 est 2005 i686 i686 i386 gnulinux ' config_args='-des -Doptimize=-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -Dversion=5.8.6 -Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr