ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl5-porters
perl5-porters
Re: [ID 20010630.004] Segfault on gethostbyaddr call which returns multiple PTR records
by Nicholas Clark other posts by this author
Jul 1 2001 1:22AM messages near this date
Re: [ID 20010630.004] Segfault on gethostbyaddr call which returns multiple PTR records | Re: [ID 20010630.004] Segfault on gethostbyaddr call which returns multiple PTR records
On Sat, Jun 30, 2001 at 11:14:06AM -0400, Bob Fillmore wrote:
>  
>  This is a bug report for perl from fillmore@[...].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:
Bob Fillmore
Nicholas Clark
Nicholas Clark
Nicholas Clark

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved