Re: [AMaViS-user] mime_decode-1 FAILED: Error reading: Resource temporarily

This is a discussion on Re: [AMaViS-user] mime_decode-1 FAILED: Error reading: Resource temporarily within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Mark Martinec wrote: > It seems the addition of I/O status checks unveiled some perlio problems > on different ...


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 06-01-2005
Chris Pile
 
Posts: n/a
Default Re: [AMaViS-user] mime_decode-1 FAILED: Error reading: Resource temporarily

Mark Martinec wrote:
> It seems the addition of I/O status checks unveiled some perlio problems
> on different platforms. Linux folks are seeing nonzero errno when reading
> line-by-line and the last line does not terminate by a NL (this works
> fine on FreeBSD). Sander Steffann (on a parallel thread) is reporting
> errors (Bad file descriptor) after successfully reading response from
> certain virus scanner daemons (on socket and on pipe, on Linux again).
>
> I'm running it all on FreeBSD 5.4 (or 5.2), Perl 5.8.6, and don't see
> such problems. I even repeated your experiment and watched the
> truss output, which doesn't report "Resource temporarily unavailable"
> on read from file(1) subprocess, and not even "Operation not supported
> by device".
>
> I would attribute it to different versions of Perl, but you used the
> same version of Perl. It appears unusual that the same Perl would
> behave that differently when run on FreeBSD 4.11 vs. 5.x, although
> it is possible.


<snip>

> I'm not sure what to suggest next, except for a temporary remedy
> of ignoring the $! after the loop. It may be worth experimenting
> with settings of the PERLIO env. variable (see perlrun man page).
>
> It seems to be Perl i/o problem (one or more) in all these cases,
> as it doesn't behave like the documentations claims it does.
> If someone has a will to report it to Perl bug tracking, with small
> self-contained test cases showing errno problems in a reproducible way,
> it would be very nice to the community.
>
> Mark


Thanks for investigating. I have been playing around with building Perl
on FreeBSD4.11. I can confirm that when using Perl compiled from the
ports collection, the error does not occur (I was building from src
tarball before).

When I get chance I'll see exactly how the ports version fixes this
problem. It's not just the patch-perl.c and patch-perlio.c patches.


Thanks,
Chris.



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
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 09:56 PM.


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