develooper Front page | perl.perl5.porters | Postings from June 2001

Re: [ID 20010630.004] Segfault on gethostbyaddr call which returns multiple PTR records

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
June 30, 2001 10:12
Subject:
Re: [ID 20010630.004] Segfault on gethostbyaddr call which returns multiple PTR records
Message ID:
20010630181226.J59620@plum.flirble.org
On Sat, Jun 30, 2001 at 11:14:06AM -0400, Bob Fillmore wrote:
> 
> This is a bug report for perl from fillmore@nrn1.nrcan.gc.ca,
> generated with the help of perlbug 1.28 running under perl v5.6.0.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> 
> The following code generates a segfault on Solaris 2.6 and Solaris 8:
> 
>    $addr = pack('C4', split(/\./,'195.226.128.9'));
>    $addrtype = 2;
>    ($name, $rest) = gethostbyaddr($addr, $addrtype);

FreeBSD on bleadperl goes Bus error (core dumped)
nd in gdb I get

(gdb) where
#0  0x8100e1c in __ns_name_unpack ()
#1  0x8101081 in __ns_name_uncompress ()
#2  0x80fb9b1 in __dn_expand ()
#3  0x80fc7db in irs_dns_ho ()
#4  0x80fc52b in irs_dns_ho ()
#5  0x80f4b60 in irs_gen_ho ()
#6  0x80f0ea7 in gethostbyaddr ()
#7  0x80ce095 in Perl_pp_ghostent ()
#8  0x80cdf9f in Perl_pp_ghbyaddr ()
#9  0x809c3f4 in Perl_runops_standard ()
#10 0x805fb58 in S_run_body ()
#11 0x805f898 in perl_run ()
#12 0x805d3fd in main ()
#13 0x805d2ed in _start ()


5.00502 and 5.6.0 pass, 5.6.1 also goes bus error on bleadperl as far back as
8102 (which is the earliest I can find.

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About