Perl / perl5

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

"perl -MCPAN -e shell;" causes segmentation fault #3983

Closed p5pRT closed 21 years ago

p5pRT commented 24 years ago

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

Searchable as RT6986$

p5pRT commented 24 years ago

From caldwell@primes.utm.edu

I just reupgraded to Perl 5.6.1\, this time using all the defaults (e.g.\, using the script lines in the INSTALL file) and I am still getting segmentation faults and core dumps from many perl programs. Here is one example​:

  $ perl -MCPAN -e shell;

  cpan shell -- CPAN exploration and modules installation (v1.59_54)   ReadLine support enabled

  Segmentation fault (core dumped)

I am now going to try to reinstall Perl 5.6 which ran fine for me. I am not sure what else I can do.

I sent in this bug once before under "utilities". I do not know if it is core or what...

Perl Info ``` Flags: category=core severity=critical This perlbug was built using Perl v5.6.1 - Tue May 8 20:51:41 CDT 2001 It is being executed now by Perl v5.6.1 - Wed May 9 16:53:44 CDT 2001. Site configuration information for perl v5.6.1: Configured by caldwell at Wed May 9 16:53:44 CDT 2001. Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration: Platform: osname=linux, osvers=2.2.19pre7, archname=i586-linux uname='linux primes.utm.edu 2.2.19pre7 #2 mon jan 15 15:07:30 cst 2001 i586 unknown ' config_args='-de' 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.2 19991024 (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 -ldb -ldl -lm -lc -lposix -lcrypt -lutil perllibs=-lnsl -ldl -lm -lc -lposix -lcrypt -lutil libc=/lib/libc-2.1.3.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/local/lib/perl5/5.6.1/i586-linux /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i586-linux /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl/5.6.0/i586-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl . Environment for perl v5.6.1: HOME=/home/caldwell LANG=en_US LANGUAGE (unset) LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin/:/home/caldwell/bin:. PERL_BADLANG (unset) SHELL=/bin/bash ```
p5pRT commented 24 years ago

From @gsar

Please run that under gdb and show us the backtrace.

Sarathy gsar@​ActiveState.com

p5pRT commented 24 years ago

From [Unknown Contact. See original ticket]

Sorry\, I can't\, the problem is fixed. I have no idea what fixed it\, but a friend removed all perl directories; rebuilt/updated the Linux kernal\, updated glib\, and gcc\, many other things\, then rebuilt perl with no problem. Since the automated response took several days to get here I decided this perlbug notice went nowhere--glad to know I was wrong\, sorry to take up your time.

Chris