http://www.perlmonks.org?node_id=1038874


in reply to Re^4: perl -MCPAN -e shell ==> Segmentation fault (Cwd/PathTools)
in thread perl -MCPAN -e shell ==> Segmentation fault

# perl -V

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:

Platform:

osname=linux, osvers=2.6.9-5.elsmp, archname=x86_64-linux

uname='linux amrdev 2.6.9-5.elsmp #1 smp wed jan 5 19:29:47 est 2005 x86_64 x86_64 x86_64 gnulinux '

config_args='-de'

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=define uselongdouble=undef

usemymalloc=n, bincompat5005=undef

Compiler:

cc='cc', ccflags ='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',

optimize='-O2',

cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm'

ccversion='', gccversion='3.4.3 20041212 (Red Hat 3.4.3-9.EL4)', gccosandvers=''

intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678

d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16

lseeksize=8 alignbytes=8, prototype=define

Linker and Libraries:

ld='ld', ldflags =' -L/usr/local/lib'

libpth=/usr/local/lib /lib /usr/lib

libs=

perllibs=

libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a

gnulibc_version='2.3.4'

Dynamic Linking:

dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags=''

cccdlflags='', lddlflags=''

Characteristics of this binary (from libperl):

Compile-time options: PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO

Built under linux

Compiled at Nov 7 2006 13:04:06

@INC:

/usr/local/lib/perl5/5.8.8/x86_64-linux

/usr/local/lib/perl5/5.8.8

/usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux

/usr/local/lib/perl5/site_perl/5.8.8

/usr/local/lib/perl5/site_perl

.

Any advice ?

  • Comment on Re^5: perl -MCPAN -e shell ==> Segmentation fault (Cwd/PathTools)

Replies are listed 'Best First'.
Re^6: perl -MCPAN -e shell ==> Segmentation fault (Cwd/PathTools)
by Anonymous Monk on Jun 14, 2013 at 07:26 UTC

    Any advice ?

    Install new perl

      FWIW I encountered this error as I had an older installation of the Cwd cpan module installed/ available on the INC path. Removing that fixed my issue.