develooper Front page | perl.perl5.porters | Postings from November 2006

Re: Trouble with PERLIO_INIT/PERLIO_TERM changes

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
November 29, 2006 10:02
Subject:
Re: Trouble with PERLIO_INIT/PERLIO_TERM changes
Message ID:
456DCAB0.9040104@iki.fi
> No shared streams here, I'm afraid. The shared file open business just
> lets you control whether or not other processes can also read and/or
> write a file that you've just opened. Sort of like flock(), only
> mandatory rather than advisory.
>
> And in my reply to Yves I showed exactly the same problem crops
> up with plain old fopen() too.
>
> So presumably something is wrong somewhere in PerlIO-land that causes
> the refcnt to be decremented too far, and this new croak() is simply
> revealing a bug that has probably been there since the year dot?

Possibly.  Something is causing the refcnt to become out of sync.
Have you tried setting $ENV{PERLIO_DEBUG} to point to a file?
(The file will be overwritten with PerlIO's internal mumblings.)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About