Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.93k stars 553 forks source link

Core on syntax error! #9533

Closed p5pRT closed 16 years ago

p5pRT commented 16 years ago

Migrated from rt.perl.org#59948 (status was 'resolved')

Searchable as RT59948$

p5pRT commented 16 years ago

From nikolay.kostirya@webceo.ks.ua

Created by nikolay.kostirya@webceo.ks.ua

Hello. I done syntax error is "use Data​::Dumper​:". Nick.

find . -type f ./Dispatch.pm ./Foo/D/UserTags.pm cat Dispatch.pm package Dispatch;

sub import {   foreach (\<Foo/D/UserTags.pm>) {   eval { require "$_" };   } }

1;

cat Foo/D/UserTags.pm package Foo​::D​::UserTags;

sub get_tags {   my ($id_user\, $tag_scope) = @​_;   if ($id_user) {   use Data​::Dumper​:   } }

1;

perl -w -MDispatch -e 1 ïÛÉÂËÁ ÓÅÇÍÅÎÔÁÃÉÉ(core dumped)

Perl Info ``` Flags: category=core severity=low Site configuration information for perl v5.8.8: Configured by root at Sun Oct 15 05:01:07 UTC 2006. Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=freebsd, osvers=6.2-release, archname=i386-freebsd-64int uname='freebsd freebsd.org 6.2-release freebsd 6.2-release #0: sat oct 14 21:57:31 pdt 2006 kris@freebsd.org:usrsrcsysmagickernelpath i386 ' config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.8.8/mach -Dprivlib=/usr/local/lib/perl5/5.8.8 -Dman3dir=/usr/local/lib/perl5/5.8.8/perl/man/man3 -Dman1dir=/usr/local/man/man1 -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.8/mach -Dsitelib=/usr/local/lib/perl5/site_perl/5.8.8 -Dscriptdir=/usr/local/bin -Dsiteman3dir=/usr/local/lib/perl5/5.8.8/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -Doptimize=-O2 -fno-strict-aliasing -pipe -Ud_dosuid -Ui_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint' 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=define use64bitall=undef uselongdouble=undef usemymalloc=y, bincompat5005=undef Compiler: cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include', optimize='-O2 -fno-strict-aliasing -pipe ', cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include' ccversion='', gccversion='3.4.6 [FreeBSD] 20060305', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -Wl,-E -L/usr/local/lib' libpth=/usr/lib /usr/local/lib libs=-lm -lcrypt -lutil perllibs=-lm -lcrypt -lutil libc=, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.8.8/mach/CORE' cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib' Locally applied patches: defined-or @INC for perl v5.8.8: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 . Environment for perl v5.8.8: HOME=/home/nick LANG=ru_RU.KOI8-R LANGUAGE (unset) LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/sbin:/bin:/usr/sbin:/usr/local/bin:/usr/bin:/usr/games:/usr/local/sbin:/usr/X11R6/bin:/home/nick/bin PERL_BADLANG (unset) SHELL=/bin/tcsh ```
p5pRT commented 16 years ago

From nikolay.kostirya@webceo.ks.ua

Created by nikolay.kostirya@webceo.ks.ua

Hello. I do syntax error and get CORE. Syntax error is "use Data​::Dumper​:".

find . -type f ./Dispatch.pm ./Foo/D/UserTags.pm cat Dispatch.pm package Dispatch;

sub import {   foreach (\<Foo/D/UserTags.pm>) {   eval { require "$_" };   } }

1;

cat Foo/D/UserTags.pm package Foo​::D​::UserTags;

sub get_tags {   my ($id_user\, $tag_scope) = @​_;   if ($id_user) {   use Data​::Dumper​:   } }

1;

perl -w -MDispatch -e 1 Ошибка сегментации(core dumped)

