FS#40739 - [spamassassin] [perl-net-dns] fails to obtain DNS servers

Attached to Project: Arch Linux
Opened by Matthew Leach (ixlun) - Friday, 06 June 2014, 21:52 GMT
Last edited by Felix Yan (felixonmars) - Monday, 09 June 2014, 04:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Florian Pritz (bluewind)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
spamassassin fails to obtain DNS servers from Perl's Net::DNS module.

Additional info:
* package version(s)
spamassassin 3.4.0-2
perl-net-dns 0.76_1-2
* config and/or log files etc.
Output of "echo "test" | spamassassin -D dns 2>&1 | less"
Jun 6 22:45:55.850 [449] dbg: dns: EDNS, UDP payload size 4096
Jun 6 22:45:55.850 [449] dbg: dns: servers obtained from Net::DNS :
Jun 6 22:45:55.850 [449] dbg: dns: eval failed: available_nameservers: No DNS servers available!
Jun 6 22:45:55.850 [449] dbg: dns: using socket module: IO::Socket::IP
Jun 6 22:45:55.850 [449] dbg: dns: is Net::DNS::Resolver available? yes
Jun 6 22:45:55.850 [449] dbg: dns: Net::DNS version: 0.76_1
Jun 6 22:45:55.852 [449] dbg: dns: clear_resolver
Jun 6 22:45:55.853 [449] dbg: dns: EDNS, UDP payload size 4096
Jun 6 22:45:55.853 [449] dbg: dns: eval failed: available_nameservers: No DNS servers available!
Jun 6 22:45:55.853 [449] dbg: dns: using socket module: IO::Socket::IP
Jun 6 22:45:55.853 [449] dbg: dns: is Net::DNS::Resolver available? yes
Jun 6 22:45:55.853 [449] dbg: dns: Net::DNS version: 0.76_1
[...]

/etc/resolv.conf:
# Generated by resolvconf
domain home
nameserver 192.168.1.254


Steps to reproduce:
# pacman -S spamassassin
# echo "test" | spamassassin -D dns 2>&1 | less
This task depends upon

Closed by  Felix Yan (felixonmars)
Monday, 09 June 2014, 04:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.4.0-3
Comment by Doug Newgard (Scimmia) - Saturday, 07 June 2014, 03:45 GMT Comment by Florian Pritz (bluewind) - Saturday, 07 June 2014, 07:46 GMT
I don't think this error is our fault (a packaging mistake). It could be perl 5.20 breaking net-dns, spamassassin not using net-dns correctly or just net-dns being broken in the current version. Anyway, I won't try to debug this due to time constraints.

If you care about the issue, please figure it out and contact the right people (probably some upstream and not us).
Comment by Rich Li (richli) - Saturday, 07 June 2014, 21:58 GMT
A related error I found in my logs is this:

spamd[14420]: Argument "0.76_1" isn't numeric in numeric ge (>=) at /usr/share/perl5/vendor_perl/Mail/DKIM/PublicKey.pm line 113, <GEN24> line 106.

The offending file is in the "perl-mail-dkim" package. The issue is that perl-net-dns has a version of "0.76_1" instead of something numeric like "0.76". Perhaps perl-net-dns should be rolled back to the 0.76 (non-developer) version?
Comment by Felix Yan (felixonmars) - Sunday, 08 June 2014, 03:41 GMT
I updated the version to developer version because 0.76 is failing tests and has other issues, while 0.76_1 passes all.

There's a new developer release today (0.76_2), but I don't think it will make any difference for the numeric thing.
Comment by Felix Yan (felixonmars) - Sunday, 08 June 2014, 07:53 GMT
Please test with spamassassin-3.4.0-3, thanks.
Comment by Rich Li (richli) - Monday, 09 June 2014, 04:03 GMT
I tested it, I don't see any DNS issues now.

Loading...