On servers that are running the perl modules that are a part of PathTools, MailScanner breaks with the recently released v3.26. If you’re suffering from this issue you’ll see MailScanner continually restarting. If you run MailScanner in –debug you’ll see it SegFault. In /var/log/messages you’ll see continual:
MailScanner: Process did not exit cleanly, returned 0 with signal 11
You can confirm which version of PathTools is installed using:
perl -MCwd -e ‘print “$Cwd::VERSION\n”‘
To fix this you need to downgrade PathTools to v3.2501:
wget http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/PathTools-3.2501.tar.gz
tar -xzf PathTools-3.2501.tar.gz
cd PathTools-3.2501
perl Makefile.PL
make
make install
cd ..
rm -Rfv PathTools-3.2501*
2 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
The author of PathTools has broken his code by changing it so that the function strlcpy() is not required in the C library. It is not included in the standard GNU C library as far as I can see, so Linux does not include this function. So his code doesn’t work any more
This means that I can’t use the “cwd” function any more to read the current working directory, which I need to do and cannot avoid realistically.
So this is going to stay broken until the author of PathTools changes his code so that it doesn’t rely on a non-standard function.
So don’t upgrade to PathTools 3.26. Version 3.2501 works fine.
–
Jules
(Author of MailScanner)
Hopefully this will get fixed soon
thanks for the heads-up