PROBLEM SOLVED.

the values for $req_rec in the page and in the subs started out the
same and then shifted after a period of time.

I now pass in the $req_rec from the page to the subroutines and no
more segfaulting.

Thanks for the help.

Is this a problem that you are going to correct with your code?  If not,
a gotcha in the documentation is warranted.

Are there any related gotcha's that I should be aware of based upon the
subroutine technique I am using?

On another note - I install my site enmasse then restart apache so the mtime
parameter
should not be a factor when I execute the subroutine package.

Thanks for the help!
cliff rayman
genwax.com



Gerald Richter wrote:

> > at the top of every page I have the following:
> >
> > [- Execute({inputfile => '/usr/local/apache/share/GWCe.htm',
> > mtime => 1, import
> > => 1}); -]
>
> Using the mtime parameters together with an file may lead to problems, when
> the file changes, while the httpd is running, but this is another story and
> not the problem we are searching for...
>
> > [- ordpag(); exit if $GWCe::xitflg; -]
> >
>
> I would like to see if $$req_rec (note the two $$), has the same value in
> the page and in your subs. Could you add something like
>
> warn "req_rec=$$req_rec" inside your script and inside the subs, then, when
> the Segfault occurs, look in the Apache error log if the value has changed
> between the page and the sub.
>
> > I was thinking that one way out of this problem would be to put
> > the following at the top of every page:
> > [- Execute({inputfile => '/usr/local/apache/share/GWCe.htm',
> > mtime => 1, import
> > => 1}); -]
> > [- ordpag($req_rec); exit if $GWCe::xitflg; -]
> >
>
> This may solve your problem, you can give it a try.
>
> Gerald

Reply via email to