Re: [AMaViS-user] Bad file descriptor errors with AMaVIS under

This is a discussion on Re: [AMaViS-user] Bad file descriptor errors with AMaVIS under within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Bradley, > I downgraded both file and libmagic1 and had the same problem. However, > thanks to your subsequent email, ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-14-2006
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] Bad file descriptor errors with AMaVIS under

Bradley,

> I downgraded both file and libmagic1 and had the same problem. However,
> thanks to your subsequent email, I did get a lot better data from amavisd.
> http://www.tux.org/~storm/files/amavisd.log


Thanks, that is more helpful.

It sounds like a known PerlIO bug:
http://rt.perl.org/rt3/Ticket/Display.html?id=39060

Could it be that your file(1) utility forgets
to terminate the last line of its output by a newline?

Would you please apply the following change to your 2.4.1,
which will make the debug log to show whether a line read
from file(1) did have a trailing \n or not:

--- amavisd.orig Mon Jun 19 15:51:00 2006
+++ amavisd Tue Nov 14 18:41:56 2006
@@ -15177,6 +15177,6 @@
my($index)=0; my($ln);
for ($! = 0; defined($ln=$proc_fh->getline); $! = 0) {
- chomp($ln);
do_log(5, "result line from file(1): %s", $ln);
+ chomp($ln);
if ($index > $#file_list) {
do_log(-1, "NOTICE: Skipping extra output from file(1): %s", $ln);

and repeat your experiment. I'm only interested in (all) debug lines
containing text (without quotes): "result line from file(1):"

Mark




-------------------------------------------------------------------------
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0