You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Marc Schablewski <ma...@clickware.de> on 2001/05/09 13:00:04 UTC
Re: general/7641: Exception-handling does not work when writing an
apache-module in C++
The following reply was made to PR general/7641; it has been noted by GNATS.
From: Marc Schablewski <ma...@clickware.de>
To: marc@apache.org
Cc: apbugs@apache.org
Subject: Re: general/7641: Exception-handling does not work when writing an
apache-module in C++
Date: Wed, 09 May 2001 13:00:00 +0200
I still believe, that this could be a problem with apache.
I wrote a simple C main program (copiled with gcc, not g++)
that loads a C++ shared library. This library contains just a single
function that trows an exception an than catches it.
(source code available, if needed)
I can run this program and it works fine!
Regards, Marc
marc@apache.org wrote:
> State-Changed-From-To: open-closed
> State-Changed-By: marc
> State-Changed-When: Fri Apr 27 09:15:58 PDT 2001
> State-Changed-Why:
> Apache does nothing in particular to stop this from working; we have
> no idea why your system behaves this way nor what your particular
> compiler/libraries/etc. require to avoid this problem. The people
> that write your compiler are the ones who could tell you why this is
> happening, it isn't an issue with Apache per say.
Re: general/7641: Exception-handling does not work when writing an apache-module in C++
Posted by "William A. Rowe, Jr." <li...@rowe-clan.net>.
> The following reply was made to PR general/7641; it has been noted by GNATS.
>
> From: Marc Schablewski <ma...@clickware.de>
> To: marc@apache.org
> Cc: apbugs@apache.org
> Subject: Re: general/7641: Exception-handling does not work when writing an
> apache-module in C++
> Date: Wed, 09 May 2001 13:00:00 +0200
>
> I still believe, that this could be a problem with apache.
>
> I wrote a simple C main program (copiled with gcc, not g++)
> that loads a C++ shared library. This library contains just a single
> function that trows an exception an than catches it.
> (source code available, if needed)
That doesn't suprise me. try/catch semanitics aren't built into apache by
default. Change your cflags appropriately and try building the entire apache
with the appropriate switches, and I believe you will find it works.
Unfortunately, the try/catch semantics introduce additional overhead that
aren't warrented unless the module author (you) intends to use them, so Apache
is not built that way by default.
If you can document the appropriate gcc build changes required for try/catch
semantics, feel free to reply so we can document them.