Red Hat Bugzilla – Bug 122035
AS2.1 Update 2 - Apache Aborts when handled exception thrown in shared module
Last modified: 2007-11-30 17:06:54 EST
From Bugzilla Helper:
User-Agent: Opera/7.23 (Windows NT 5.1; U) [en]
Description of problem:
We have an Apache module written in C++ that runs without problems on
AS2.1u1 but does not run correctly on AS2.1u2: it causes Apache to
abort. After investigating the problem it looks like the abort
occurs any time our module throws an exception - even if the
exception is thrown within a try/catch block that catches the
exception. If fact, a trivial test module was created that does
nothing but throw an exception within a try/catch block and this test
module also causes Apache to abort. A stack trace shows the abort
happening in the stdc++ function "throw_helper". We are using the
standard AS2.1u2 versions of everything as installed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a module that throws an exception within a try/catch block
in its' handler function.
2. configure apache to load and run the handler in response to a
3. Use a browser or wget to exercise the module's handler
Actual Results: Apache should abort when the program hits the throw
in the the handler
Expected Results: The throw should be caught.
We have a small test module that we can provide. It contains the
module, an apache config file, a Makefile, and a shell script that
will run the test.
Created attachment 99804 [details]
A module that will reproduce the problem
Hi, we can't seem to reproduce this using your test case on a RHEL2.1
AS Update 4 system.
# rpm -q apache libstdc++ gcc-c++
Is this still reproducible for you on a U4 system?