gerd4000 has asked for the wisdom of the Perl Monks concerning the following question:

Hi I'm using archlinux 4.1.6-1.

perldoc -V   gives:
Perldoc v3.25, under perl v5.022000 for linux

perldoc -D   gives:

Ending switch processing. Args are [$_] with 0 errors. Pagers: /usr/bin/less -Rmorelesspgviewcat/usr/bin/core_perl/perldoc => + Pod::Perldoc v3.25 Formatter class Pod::Perldoc::ToTerm version 3.25 successfully loaded! Will format with the class Pod::Perldoc::ToTerm Searching for $_ Looking for $_ in /usr/bin/core_perl /usr/lib/perl5/site_perl /usr/sha +re/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor +_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl . /usr/loca +l/sbin /usr/local/bin /usr/bin /usr/lib/jvm/default/bin /usr/bin/site +_perl /usr/bin/vendor_perl /usr/bin/core_perl /home/xxxx No documentation found for "$_".

But   perldoc -q sort    or  perldoc perldoc   give:
Segmentation fault (core dumped)

any hint?

Replies are listed 'Best First'.
Re: perldoc dumps core
by Corion (Patriarch) on Aug 26, 2015 at 09:57 UTC

    My guess is that you manually installed modules using the cpan tool into your vendor Perl. The vendor Perl belongs to the vendor and you should only install modules into the vendor Perl by using the vendor tools (like apt-get, yum or rpm). If the vendor upgraded some library that perldoc depends on, you might now have conflicting versions of the library or libraries that depend on the upgraded library.

    Maybe it already is enough to remove /home/xxxx from the search path (whatever that search path is).

Re: perldoc dumps core
by Anonymous Monk on Aug 26, 2015 at 09:19 UTC

    Try to see whats being loaded perl -MDevel::Modlist -S perldoc perldoc

    Try to see the last thing that happens before segfault perl -dTrace -S perldoc perldoc