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, Here is the information: Nov 14 15:10:27 merrimac amavis[28922]: (28922-01) result line from file(...


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

Thanks Mark,

Here is the information:

Nov 14 15:10:27 merrimac amavis[28922]: (28922-01) result line from
file(1): p001: ASCII English text\n
Nov 14 15:10:27 merrimac amavis[28922]: (28922-01) result line from
file(1): p002: ASCII English text, with very long lines
\n
Nov 14 15:13:34 merrimac amavis[28923]: (28923-01) result line from
file(1): p001: ASCII English text\n
Nov 14 15:22:50 merrimac amavis[28922]: (28922-02) result line from
file(1): p001: HTML document text\n
Nov 14 15:22:50 merrimac amavis[28922]: (28922-02) result line from
file(1): p002: GIF image data, version 89a, 557 x 442\n
Nov 14 15:24:57 merrimac amavis[28923]: (28923-02) result line from
file(1): p001: ASCII English text\n
Nov 14 15:26:54 merrimac amavis[28922]: (28922-03) result line from
file(1): p001: ASCII English text\n
Nov 14 15:31:11 merrimac amavis[28924]: (28924-01) result line from
file(1): p001: ASCII English text\n
Nov 14 15:33:35 merrimac amavis[28922]: (28922-04) result line from
file(1): p001: ASCII English text\n
Nov 14 15:33:35 merrimac amavis[28922]: (28922-04) result line from
file(1): p002: HTML document text\n
Nov 14 15:33:35 merrimac amavis[28922]: (28922-04) result line from
file(1): p003: JPEG image data, JFIF standard 1.02\n
Nov 14 15:33:35 merrimac amavis[28922]: (28922-04) result line from
file(1): p004: GIF image data, version 89a, 490 x 130\n
Nov 14 15:38:27 merrimac amavis[28924]: (28924-02) result line from
file(1): p001: ASCII English text\n
Nov 14 15:38:27 merrimac amavis[28926]: (28926-01) result line from
file(1): p001: ASCII English text\n
Nov 14 15:38:27 merrimac amavis[28926]: (28926-01) result line from
file(1): p002: ASCII English text, with very long lines
\n
Nov 14 15:38:28 merrimac amavis[28927]: (28927-01) result line from
file(1): p001: ASCII English text\n
Nov 14 15:38:28 merrimac amavis[28922]: (28922-05) result line from
file(1): p001: ASCII English text\n
Nov 14 15:38:28 merrimac amavis[28926]: (28926-02) result line from
file(1): p001: ASCII English text\n
Nov 14 15:38:28 merrimac amavis[28924]: (28924-03) result line from
file(1): p001: ASCII English text\n
Nov 14 15:38:28 merrimac amavis[28924]: (28924-03) result line from
file(1): p002: HTML document text\n
Nov 14 15:38:28 merrimac amavis[28924]: (28924-03) result line from
file(1): p003: JPEG image data, JFIF standard 1.02\n
Nov 14 15:38:28 merrimac amavis[28924]: (28924-03) result line from
file(1): p004: GIF image data, version 89a, 490 x 130\n
Nov 14 15:38:28 merrimac amavis[28923]: (28923-03) result line from
file(1): p001: HTML document text\n
Nov 14 15:38:28 merrimac amavis[28923]: (28923-03) result line from
file(1): p002: GIF image data, version 89a, 557 x 442\n


----- Original Message -----
From: Mark Martinec <Mark.Martinec+amavis@ijs.si>
To: amavis-user@lists.sourceforge.net
Sent: Tuesday, November 14, 2006 12:46:27 PM GMT-0500 US/Eastern
Subject: 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

-------------------------------------------------------------------------
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:47 PM.


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