Perl Info ``` Flags: category=core severity=low Site configuration information for perl v5.8.8: Configured by root at Sun Oct 15 05:01:07 UTC 2006. Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=freebsd, osvers=6.2-release, archname=i386-freebsd-64int uname='freebsd freebsd.org 6.2-release freebsd 6.2-release #0: sat oct 14 21:57:31 pdt 2006 kris@freebsd.org:usrsrcsysmagickernelp ath i386 ' config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.8.8/mach -Dprivlib=/usr/local/lib/perl5/5.8.8 -Dman3dir=/us r/local/lib/perl5/5.8.8/perl/man/man3 -Dman1dir=/usr/local/man/man1 -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.8/mach -Dsitelib=/us r/local/lib/perl5/site_perl/5.8.8 -Dscriptdir=/usr/local/bin -Dsiteman3dir=/usr/local/lib/perl5/5.8.8/man/man3 -Dsiteman1dir=/usr/loca l/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" - Doptimize=-O2 -fno-strict-aliasing -pipe -Ud_dosuid -Ui_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint' 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=define use64bitall=undef uselongdouble=undef usemymalloc=y, bincompat5005=undef Compiler: cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -p ipe -Wdeclaration-after-statement -I/usr/local/include', optimize='-O2 -fno-strict-aliasing -pipe ', cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdec laration-after-statement -I/usr/local/include' ccversion='', gccversion='3.4.6 [FreeBSD] 20060305', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -Wl,-E -L/usr/local/lib' libpth=/usr/lib /usr/local/lib libs=-lm -lcrypt -lutil perllibs=-lm -lcrypt -lutil libc=, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.8.8/mach/CORE' cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib' Locally applied patches: defined-or @INC for perl v5.8.8: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 . Environment for perl v5.8.8: HOME=/home/nick LANG=ru_RU.KOI8-R LANGUAGE (unset) LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/sbin:/bin:/usr/sbin:/usr/local/bin:/usr/bin:/usr/games:/usr/local/sbin:/usr/X11R6/bin:/home/nick/bin PERL_BADLANG (unset) SHELL=/bin/tcsh ```
p5pRT commented 16 years ago

From wyp3rlx02@sneakemail.com

Hi\,

Nick Kostirya wrote​:

I done syntax error is "use Data​::Dumper​:".

I can reproduce this with my system perl 5.8.8\, but my 5.10.0 doesn't produce the segmentation fault.

Best regards\, Steffen

p5pRT commented 16 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 16 years ago

From wyp3rlx02@sneakemail.com

Hi\,

sorry for replying to my own mail.

Steffen Mueller wrote​:

Nick Kostirya wrote​:

I done syntax error is "use Data​::Dumper​:".

I can reproduce this with my system perl 5.8.8\, but my 5.10.0 doesn't produce the segmentation fault.

5.8.9-to-be doesn't seg. fault either\, so I suppose this issue was fixed.

Best regards\, Steffen

p5pRT commented 16 years ago

From @schwern

Steffen Mueller wrote​:

Hi\,

sorry for replying to my own mail.

Steffen Mueller wrote​:

Nick Kostirya wrote​:

I done syntax error is "use Data​::Dumper​:". I can reproduce this with my system perl 5.8.8\, but my 5.10.0 doesn't produce the segmentation fault.

5.8.9-to-be doesn't seg. fault either\, so I suppose this issue was fixed.

Confirmed on OS X. 5.8.8 segfaults\, 5.10.0 does not.

-- 31. Not allowed to let sock puppets take responsibility for any of my   actions.   -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army   http​://skippyslist.com/list/

p5pRT commented 16 years ago

From module@renee-baecker.de

This is fixed in Perl 5.10.x

p5pRT commented 16 years ago

module@renee-baecker.de - Status changed from 'open' to 'resolved'

p5pRT commented 16 years ago

From nikolay.kostirya@webceo.ks.ua

В Fri\, 17 Oct 2008 03​:31​:19 -0700 "Steffen Mueller via RT" \perlbug\-followup@&#8203;perl\.org пишет​:

Hi\,

Nick Kostirya wrote​:

I done syntax error is "use Data​::Dumper​:".

I can reproduce this with my system perl 5.8.8\, but my 5.10.0 doesn't produce the segmentation fault.

Best regards\, Steffen

Then may close ticket. Thanks.

p5pRT commented 16 years ago

From @iabyn

On Fri\, Oct 17\, 2008 at 01​:28​:06AM -0700\, Nick Kostirya wrote​:

I do syntax error and get CORE. Syntax error is "use Data​::Dumper​:".

This is fixed in perl 5.10.0

cat Dispatch.pm package Dispatch;

sub import { foreach (\<Foo/D/UserTags.pm>) { eval { require "$_" }; } }

1;

cat Foo/D/UserTags.pm package Foo​::D​::UserTags;

sub get_tags { my ($id_user\, $tag_scope) = @​_; if ($id_user) { use Data​::Dumper​: } }

1;

perl -w -MDispatch -e 1 Ошибка сегментации(core dumped)

-- Technology is dominated by two types of people​: those who understand what they do not manage\, and those who manage what they do not understand.