Bug 57232 - mod_python 2.7.6 segfaults in the cleanup handler
mod_python 2.7.6 segfaults in the cleanup handler
Product: Red Hat Linux
Classification: Retired
Component: mod_python (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Depends On:
  Show dependency treegraph
Reported: 2001-12-07 10:47 EST by Mihai Ibanescu
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-03-06 12:50:36 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
COnfiguration file to be appended to httpd.conf (Include conf/crash.conf) (276 bytes, text/plain)
2001-12-07 10:53 EST, Mihai Ibanescu
no flags Details
mod_python handlers (referred from crash.conf) (461 bytes, text/plain)
2001-12-07 10:54 EST, Mihai Ibanescu
no flags Details
Patch that fixes the problem (1.71 KB, patch)
2002-03-06 12:50 EST, Cristian Gafton
no flags Details | Diff

  None (edit)
Description Mihai Ibanescu 2001-12-07 10:47:59 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120

Description of problem:
Somewhere between mod_python 2.7.3 and 2.7.6 they introduced something that
broke the cleanup handler. Red Hat 7.2 ships 2.7.6.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Create a mod_python handler
2. Watch it work OK without the cleanup handler defined, and segfaulting
with a defined cleanup handler

Actual Results:  Apache segfaults.
Since the cleanup handler is executed upon cleanup, the result is not
visible to the client, since the request is correctly served. But the httpd
process segfaults (tail -f /var/log/httpd/error.log)

Additional info:

IIRC every version after 2.7.4 has this problem.
Browsing the CVS rep doesn't show me anything strange added between 2.7.3
and 2.7.4.
I have to doublecheck if 2.7.4 is indeed the first version with the
problem. 2.7.6 which ships with Red Hat is definitely broken.
Comment 1 Mihai Ibanescu 2001-12-07 10:53:12 EST
Created attachment 40047 [details]
COnfiguration file to be appended to httpd.conf (Include conf/crash.conf)
Comment 2 Mihai Ibanescu 2001-12-07 10:54:18 EST
Created attachment 40048 [details]
mod_python handlers (referred from crash.conf)
Comment 3 Mihai Ibanescu 2001-12-07 10:56:04 EST
Attached the configuration file and the mod_python handler.
To test this, point a browser to http://yourmachine.org/fisk

You should see something on the screen, but /var/log/httpd/error.log would show
httpd segfaulted
Comment 4 Cristian Gafton 2002-03-06 12:50:06 EST
Created attachment 47622 [details]
Patch that fixes the problem
Comment 5 Cristian Gafton 2002-03-06 12:50:31 EST
asigned to nalin
Comment 6 Nalin Dahyabhai 2002-04-22 12:20:58 EDT
Incorporated into 2.7.6-5 and later.  Please also make sure the modpython.org
folks get the patch.

Note You need to log in before you can comment on or make changes to this bug.