Doug MacEachern wrote:

> On Sat, 15 Dec 2001, Stas Bekman wrote:
> 
> 
>>Issues:
>>- optional functions use explodes during compilation under 5.6.1 (have no
>>  idea why, it compiles cleanly with bleadperl)
>>
> 
> if it requires PerlIO anyhow, just use the same #ifdef PERLIO_LAYERS
> around the C code.  same thing, feel free to commit provided it will
> compile and test with 5.6.1

OK, I've added 5.6.1 IO for converting apr_file_t's into IO (which is 
different from PerlIO in 5.7.1+). It compiles cleanly for both versions.

The trouble is in the conversion code which I've added for 5.6.1 (copied 
and adjusted from Apache::SubProcess from 1.x). The sub-tests succeed 
absolutely randomly and it has nothing to do with mod_perl's 
persistence, since the very first sub-test may succeed or fail randomly. 
I've tried to trace the problem, but I cannot understand what the 
problem is. It seems to me like a problem with picking wrong file 
descriptors. I've manually checked /proc/$$/fd/ and it was all perfect 
there, but the program returns empty fh most of the time.

It's also possible that the problem is in apr_os_file_get, which I had 
to use for 5.6.1, because 5.6.1's IO wants FILE* which is not available 
with APR. apr_file_t is an opaque object, and apr_os_file_get is used to 
get the OS specific fh (int/HANDLE/etc). Could be that the problem is 
there, but I doubt.

So the new test is comprised of todo tests, which all pass under 
bleadperl. (note that you need bleadperl patch 13534+ to get it working, 
how do I require a certain patch level in C and Perl?

The second trouble I've with the 5.6.1 IO conversion code is a fd 
leakage. I've no idea why the leakage happens only with 'in' fd and not 
with out/err fd, which are created and destroyed in the same way. The 
only difference is that 'in' is dup'ed for writing. There are no fd 
leakages under bleadperl.

Any help with these two issues is very appeciated. Or may be we require 
5.8.0 for mod_perl 2.0 and then these issues become non-issues anymore?

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to