Re: mod_perl causing seg faults in apache2?

[prev] [thread] [next] [Date index for 2005/05/17]

From: Stas Bekman
Subject: Re: mod_perl causing seg faults in apache2?
Date: 21:53 on 17 May 2005
Grant wrote:
[...]
>>>A weird thing:  I'm getting those same bareword errors in error_log
>>>but I haven't even updated Interchange::Link yet.  That module doesn't
>>>say "Apache2::Const:OK" anywhere in it and I'm still getting the same
>>>error.
>>
>>That means that you
>>- either still have pre-mp2-RC5 Apache2/Const somewhere.
>>- or the code that uses it didn't compile that constant. i.e., you (or
>>whoever wrote it) didn't do:
>>
>>   use Apache2::Const -compile => 'OK';
>>
>>before using it.
> 
> 
> I replaced:
> 
> use Apache::Const;
> 
> with:
> 
> use Apache2::Const -compile => 'OK';
> 
> in Link.pm with the same results.  How can I find out if I have an old
> Apache2/Const?  I definitely only have these on the system:
> 
> /usr/lib/perl5/vendor_perl/5.8.5/i686-linux/auto/Apache2/Const
> /usr/lib/perl5/vendor_perl/5.8.5/i686-linux/auto/Apache2/Const/Const.so
> /usr/lib/perl5/vendor_perl/5.8.5/i686-linux/auto/Apache2/Const/Const.bs
> /usr/lib/perl5/vendor_perl/5.8.5/i686-linux/Apache2/Const.pm

May be you aren't loading it, while you think that you do. Please observe:

% perl -le 'use warnings; use strict; use Apache2::Const; \
sub foo {return Apache2::Const::OK }'

% perl -le 'use warnings; use strict; \
sub foo {return Apache2::Const::OK }'
Bareword "Apache2::Const::OK" not allowed while "strict subs" in use at -e 
line 1.
Execution of -e aborted due to compilation errors.

Try:

warn $INC{'Apache2/Const.pm'}

somewhere in your code. It should show you the file that was loaded.

If everything else fails, if you can use the problem reporting skeleton 
[1] and reproduce the problem with it (adjusting it by adding some minimal 
code). Please send it here and we will look at it).

[1] linked from: 
http://perl.apache.org/docs/2.0/user/help/help.html#Problem_Description

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

(message missing)

Re: mod_perl causing seg faults in apache2?
Malcolm J Harwood 19:41 on 12 May 2005

Re: mod_perl causing seg faults in apache2?
Perrin Harkins 04:02 on 13 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 05:10 on 13 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 16:19 on 13 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 17:07 on 13 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 21:15 on 13 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 23:52 on 13 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 23:51 on 13 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 17:06 on 16 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 03:01 on 17 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 16:42 on 17 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 21:22 on 17 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 19:56 on 17 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 21:21 on 17 May 2005

Re: mod_perl causing seg faults in apache2?
Stas Bekman 21:53 on 17 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52