
8th July 2010, 16:40
|
|
Senior Member
|
|
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 13 Times in 5 Posts
|
|
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.
|
Last edited by crypted; 8th July 2010 at 17:15.
|

9th July 2010, 08:21
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Try to update mydns to the latest version (mydns-ng 1.2.8.27)
http://sourceforge.net/projects/mydns-ng/
|

9th July 2010, 16:20
|
|
Senior Member
|
|
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 13 Times in 5 Posts
|
|
Yep, did that. Will see what happens. Might wanna get falko to update the package link in the perfect setup guides...
|

17th July 2010, 05:22
|
|
Senior Member
|
|
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 13 Times in 5 Posts
|
|
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.
|

17th July 2010, 09:55
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Have you contacted the mydns developers in their mailinglist? They might be able to help you more in detail with this segfault.
|

17th July 2010, 16:59
|
|
Senior Member
|
|
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 13 Times in 5 Posts
|
|
Will do. Just thought I'd turn to you guys as a first resource.
|

22nd July 2010, 18:38
|
|
Senior Member
|
|
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 13 Times in 5 Posts
|
|
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?
|

22nd July 2010, 19:21
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
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.
Last edited by till; 22nd July 2010 at 20:49.
|

22nd July 2010, 19:56
|
|
Senior Member
|
|
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 13 Times in 5 Posts
|
|
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.
|

22nd July 2010, 21:01
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
The only logging option that I'am aware of is this one:
http://mydns.bboy.net/doc/html/mydns_22.html
|
|
The Following User Says Thank You to till For This Useful Post:
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 08:54.
|
|
Recent comments
1 day 7 hours ago
1 day 12 hours ago
1 day 17 hours ago
1 day 18 hours ago
2 days 9 hours ago
2 days 9 hours ago
2 days 14 hours ago
2 days 20 hours ago
2 days 21 hours ago
2 days 22 hours ago