Segfaulted on 5.12.2 on linux

$ perl a.pl -port=12347 Using minimum thread stack size of 16384 at /home/eric/usr/perlbrew/pe +rls/perl-5.12.2t/lib/5.12.2/i686-linux-thread-multi/threads.pm line 4 +9. Segmentation fault
#0 __res_vinit (statp=0xb7ab2df4, preinit=0) at res_init.c:176 #1 0xb7ec12c5 in *__GI___res_ninit (statp=0xb7ab2df4) at res_init.c:1 +42 #2 0xb7ec2330 in *__GI___res_maybe_init (resp=0xb7ab2df4, preinit=0) +at res_libc.c:125 #3 0xb7ec4243 in *__GI___nss_hostname_digits_dots (name=0x8477d60 "lo +calhost", resbuf=0xb7f2ada8, buffer=0xb7f289ec, buffer_size=0xb7f2adb +c, buflen=0, result=0xb7ab2098, status=0x0, af=2, h_errnop=0xb7ab2094) at digit +s_dots.c:46 #4 0xb7ec897a in gethostbyname (name=0x8477d60 "localhost") at ../nss +/getXXbyYY.c:109 #5 0xb7fc364c in XS_Socket_inet_aton () from /home/eric/usr/perlbrew/ +perls/perl-5.12.2t/lib/5.12.2/i686-linux-thread-multi/auto/Socket/Soc +ket.so #6 0x080e0122 in Perl_pp_entersub () #7 0x080de559 in Perl_runops_standard () #8 0x0807a588 in Perl_call_sv () #9 0xb7ac413a in S_ithread_run () from /home/eric/usr/perlbrew/perls/ +perl-5.12.2t/lib/5.12.2/i686-linux-thread-multi/auto/threads/threads. +so #10 0xb7f31955 in start_thread (arg=0xb7ab2b70) at pthread_create.c:30 +0 #11 0xb7eb1e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S: +130

Got no time for more now.


In reply to Re: Socket hang. (Windows or Perl? Solutions?) by ikegami
in thread Socket hang. (Windows or Perl? Solutions?) (Updated) by BrowserUk

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.