After upgrading perl from 5.16 to 5.18 I'm getting in spamassassin's log messages as below, this happens on every mail. 2014-07-31T23:40:00.923557+02:00 mohikanin spamd[1239]: spamd: checking message <003101cfad18$07511b62$02ad6c94@vlmxxriq> for nobody:999 2014-07-31T23:40:01.058571+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/MX.pm: Permission denied at (eval 1433) line 2, <GEN26> line 29. 2014-07-31T23:40:01.058727+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/DKIM/DNS.pm line 177. 2014-07-31T23:40:01.061608+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/MX.pm: Permission denied at (eval 1434) line 2, <GEN26> line 29. 2014-07-31T23:40:01.061715+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:01.062413+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/A.pm: Permission denied at (eval 1435) line 2, <GEN26> line 29. 2014-07-31T23:40:01.062535+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:01.063115+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/A.pm: Permission denied at (eval 1436) line 2, <GEN26> line 29. 2014-07-31T23:40:01.063213+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:01.064022+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/TXT.pm: Permission denied at (eval 1437) line 2, <GEN26> line 29. 2014-07-31T23:40:01.064124+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:01.064550+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/A.pm: Permission denied at (eval 1438) line 2, <GEN26> line 29. 2014-07-31T23:40:01.064649+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:01.065071+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/A.pm: Permission denied at (eval 1439) line 2, <GEN26> line 29. 2014-07-31T23:40:01.065169+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:01.134725+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/A.pm: Permission denied at (eval 1440) line 2, <GEN26> line 29. 2014-07-31T23:40:01.134871+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:01.149922+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/TXT.pm: Permission denied at (eval 1441) line 2, <GEN26> line 29. 2014-07-31T23:40:01.150030+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:01.152571+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/A.pm: Permission denied at (eval 1442) line 2, <GEN26> line 29. 2014-07-31T23:40:01.152678+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:01.504737+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/A.pm: Permission denied at (eval 1443) line 2, <GEN26> line 29. 2014-07-31T23:40:01.504887+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:01.505639+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/A.pm: Permission denied at (eval 1444) line 2, <GEN26> line 29. 2014-07-31T23:40:01.505786+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:02.247487+02:00 mohikanin spamd[1239]: Can't locate Net/DNS/RR/NS.pm: Permission denied at (eval 1445) line 2, <GEN26> line 29. 2014-07-31T23:40:02.247630+02:00 mohikanin spamd[1239]: caught at /usr/lib64/perl5/vendor_perl/5.18.2/Mail/SpamAssassin/DnsResolver.pm line 457. 2014-07-31T23:40:02.253421+02:00 mohikanin spamd[1239]: spamd: identified spam (7.5/5.5) for nobody:999 in 1.4 seconds, 889 bytes. Reproducible: Always Portage 2.2.8-r1 (hardened/linux/amd64, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64) ================================================================= System uname: Linux-3.14.14-gentoo-x86_64-Intel_Xeon_E312xx_-Sandy_Bridge-with-gentoo-2.2 KiB Mem: 2370324 total, 1115844 free KiB Swap: 524284 total, 524284 free Timestamp of tree: Thu, 31 Jul 2014 04:45:01 +0000 ld GNU gold (GNU Binutils 2.23.2) 1.11 ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p45 dev-lang/python: 2.7.6, 3.3.3 dev-util/ccache: 3.1.9-r3 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.13 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core2 -mtune=native -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-tables -fpeel-loops -ftracer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=core2 -mtune=native -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-tables -fpeel-loops -ftracer" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache cgroup collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/ http://ftp.vectranet.pl/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="-O" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://gentoo-mirror/gentoo-portage/" USE="acl acpi amd64 bash-completion caps cli cracklib crypt cxx dri hardened iconv idn justify mmx mmxext modules multilib ncurses nls nptl openmp pax_kernel pcre postgres readline session sse sse2 sse3 ssse3 threads unicode urandom vhosts vim-syntax xattr xtpax" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authz_host dir mime unique_id" APACHE2_MPMS="itk" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="access auth_basic browser charset fastcgi gzip gzip_static headers_more limit_conn limit_req proxy realip referer rewrite userid" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="tarpit" USE_PYTHON="3.3" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
perl-cleaner --all
actually, might not be. try anyways.
It would be too easye if could perl-cleaner fixed it: # perl-cleaner --all -- -av1 * Beginning a clean up of .ph files * Excluding files for 5.18.2 and 5.18.2/x86_64-linux from cleaning * Locating ph files for removal * Updating ph files. * Ignore all "No such file..." messages! Can't open machine/ansi.h: No such file or directory Can't open sys/_types.h: No such file or directory Can't open gnu/stubs-x32.h: No such file or directory Can't open gnu/stubs-x32.h: No such file or directory Can't open gnu/stubs-x32.h: No such file or directory Can't open gnu/stubs-x32.h: No such file or directory * Locating packages for an update * Locating ebuilds linked against libperl * No package needs to be reinstalled. * Finding left over modules and header * The following files remain. These were either installed by hand * or edited. This script cannot deal with them.
figures. can you run "find /usr/lib64/perl5 >/dev/null"?
as non-root obviously
mohikanin / # sudo -u spamd find /usr/lib64/perl5 >/dev/null mohikanin / #
yeah, I got nothing. maybe try restarting spamassassin?
I tried gentoo-sources instead of hardened-sources, no changes. On other, similar host I don't have such problem so I'm nut sure if it's my problem or Gentoo.
Not a gentoo bug
May I please some more explanation?
A can't definitely say what happend on your system, but it seems to be releated to bug 505282 (just other package). I can only say, there is no gentoo-side fault.
Strace helped me to find out what happened. 1178 15:43:58 alarm(30) = 0 1178 15:43:58 stat("/var/lib/spamassassin/compiled/5.018/3.003002/IP/Country/Fast.pmc", 0x3e098290490) = -1 EACCES (Permission denied) 1178 15:43:58 stat("/var/lib/spamassassin/compiled/5.018/3.003002/IP/Country/Fast.pm", 0x3e0982903d0) = -1 EACCES (Permission denied) 1178 15:43:58 gettimeofday({1406987038, 132650}, NULL) = 0 117 I've changed owner (recursive) of /var/lib/spamassassin/ to spamd, it fixed problem. It looks that SA with perl 5.18 needs write access to directories which contains compiled rules.