Respectful obeisances,
My Perl installation got updated to 5.28.1 by my OS (openSUSE) and ever since then some of my scripts complain about missing some of my modules and cpan interactive shell quits with complaints about lock files and segmentation faults. I can usually install missing modules using cpanminus and proceed doing whatever I was doing but I still need to fix cpan.
As of now, I get this (edit: corrected misspelled command in original message):
stan@linux-pwfe:~> sudo perl -d -MCPAN -e shell
[sudo] password for root:
Loading DB routines from perl5db.pl version 1.53
Editor support available.
Enter h or 'h h' for help, or 'man perldebug' for more help.
main::(-e:1): shell
*** buffer overflow detected ***: perl terminated
Aborted
stan@linux-pwfe:~>
Cpan itself responds to "sudo cpan -h" and "sudo cpan -v" and it even updated cpan itself via "sudo cpan -i CPAN". It can't find and install missing "CAN.pm" this way, though.
Edit - another example:
stan@linux-pwfe:~> sudo cpan
[sudo] password for root:
Loading internal logger. Log::Log4perl recommended for better logging
There seems to be running another CPAN process (pid 8012). Contacting
+...
Other job not responding. Shall I overwrite the lockfile '/root/.cpan/
+.lock'? (Y/n) [y] y
cpan shell -- CPAN exploration and modules installation (v2.22)
Enter 'h' for help.
Segmentation fault
stan@linux-pwfe:~> sudo rm /root/.cpan/.lock
stan@linux-pwfe:~> sudo cpan
Loading internal logger. Log::Log4perl recommended for better logging
cpan shell -- CPAN exploration and modules installation (v2.22)
Enter 'h' for help.
*** buffer overflow detected ***: /usr/bin/perl terminated
Aborted
stan@linux-pwfe:~>
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.