Re: Segfault with Apache::Request->param method

[prev] [thread] [next] [Date index for 2004/12/06]

From: Chris Brown
Subject: Re: Segfault with Apache::Request->param method
Date: 14:05 on 06 Dec 2004
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I found the problem actually. My common module has an AUTOLOAD that
allows me to say $common-&gt;foo instead of $common-&gt;{foo}. I pass
my Apache::Request ($apr) object around in this common object,
retreiving $apr by calling $common-&gt;apr and then calling param()
causes the crash. I guess the return values of these AUTOLOADed
functions are cached? Anyway, using $common-&gt;{apr} made it work.<br>
<br>
Thanks for the response :)<br>
<br>
Chris<br>
<br>
Sam Tregar wrote:
<blockquote
 cite="midPine.LNX.4.61.0412032003090.5095@xxxxxxxx.xxxxxxxxx.xxx"
 type="cite">
  <pre wrap="">On Thu, 2 Dec 2004, Chris Brown wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Right now I'm running Apache 1.3.31 with mod_perl 1.29. Perl is 5.8.3 on
Fedora FC1
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Well, I don't know anything about your specific problem but judging by
the lack of responses neither does anyone else.  So here's what I'd
do:

  - Download the latest Perl, 5.8.6.

  - Compile it without thread support.  Thread support is still pretty
    rough and it slows down your Perl anyway.

  - Re-compile Apache/mod_perl.  Make sure you've got mod_perl
    compiled in static, not loaded as a DSO.  DSO and mod_perl are
    famous for seg-faulting.

  - Recompile Apache::Registry and any other non pure-Perl modules you
    might be using.

  - Say your prayers and give it a try!

-sam


  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Chris Brown
System Administrator
Wavetex Inc.
903-597-7566	<a class="moz-txt-link-freetext" href="http://wavetex.com/">http://wavetex.com/</a>;
</pre>
</body>
</html>

        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Segfault with Apache::Request->param method
Chris Brown 21:36 on 02 Dec 2004

Re: Segfault with Apache::Request->param method
Chris Brown 14:05 on 06 Dec 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52