You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/01/24 00:15:53 UTC
[Bug 2959] New: spamc -d causes seg fault when host cannot resolve
http://bugzilla.spamassassin.org/show_bug.cgi?id=2959
Summary: spamc -d causes seg fault when host cannot resolve
Product: Spamassassin
Version: 2.61
Platform: All
OS/Version: Linux
Status: NEW
Severity: trivial
Priority: P1
Component: spamc/spamd
AssignedTo: spamassassin-dev@incubator.apache.org
ReportedBy: dallase@nmgi.com
i've only tested this on 2.61 on redhat 7.3, havent had time to install 2.63
yet... but from searching bugs, i dont see this fixed in 2.62 and 2.63....
with or without the -H flag, it has the same results...
[root@localhost]# echo "" | /usr/bin/spamc -dtest1 -H
Segmentation fault
if you add test1 to /etc/hosts and run it again, it works fine.
this could cause big problems for people that use dns round robin setups for
load balancing spamd's if their dns goes down. actually, if their dns goes
down, they probably have even bigger problems... nonetheless, they could be
running the spamd's without network tests which dont need dns to function.
from the looks of it, it tries to make a connect() even though dns couldnt
return a valid ip for the host.
socket(PF_UNIX, SOCK_DGRAM, 0) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sin_family=AF_UNIX, path="/dev/log"}, 16) = 0
send(3, "<19>Jan 23 16:17:06 spamc[24903]"..., 72, 0) = 72
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
probably needs a little error checking.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.