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

Re: Trouble with PERLIO_INIT/PERLIO_TERM changes

Thread Previous | Thread Next
Jarkko Hietaniemi
November 29, 2006 10:02
Re: Trouble with PERLIO_INIT/PERLIO_TERM changes
Message ID:
> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About