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; Thanks Mark and Gary, I guess I'll be rebuilding that server with sarge over the weekend... Thanks for finding ...


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-15-2006
Bradley M Alexander
 
Posts: n/a
Default Re: [AMaViS-user] Bad file descriptor errors with AMaVIS under

Thanks Mark and Gary,

I guess I'll be rebuilding that server with sarge over the weekend...

Thanks for finding it.
--b


----- Original Message -----
From: Mark Martinec <Mark.Martinec+amavis@ijs.si>
To: amavis-user@lists.sourceforge.net
Sent: Wednesday, November 15, 2006 12:10:58 PM GMT-0500 US/Eastern
Subject: Re: [AMaViS-user] Bad file descriptor errors with AMaVIS under

Bradley,

> Yes. I have posted what I think is a single message's path through the
> logs. It does result in a bad file descriptor error. It is up at
> http://www.tux.org/~storm/files/amavisd.log.1


Thanks, the output from file(1) looks normal, yet your PerlIO or libc
returns incorrect status on reading the last line. I'm quite sure
it is related to the mentioned Perl I/O bug. It shows on some platforms,
and not on others. I'd suggest you try on a different OS platform,
perhaps as Gary suggests, or SUSE or whatever is supported by Zimbra.

As a quick-and-dirty workaround you may just comment out the
check for error status, although this way you'll never know
when a true error occurs. Just comment out the two lines:
defined $ln || $!==0 || $!==EAGAIN
or die "Error reading from file(1) utility: $!";


For experimenting, here is a small test program in Perl,
which mimics what amavisd does: forks a file(1) command
giving it some filename as argument, and reads output from
pipe line by line, printing each line, and checking status.
E.g.: $ ./this-prog some-file.txt


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
_______________________________________________
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 11:49 PM.


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