This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: A new glibc bug


>>>>> H J Lu writes:

HJ> With the current glibc 2.1.2 in CVS today, I got
HJ> # rlogin foo
HJ> zsh: 1746 segmentation fault  rlogin foo

HJ> where "foo" is an unknown host. With glibc 2.1.1, I got

HJ> # rlogin foo
HJ> foo: Unknown host

HJ> Any ideas?

It breaks in rcmd:
(gdb) r foo
Starting program: /usr/bin/rlogin foo

Program received signal SIGSEGV, Segmentation fault.
0x400e4910 in rcmd (ahost=0xbffff7cc, rport=258, locuser=0x804d6b0 "root", 
    remuser=0x804d6b0 "root", cmd=0xbffff7d4 "xterm/38400", fd2p=0x0)
    at rcmd.c:103
103             *ahost = hp->h_name;
(gdb) bt
#0  0x400e4910 in rcmd (ahost=0xbffff7cc, rport=258, locuser=0x804d6b0 "root", 
    remuser=0x804d6b0 "root", cmd=0xbffff7d4 "xterm/38400", fd2p=0x0)
    at rcmd.c:103
#1  0x80492e9 in _start ()

	while (__gethostbyname_r (*ahost, &hostbuf, tmphstbuf, hstbuflen,
				  &hp, &herr) < 0)
__gethostbyname_r returned 0 and hp was set to null.


Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de

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