https://issues.apache.org/bugzilla/show_bug.cgi?id=56290

--- Comment #3 from Massimo Manghi <mxman...@apache.org> ---
I think this problem has surfaced because starting with rivet 2.1.4 the pointer
to a request_rec (passed to TclWeb_GetEnvVar) is reset when the a request
processing is about to finish. My understanding is that the pointer to a
request_rec structure is meaningful only when a request is being processed. A
child exit procedure runs outside a request processing context thus this
pointer is not set, hence the segfault.

If my assumption is correct then command env shouldn't return any meaningful
data outside the context for which it was created. Before 2.1.4 the pointer to
request_rec in the module's global data structure was probably still storing
some pointer to the request_rec of the last request processed by the time the
Child exit procedure is run. 

The poor analysis that didn't bring up this issue is my fault. I think that we
should decide what env has to return outside of a request and handle the case
of an invalid request_rec argument

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to