I get the same problem when I use sudo cpan as not (I figured I shouldn't need root access for the i * query). The issue seems to be a recursive loop in /Library/Perl/5.8.6/darwin-thread-multi-2level/Compress/Zlib.pm as evidenced by the "deep recursion" message, followed by a loop which uses little CPU time but nevertheless ties up the system something fierce. When I let this run a while, it finally ends as follows:
Deep recursion on subroutine "Compress::Zlib::AUTOLOAD" at /Library/Pe +rl/5.8.6/darwin-thread-multi-2level/Compress/Zlib.pm line 87. perl(274) malloc: *** vm_allocate(size=234504192) failed (error code=3 +) perl(274) malloc: *** error: can't allocate region perl(274) malloc: *** set a breakpoint in szone_error to debug Out of memory! Segmentation fault
...so it would appear, what is happening is a recursive loop that is eating up virtual memory until finally it fills the swap. The messages about this and that function or constant being redefined might be symptomatic or might be just noise -- however, I have never seen those on any other system, and they make me suspect there is something wrong with this installation. FWIW -- a user of the same OS level on a MacMini has no problem with cpan. Here's the o conf:
CPAN::Config options from /System/Library/Perl/5.8.6/CPAN/Config.pm an +d /Users/dcortesi/.cpan/CPAN/MyConfig.pm: commit Commit changes to disk defaults Reload defaults from disk init Interactive setting of all options build_cache 5 build_dir /Users/dcortesi/.cpan/build cache_metadata 1 cpan_home /Users/dcortesi/.cpan dontload_hash ftp /usr/bin/ftp ftp_proxy getcwd cwd gpg gzip /sw/bin/gzip histfile /Users/dcortesi/.cpan/histfile histsize 100 http_proxy inactivity_timeout 0 index_expire 1 inhibit_startup_message 0 keep_source_where /Users/dcortesi/.cpan/sources lynx make /usr/bin/make make_arg -j3 make_install_arg UNINST=1 makepl_arg ncftpget /sw/bin/ncftpget no_proxy pager /usr/bin/less prerequisites_policy ask scan_cache atstart shell /bin/tcsh tar /sw/bin/tar term_is_latin 1 unzip /sw/bin/unzip urllist http://www.perl.com/CPAN/ ftp://ftp.duke.edu/pub/perl/ ftp://cpan.uchicago.edu/pub/CPAN/ ftp://archive.progeny.com/CPAN/ wget /sw/bin/wget

In reply to Re^2: CPAN.pm broken on new MacPro? by thorby
in thread CPAN.pm broken on new MacPro? by thorby

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.