develooper Front page | perl.perl5.porters | Postings from January 2010

[perl #72406] Segmentation fault v5.10.1

Thread Next
From:
abc poc
Date:
January 28, 2010 02:34
Subject:
[perl #72406] Segmentation fault v5.10.1
Message ID:
rt-3.6.HEAD-1505-1264547913-1078.72406-75-0@perl.org
# New Ticket Created by  abc poc 
# Please include the string:  [perl #72406]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=72406 >


This is a bug report for perl from abcpoc@gmail.com,
generated with the help of perlbug 1.39 running under perl 5.10.1.


-----------------------------------------------------------------
[Please describe your issue here]

# true
$ perl -le 'do{print("foobar");}while(0)'
foobar

$ perl -le 'do{print("foobar");}while(0)}'
Unmatched right curly bracket at -e line 1, at end of line
syntax error at -e line 1, near ")}"
Execution of -e aborted due to compilation errors

$ perl -le 'do{print("foobar");}until(1)'
foobar

# BUG?
perl -le 'do{print("foobar");}until(1)}'
Segmentation fault

My Englisch is very bad and i don't know how i can explain this bug.
I think you see what i mean. Why i don't have an error on until with one 
curly bracket to much?

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
     category=core
     severity=low
---
Site configuration information for perl 5.10.1:

Configured by francois at Wed Oct  7 09:44:29 CEST 2009.

Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

   Platform:
     osname=linux, osvers=2.6.31-arch, archname=i686-linux-thread-multi
     uname='linux samarqand 2.6.31-arch #1 smp preempt sat sep 26 
02:39:09 cest 2009 i686 amd athlon(tm) 64 processor 3200+ authenticamd 
gnulinux '
     config_args='-des -Dusethreads -Duseshrplib -Doptimize=-march=i686 
-mtune=generic -O2 -pipe -Dprefix=/usr -Dinstallprefix=/usr 
-Dvendorprefix=/usr -Dprivlib=/usr/share/perl5/core_perl 
-Darchlib=/usr/lib/perl5/core_perl 
-Dsitelib=/usr/share/perl5/site_perl/5.10.1 
-Dsitearch=/usr/lib/perl5/site_perl/5.10.1 
-Dvendorlib=/usr/share/perl5/vendor_perl 
-Dvendorarch=/usr/lib/perl5/vendor_perl 
-Dotherlibdirs=/usr/lib/perl5/current:/usr/lib/perl5/site_perl/current 
-Dscriptdir=/usr/bin/perlbin/core -Dsitescript=/usr/bin/perlbin/site 
-Dvendorscript=/usr/bin/perlbin/vendor -Dman1ext=1perl -Dman3ext=3perl'
     hint=recommended, useposix=true, d_sigaction=define
     useithreads=define, usemultiplicity=define
     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
     use64bitint=undef, use64bitall=undef, uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing 
-pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64',
     optimize='-march=i686 -mtune=generic -O2 -pipe',
     cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe 
-fstack-protector -I/usr/local/include'
     ccversion='', gccversion='4.4.1', gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
     alignbytes=4, prototype=define
   Linker and Libraries:
     ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
     libpth=/usr/local/lib /lib /usr/lib
     libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc 
-lgdbm_compat
     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
     libc=/lib/libc-2.10.1.so, so=so, useshrplib=true, libperl=libperl.so
     gnulibc_version='2.10.1'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E 
-Wl,-rpath,/usr/lib/perl5/core_perl/CORE'
     cccdlflags='-fPIC', lddlflags='-shared -march=i686 -mtune=generic 
-O2 -pipe -L/usr/local/lib -fstack-protector'

Locally applied patches:


---
@INC for perl 5.10.1:
     /usr/lib/perl5/site_perl/5.10.1
     /usr/share/perl5/site_perl/5.10.1
     /usr/lib/perl5/vendor_perl
     /usr/share/perl5/vendor_perl
     /usr/share/perl5/vendor_perl
     /usr/lib/perl5/core_perl
     /usr/share/perl5/core_perl
     /usr/lib/perl5/current
     /usr/lib/perl5/site_perl/current/i686-linux-thread-multi
     /usr/lib/perl5/site_perl/current
     .

---
Environment for perl 5.10.1:
     HOME=/home/perltest
     LANG=en_US.UTF-8
     LANGUAGE (unset)
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
     
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/opt/java/bin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core
     PERL_BADLANG (unset)
     SHELL=/bin/bash


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About