A new glibc bug
Andreas Jaeger
aj@arthur.rhein-neckar.de
Sun Jun 27 22:47:00 GMT 1999
>>>>> 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
More information about the Libc-hacker
mailing list