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 <[EMAIL PROTECTED]> 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?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/