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


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

# perl Makefile.PL

Attempt to free unreferenced scalar: SV 0x12f1ba60 at /usr/local/lib/perl5/5.8.8/File/Path.pm line 6.

Checking if your kit is complete...

Segmentation fault

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

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

    /usr/local/lib/perl5/5.8.8/File/Path.pm line 6.

    I'll assume local/lib... isn't your vendor perl

    So the way to resolve this issue is to rm -rf /usr/local/lib/perl5 and recompile/reinstall perl anew

    OTOH, you might want to dump your perl -V maybe you have something weird in there (unlikely)

      # 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 ?

        Any advice ?

        Install new perl

Re^4: perl -MCPAN -e shell ==> Segmentation fault (Cwd/PathTools)
by Anonymous Monk on Jun 13, 2013 at 06:37 UTC