This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: nscd problem in glibc-2.0.111
- To: Ulrich Drepper <drepper@cygnus.com>
- Subject: Re: nscd problem in glibc-2.0.111
- From: Dmitry O Panov <dmitry@tsu.tula.ru>
- Date: Sun, 24 Jan 1999 14:25:56 +0300 (MSK)
- cc: libc-alpha@cygnus.com
On 23 Jan 1999, Ulrich Drepper wrote:
> Dmitry O Panov <dmitry@tsu.tula.ru> writes:
>
> > Any request to nscd causes requester to hang reading socket.
> > "strace nscd" fails with SIGSERV.
> > My current kernel version is 2.2.0-pre7, but I also tried 2.1.131.
> > The last glibc release with working nscd I saw was 2.0.102...
>
> I don't see any problems here and I also haven't heard from other
> people having problems. Please investigate the problem on your side.
> Start nscd with only one thread and in the debugger.
Ok, here we go.....
Script started on Sun Jan 24 14:13:28 1999
ic1093:~# gdb nscd
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-pc-linux-gnu"...
(gdb) set args -d -t 1
(gdb) b nscd_run
Breakpoint 1 at 0x804a635: file connections.c, line 322.
(gdb) run
Starting program: /usr/sbin/nscd -d -t 1
Breakpoint 1, nscd_run (p=0x0) at connections.c:322
322 int run_prune = my_number < lastdb && dbs[my_number].enabled;
(gdb) n
323 time_t now = time (NULL);
(gdb) n
324 time_t next_prune = now + CACHE_PRUNE_INTERVAL;
(gdb) n
325 int timeout = run_prune ? 1000 * (next_prune - now) : -1;
(gdb) n
327 conn.fd = sock;
(gdb) n
328 conn.events = POLLRDNORM;
(gdb) n
330 while (1)
(gdb) n
332 int nr = poll (&conn, 1, timeout);
(gdb) n
[ at this moment I said "strace ping localhost" in the other terminal. It
is hanging at reading from the socket. poll() is also hanging.]
334 if (nr == 0)
[ timeout expired ]
(gdb) q
The program is running. Exit anyway? (y or n) y
ic1093:~#
Script done on Sun Jan 24 14:14:46 1999
Seems like client is unable to communicate with server.
--
Dmitry O Panov | mailto:dmitry@tsu.tula.ru
Tula State University | http://www.tsu.tula.ru/
Dept. of CS & NIT | Fidonet: Dmitry Panov, 2:5022/8.31 aka 2:5022/5.50