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 #169 of 261 |
Re: [dnrd] [fbriere@...: Bug#77793: dnrd: sits in infinite loop]

On Sat, Nov 25, 2000 at 08:05:19AM -0500, Brad Garcia wrote:
> I would suggest compiling dnrd with debugging (-g) turned on, and the
> next time it happens attach gdb to it (gdb dnrd <pid>) and then get a
> backtrace on all threads (thread apply all bt)

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 -9 it when
things get rough, and look at the corefile. However, for some reason,
I'm unable to get dnrd to dump a core, even with ulimit -c unlimited.
Beats me. (Maybe it's the chroot? I'm just guessing.)

While trying the above, I noticed that my foreground daemon would get
killed after a while. Turns out I had completely forgotten about a
change I added some months ago to my dhclient config:

[fbriere] mysidia:/etc $ cat dhclient-enter-hooks
make_resolv_conf() {
DNRD_FILE="/etc/dnrd/servers.line"
rm -f $DNRD_FILE
for nameserver in $new_domain_name_servers; do
echo -n "-s $nameserver " >> $DNRD_FILE
done
echo >> $DNRD_FILE
[ -e /var/run/dnrd.pid ] && /etc/init.d/dnrd force-reload
}

exit_status=0


This is used every time dhclient renews a DHCP lease, or takes an old
one from the cache at bootup. (I don't think my DNS servers have ever
changed once, but I like to be prepared. <g>)

Ever since I have disabled that reload two days ago, I haven't
experienced any problem. So this might well be it.

I'll try re-enabling the reload tomorrow, and see if something happens.

--
Frederic Briere <fbriere@...> [hyrule.dyndns.org]
The second piece of paper was much easier to get. Hmm.
"Well, at least I'm not HUNGARIAN!" // "That is so low."



Sun Nov 26, 2000 7:58 am

fbriere@...
Send Email Send Email

Forward
Message #169 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