This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug in exceptionhandling
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Bug in exceptionhandling
- From: Holle <machens at ngi dot de>
- Date: Tue, 02 May 2000 16:51:41 +0200
- Reply-To: machens at ngi dot de
Hi,
it seems to be a bug in the C++-exception-handling.
When using dynamic allocated memory in the baseclass of an exception
and the call stack is deeper than two functioncalls, you get an
segmentation fault if the exception is freed by leaving the
scope of the catch-block ( see excamle).
You will find an example in the attached file "ex.cc.gz".
Used compiler: egcs 2.95.2
Machines: LinuxPC Suse6.3 P3-700MHz, 128MB
LinuxPC Suse6.4 P3-???MHz
command arguments: c++ -o ex ex.cc
configure operants: --prefix=/opt/gcc/2.95.2
ex.cc.gz