Front page | perl.perl5.porters |
Postings from March 2007
[perl #42029] segfault on readline without argument
Thread Next
From:
Zsbán Ambrus
Date:
March 24, 2007 03:20
Subject:
[perl #42029] segfault on readline without argument
Message ID:
rt-3.6.HEAD-30201-1174666473-1366.42029-75-0@perl.org
# New Ticket Created by "Zsbán Ambrus"
# Please include the string: [perl #42029]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=42029 >
This is a bug report for perl from ambrus@math.bme.hu,
generated with the help of perlbug 1.35 running under perl v5.8.8.
-----------------------------------------------------------------
[Please enter your report here]
The oneliner 'warn readpipe;' causes a segmentation fault on my
interpreter. Here's the exact command and output, together with other
variants (note readpipe versus readline):
$ perl -we 'warn readpipe;'
Use of uninitialized value in quoted execution (``, qx) at -e line 1.
Segmentation fault
$ perl -we 'warn readline;'
Use of uninitialized value in <HANDLE> at -e line 1.
readline() on unopened filehandle at -e line 1.
Segmentation fault
$ perl -we 'warn readpipe();'
Use of uninitialized value in quoted execution (``, qx) at -e line 1.
Segmentation fault
$ perl -we 'warn readline();'
Use of uninitialized value in <HANDLE> at -e line 1.
readline() on unopened filehandle at -e line 1.
Segmentation fault
These outputs are from the perl version described by perlbug, that is,
v5.8.8 built for i686-linux. The system is i686-linux debian sarge
and this perl is a custom build.
I could also reproduce the segfault with the system perl on an linux-amd64
debian etch machine (v5.8.8 built for x86_64-linux-gnu-thread-multi).
Anno from perlmonks reports in the chatterbox that he could reproduce
the segfault with bleadperl.
Write me if you need any more info.
Thanks,
Ambrus
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl v5.8.8:
Configured by ambrus at Mon May 22 23:16:27 CEST 2006.
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.4.27-3-686, archname=i686-linux
uname='linux king 2.4.27-3-686 #1 wed feb 8 12:40:33 utc 2006 i686
gnulinux '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='3.3.5 (Debian 1:3.3.5-13)', 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 =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.8.8:
/usr/local/lib/perl5/5.8.8/i686-linux
/usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/i686-linux
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl
.
---
Environment for perl v5.8.8:
HOME=/home/ambrus
LANG (unset)
LANGUAGE=en_HU:en_US:en_GB:en
LC_CTYPE=hu_HU
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/ambrus/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #42029] segfault on readline without argument
by Zsbán Ambrus