HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   MyDNS Segfaults (http://www.howtoforge.com/forums/showthread.php?t=47133)

crypted 8th July 2010 16:40

MyDNS Segfaults
 
So, my server stops responding to hostnames. Finally looked in the log, here's a snippet. Any thoughts?

Code:

Jul  8 09:46:14 my kernel: [1957128.249175] mydns[31597]: segfault at 0 ip 40e87d sp 7fffffffd490 error 4 in mydns[400000+32000]
Jul  8 09:54:41 my kernel: [1957667.599821] mydns[3709]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:41 my kernel: [1957668.288273] mydns[3710]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:41 my kernel: [1957668.312274] mydns[3711]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:41 my kernel: [1957668.324277] mydns[3712]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:41 my kernel: [1957668.328930] mydns[3713]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:41 my kernel: [1957668.390657] mydns[3714]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:41 my kernel: [1957668.400529] mydns[3715]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:41 my kernel: [1957668.405663] mydns[3716]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:41 my kernel: [1957668.500529] mydns[3717]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:41 my kernel: [1957668.566591] mydns[3718]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:53 my kernel: [1957681.320283] __ratelimit: 5 messages suppressed
Jul  8 09:54:53 my kernel: [1957681.320290] mydns[3724]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:53 my kernel: [1957681.342731] mydns[3726]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:54:59 my kernel: [1957688.760196] __ratelimit: 22 messages suppressed
Jul  8 09:54:59 my kernel: [1957688.760196] mydns[3752]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:55:11 my kernel: [1957701.883140] mydns[3754]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:55:11 my kernel: [1957701.894715] mydns[3767]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:55:11 my kernel: [1957701.902294] mydns[3768]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:55:14 my pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jul  8 09:55:14 my pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jul  8 09:55:24 my kernel: [1957714.417575] __ratelimit: 46 messages suppressed
Jul  8 09:55:24 my kernel: [1957714.417575] mydns[3817]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:56:20 my kernel: [1957774.895848] mydns[3828]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:57:29 my kernel: [1957849.633692] mydns[3883]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
.................
Jul  8 09:58:42 my kernel: [1957927.055896] mydns[4994]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:58:42 my kernel: [1957927.097923] mydns[4995]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:58:44 my kernel: [1957929.030362] mydns[4996]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:58:44 my kernel: [1957929.043844] mydns[4997]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:58:44 my kernel: [1957929.049654] mydns[4998]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:58:44 my kernel: [1957929.055844] mydns[4999]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:58:44 my kernel: [1957929.414219] __ratelimit: 33 messages suppressed
Jul  8 09:58:44 my kernel: [1957929.414219] mydns[5033]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:58:49 my kernel: [1957934.819720] __ratelimit: 4 messages suppressed
Jul  8 09:58:49 my kernel: [1957934.819727] mydns[5040]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]
Jul  8 09:58:56 my kernel: [1957941.326794] __ratelimit: 497 messages suppressed
Jul  8 09:58:56 my kernel: [1957941.326800] mydns[5539]: segfault at 0 ip 404638 sp 7fffffffd430 error 4 in mydns[400000+32000]

Debian Lenny x64, used the Perfect Setup guide. All apt-get updates were installed. dual 2ghz, 2gb ram, 300gb hdd

Quote:

my:/home/dingle# mydns --version
mydns (mydns) 1.2.8.25 (MySQL 5.0.51a)

Copyright (C) 2002-2005 Don Moore 2007-2008 Howard Wilkinson
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

till 9th July 2010 08:21

Try to update mydns to the latest version (mydns-ng 1.2.8.27)

http://sourceforge.net/projects/mydns-ng/

crypted 9th July 2010 16:20

Yep, did that. Will see what happens. Might wanna get falko to update the package link in the perfect setup guides...

crypted 17th July 2010 05:22

MyDNS has segfaulted once again. What happens is NO DOMAIN will resolve, but the machine is accessible via IP. The Shared-IP page will load for those IPs as well.

I setup a cronjob that will restart via the init.d script every three hours because downtime can be over a day as I'm not always available to restart it myself.

I upgrade to the latest MyDNS as discussed above. Still not working out right.

How can I get MyDNS to create a logfile to help pinpoint the matter?

I did everything as instructed in the Perfect Setup guide for Debian Lenny.

till 17th July 2010 09:55

Have you contacted the mydns developers in their mailinglist? They might be able to help you more in detail with this segfault.

crypted 17th July 2010 16:59

Will do. Just thought I'd turn to you guys as a first resource.

crypted 22nd July 2010 18:38

Apparently, the consensus so far is that there were problems when ISPCONFIG wrote the zonefiles to the database.

Till, i don't know the tables used for DNS and what not, what are they?

Also, is there any way to have them rewritten or to have the system check for consistency errors?

till 22nd July 2010 19:21

Quote:

Till, i don't know the tables used for DNS and what not, what are they?
The table nemes names are the same then the protocol:

dns_*

Quote:

Also, is there any way to have them rewritten or to have the system check for consistency errors?
Records in a database are always consistent, this is handled by mysql as every record is written at once into the databse with one sql insert or update statement. A application should never fail with a segfault. Maybe they should add code to handle database connection problems better.

crypted 22nd July 2010 19:56

Any clue of a way to run mydns so that it outputs all data and creates a log?

I think there was something like gdb on FreeBSD for that but no clue.

till 22nd July 2010 21:01

The only logging option that I'am aware of is this one:

http://mydns.bboy.net/doc/html/mydns_22.html


All times are GMT +2. The time now is 12:44.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.