Front page | perl.perl5.porters |
Postings from June 2001
[ID 20010630.004] Segfault on gethostbyaddr call which returnsmultiple PTR records
Thread Previous
|
Thread Next
From:
Bob Fillmore
Date:
June 30, 2001 08:14
Subject:
[ID 20010630.004] Segfault on gethostbyaddr call which returnsmultiple PTR records
Message ID:
200106301514.LAA09552@nrn1.NRCan.gc.ca
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);
The same lookup using nslookup on Solaris 8 does not segfault:
nslookup -q=ptr 9.128.226.195.in-addr.arpa
Note that the segfault may be due to bad data returned from a corrupt
cache in the remote DNS,
so this should be tested ASAP before that DNS is restarted.
Thanks,
Bob Fillmore
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl v5.6.0:
Configured by fillmore at Sun Sep 3 20:24:41 EDT 2000.
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.8, archname=sun4-solaris
uname='sunos nrn1 5.8 generic_108528-02 sun4u sparc sunw,ultra-4 '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='gcc', optimize='-O', gccversion=2.95.2 19991024 (release)
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib '
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc -lcrypt -lsec
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.6.0:
/usr/local/lib/perl5/5.6.0/sun4-solaris
/usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl
.
---
Environment for perl v5.6.0:
HOME=/home/emr1/fillmore
LANG (unset)
LANGUAGE (unset)
LC_CTYPE=iso_8859_1
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/bin:/usr/sbin:/usr/bin:/usr/ucb:/etc:/usr/etc:/usr/local:/usr/local/bin:/usr/local/etc:/operator:/home/etherdata:/home/emr1/fillmore/bin
PERL_BADLANG (unset)
SHELL=/bin/csh
Thread Previous
|
Thread Next