This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug in exceptionhandling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]