PerlIO_teardown() calls PerlIO_debug(), which doesn't take an aTHX
argument, but assumes the TLS still points to a valid interpreter (it
contains a dTHX macro call). This seems like a bad assumption to me;
calling PERL_SYS_TERM before all interpreters have been destroyed is
a bug. Therefore I think
Dave Mitchell wrote:
> On Fri, Oct 26, 2007 at 02:57:01PM +0200, Dintelmann, Peter wrote:
>> mod_perl.c: In function `modperl_sys_term':
>> mod_perl.c:599: error: `my_perl' undeclared (first use in this function)
> ...
>> The referenced line 599 in mod_perl.c reads
>>
>> $ perl -nle 'print if $.==5
On Fri, Oct 26, 2007 at 02:57:01PM +0200, Dintelmann, Peter wrote:
> mod_perl.c: In function `modperl_sys_term':
> mod_perl.c:599: error: `my_perl' undeclared (first use in this function)
...
> The referenced line 599 in mod_perl.c reads
>
> $ perl -nle 'print if $.==599' src/modules/perl/mod_perl