This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: getnameinfo from glibc 2.1.94


On Fri, Sep 29, 2000 at 08:31:22AM -0700, Ulrich Drepper wrote:
> Artur Frysiak <wiget@pld.org.pl> writes:
> 
> > getnameinfo: Bad value for ai_flags
> > Segmentation fault
> > 
> > # objdump -T /lib/libc-2.1.94.so |grep getnameinfo
> > 000e4858 g    DF .text	0000060c  GLIBC_2.1   getnameinfo
> > $ objdump -T /lib/libc-2.1.3.so |grep getnameinfo
> > 000bcff8 g    DF .text	000004bc  GLIBC_2.1   getnameinfo
> 
> You will have to tell us what the parameters getnameinfo gets are.
> Maybe ltrace can help.

# ltrace netstat 2>&1|grep getnameinfo
getnameinfo(0xbfffd284, 24, 0x0805d4a0, 255, 0)   = -1
fprintf(0x002359a0, "getnameinfo: %s\n", "Bad value for ai_flags"getnameinfo: Bad value for ai_flags

If I use netstat compiled with glibc 2.1.94 then all is fine.
# ltrace netstat 2>&1|grep getnameinfo
getnameinfo(0xbfffd280, 28, 0x0805c1e0, 255, 0)   = 0
getnameinfo(0xbfffd280, 28, 0x0805c1e0, 255, 0)   = 0

Regards
-- 
Artur Frysiak
http://www.pld.org.pl/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]