My approach with the Net::CIDR::Lite doesn't seem to play with threads... So I am falling back to a simplier (non-object) approach.

Just an FYI, I ran (3 times) your code in a VMware(6.0.4) RH9 on top of WinXP and ended up with 3 Segmentation Faults after 5850|5377|6055 lines of output.
/usr/lib/libglib-2.0.so -> ../../lib/libglib-2.0.so.0.1600.6
/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.1600.6

*** glibc detected *** perl: double free or corruption (!prev): 0x096d +f3a0 *** ======= Backtrace: ========= /lib/libc.so.6[0x18e874] /lib/libc.so.6(cfree+0x96)[0x1908d6] /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi/auto/Mat +h/Random/MT/MT.so(mt_free+0x1d)[0x2d98fd] /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi/auto/Mat +h/Random/MT/MT.so(XS_Math__Random__MT_DESTROY+0x1fb)[0x2d8c3b] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so(Perl_pp_ +entersub+0xb29)[0x3e6819] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so(Perl_cal +l_sv+0x743)[0x3dfd63] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so(Perl_sv_ +clear+0x203)[0x40d3f3] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so(Perl_sv_ +free2+0x77)[0x40e177] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so(Perl_sv_ +free+0xb1)[0x40e2d1] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so[0x40ef5c +] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so[0x3f4ab9 +] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so(Perl_sv_ +clean_objs+0x3d)[0x3f4b5d] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so(perl_des +truct+0x1398)[0x3e2718] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/auto/threads/threads.so[ +0x2e2c66] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/auto/threads/threads.so( +XS_threads_join+0x630)[0x2e3c00] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so(Perl_pp_ +entersub+0xb29)[0x3e6819] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so(Perl_run +ops_debug+0x153)[0x3a8023] /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so(perl_run ++0x4b9)[0x3e0ba9] perl(main+0x10e)[0x8048a2e] /lib/libc.so.6(__libc_start_main+0xe6)[0x1375d6] perl[0x8048881]

In reply to Re^2: Is a Net::CIDR::Lite object sharable within threads by Wiggins
in thread Is a Net::CIDR::Lite object sharable within threads by Wiggins

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.