Search the web
Sign In
New User? Sign Up
dnrd · DNRD discussion list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[fbriere@abacom.com: Bug#77793: dnrd: sits in infinite loop]   Message List  
Reply | Forward Message #172 of 261 |
Re: [dnrd] [fbriere@...: Bug#77793: dnrd: sits in infinite loop]

On Tue, 28 Nov 2000, Frederic Briere wrote:

> Well, that was fast; as soon as dhclient restarted dnrd, it happened
> again. Seems to me that select() keeps failing, but I don't see
> anything in my logs...

Make sure you have syslog setup to save these messages.
It's trying to print out the error code returned by select, and that
would be very useful when trying to debug it.

The other thing you can try is to attach strace to the running program
instead of gdb (strace -p <pid>) when it gets into this state.
That should show the calls to select() and the error codes they are
returning.

If you haven't killed dnrd, just exit gdb. dnrd should start running
again. If it's still in this bad state, attach strace to it and see
what you get (you can stop strace by hitting ctrl-c - it will probably
produce a ton of output so you'll probably want to kill it so you can
see what was going on).

> Here's a typical backtrace:
>
> #0 0x400ba5ed in close () from /lib/libc.so.6
> #1 0x40020292 in close () from /lib/libpthread.so.0
> #2 0x400c2fe7 in vsyslog () from /lib/libc.so.6
> #3 0x400c2def in vsyslog () from /lib/libc.so.6
> #4 0x804a638 in log_msg (type=3, fmt=0x8050d26 "select returned %s")
> at common.c:131
> #5 0x804e719 in run () at relay.c:187
> #6 0x804c1b4 in main (argc=5, argv=0xbffff9e4) at main.c:319

Brad Garcia




Wed Nov 29, 2000 10:40 pm

garsh@...
Send Email Send Email

Forward
Message #172 of 261 |
Expand Messages Author Sort by Date

Do you have any idea what could be done about this? ... Subject: Bug#77793: dnrd: sits in infinite loop Reply-To: Frederic Briere <fbriere@...>,...
Thomas Schoepf
schoepf@...
Send Email
Nov 23, 2000
11:46 pm

... What about running it in debugging mode & posting the outputs? I know of quite a bunch of race conditions and minor bugs in the dnrd-sources, so it would...
Rainer Weikusat
weikusat@...
Send Email
Nov 24, 2000
9:04 am

I have never observed this behavior. I would suggest compiling dnrd with debugging (-g) turned on, and the next time it happens attach gdb to it (gdb dnrd...
Brad Garcia
garsh@...
Send Email
Nov 25, 2000
12:01 pm

... I never tried to debug a running program before; guess it's time I learned something new. :) My original plan was to run it in foreground (with -d), kill...
Frederic Briere
fbriere@...
Send Email
Nov 26, 2000
7:58 am

... Well, that was fast; as soon as dhclient restarted dnrd, it happened again. Seems to me that select() keeps failing, but I don't see anything in my...
Frederic Briere
fbriere@...
Send Email
Nov 29, 2000
9:02 pm

... Make sure you have syslog setup to save these messages. It's trying to print out the error code returned by select, and that would be very useful when...
Brad Garcia
garsh@...
Send Email
Nov 29, 2000
9:36 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help