Front page | perl.perl5.porters |
Postings from May 2003
[perl #22266] Perl segfaults on erroneous attempts to un-use a source filter
Thread Next
From:
perlbug-followup
Date:
May 21, 2003 10:17
Subject:
[perl #22266] Perl segfaults on erroneous attempts to un-use a source filter
Message ID:
rt-22266-57909.19.7284466957622@bugs6.perl.org
# New Ticket Created by drc@inweb.co.uk
# Please include the string: [perl #22266]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22266 >
This is a bug report for perl from drc@inweb.co.uk,
generated with the help of perlbug 1.33 running under perl v5.6.1.
-----------------------------------------------------------------
drc:~$ cat Filter/MyFilter.pm
package Filter::MyFilter;
use Filter::Simple sub {
# this filter does nothing
};
1;
drc:~$ perl -e "use Filter::MyFilter;no Filter::MyFilter"
Segmentation fault
The segfault goes away if you remove the "no Filter::MyFilter". Of course,
saying "no Filter::MyFilter" is an error here, as there is no unimport()
subroutine defined, but even when my perl code is in error, perl should not
segfault.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=low
---
Site configuration information for perl v5.6.1:
Configured by root at Wed Apr 11 22:55:30 PDT 2001.
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=linux, osvers=2.4.2, archname=i386-linux
uname='linux grommet 2.4.2 #1 smp sun feb 25 16:33:33 pst 2001 i686 unknown '
config_args='-de -Dprefix=/usr -Darchname=i386-linux -Dprivlib=/usr/lib/perl5 -Darchlib=/usr/lib/perl5/i386-linux -Dsitelib=/usr/lib/perl5/site_perl -Dsitearch=/usr/lib/perl5/site_perl/i386-linux'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.3 20010315 (release)', 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, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.2.2.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.6.1:
/usr/lib/perl5/i386-linux
/usr/lib/perl5
/usr/lib/perl5/site_perl/i386-linux
/usr/lib/perl5/site_perl
/usr/lib/perl5/site_perl
.
---
Environment for perl v5.6.1:
HOME=/newhome/drc
LANG (unset)
LANGUAGE (unset)
LC_ALL=POSIX
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:.:/opt/gnome/bin:/usr/share/texmf/bin:/usr/openwin/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #22266] Perl segfaults on erroneous attempts to un-use a source filter
by perlbug-followup