Perl / perl5

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

diagnostics gives a segfault under 5.6 with 5.005 threads #3112

Closed p5pRT closed 18 years ago

p5pRT commented 23 years ago

Migrated from rt.perl.org#5149 (status was 'rejected')

Searchable as RT5149$

p5pRT commented 23 years ago

From martinb@netch.se

perlbug -d


Flags​:   category=   severity=


Site configuration information for perl v5.6.0​:

Configured by root at Mon Jun 5 09​:43​:41 CEST 2000.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration​:   Platform​:   osname=linux\, osvers=2.2.5-15\, archname=i686-linux-thread   uname='linux schiller.netch.se 2.2.5-15 #1 mon apr 19 23​:00​:46 edt 1999 i686 unknown '   config_args='-Dusethreads -Duse5005threads -d'   hint=recommended\, useposix=true\, d_sigaction=define   usethreads=define use5005threads=define useithreads=undef usemultiplicity=undef   useperlio=undef d_sfio=undef uselargefiles=define   use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef   Compiler​:   cc='cc'\, optimize='-O2'\, gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)   cppflags='-D_REENTRANT -fno-strict-aliasing'   ccflags ='-D_REENTRANT -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'   stdchar='char'\, d_stdstdio=define\, usevfork=false   intsize=4\, longsize=4\, ptrsize=4\, doublesize=8   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 -ldb -ldl -lm -lpthread -lc -lposix -lcrypt   libc=/lib/libc-2.1.1.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.0​:   /usr/local/lib/perl5/5.6.0/i686-linux-thread   /usr/local/lib/perl5/5.6.0   /usr/local/lib/perl5/site_perl/5.6.0/i686-linux-thread   /usr/local/lib/perl5/site_perl/5.6.0   /usr/local/lib/perl5/site_perl   .


Environment for perl v5.6.0​:   HOME=/home/h3/martinb   LANG (unset)   LANGUAGE (unset)   LD_LIBRARY_PATH=/usr/local/qt/lib​:/usr/local/oracle8/8.1.6/lib   LOGDIR (unset)

PATH=/usr/local/bin​:/usr/bin​:/bin​:/usr/X11R6/bin​:/home/h3/martinb/bin​:/usr/local/bin​:/home/h3/martinb/bin​:/home/h3/martinb/bin​:/usr/local/bin​:.​:/home/h3/martinb/bin​:/home/h3/martinb/bin​:/usr/local/bin​:.   PERL_BADLANG (unset)   SHELL=/bin/zsh

################################################

If I make sure that i get a​: Can't locate object method "Method" via package "Package"

and 'use diagnostics' on my machine I (sometimes it seems) will get a segfault.

I have included a file with sample code and the coredump that i got.

Sorry about the quality of the bugreport\, but i have a deadline within .... well.... some days.

I came across this bug by accident. Hence I (personally) don't care if it fixed since i don't normally uses diagonstics.

«------------------------------------------------» Martin Belohorka | 046-2724652 (Work) /Netch/ Technologies | 0705-331216 (Mobile) Scheelevägen 16 | martin.belohorka@​netch.se 223 63 LUND | http​://www.netch.com «------------------------------------------------»

p5pRT commented 23 years ago

From martinb@netch.se

bugreport.tar.gz

p5pRT commented 18 years ago

From @schwern

5.005 threads are deprecated and will be removed in 5.10. Please use ithreads instead.

p5pRT commented 18 years ago

@schwern - Status changed from 'open' to 'rejected'