<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>This is rather lame, but none the less a bug. If I use a hostname in hosts.cfg that is a CNAME record that doesn't point to a A record, xymonnet crashes. The strace of the event:</p>
<p><br>
</p>
<p>recvfrom(4, "9g\205\200\0\1\0\1\0\0\0\0\vlame_name\4orix\3co"..., 4097, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("1.1.1.1")}, [16]) = 74<br>
--- SIGSEGV (Segmentation fault) @ 0 (0) ---<br>
rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTORER|SA_RESTART, 0x7fae2a535910}, {0x4279f0, [], SA_RESTORER, 0x7fae2a535910}, 8) = 0<br>
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fae2b6dd9d0) = 26817<br>
chdir("/usr/local/xymon/server/tmp")    = 0<br>
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0<br>
tgkill(26449, 26449, SIGABRT)           = 0<br>
--- SIGABRT (Aborted) @ 0 (0) ---<br>
+++ killed by SIGABRT (core dumped) +++<br>
</p>
<p><br>
</p>
<p>Of course if there is no DNS entry at all, it complains and just uses the IP address included in the hosts.cfg file, but for a 'dangling' CNAME it crashes. This happens in both 4.3.27 and 4.3.28.</p>
<p><br>
</p>
<p>thanks, Phil<br>
</p>
</body>
</html>