From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408
Description of problem:
Throwing user-defined exception causes segfault.
Version-Release number of selected component (if applicable): 2.96-98
Steps to Reproduce:
1. Unpack attached example and cd into directory.
3. make unitTest
Actual Results: Prints:
Program received signal SIGSEGV, Segmentation fault.
0x400bb459 in __cp_pop_exception (p=0x400bb38c) from
Expected Results: Shoud print:
Error Thrown: 1
By "always reproducible, I mean with the attached code, not with any code.
The attached example contains a fairly large amount of code. The execution path
is actually quite short, however this bug seems to be highly location-dependent.
Deleting any of the other object files that are included causes the bug to not
The problem occurs with gcc-c++-2.96-98. The Valhalla compiler gcc-c++-2.96-110
does not exhibit the problem on this code, however I did not see any indication
that a problem like this was fixed. gcc-2.95.3 also does not exhibit the
problem. It is possible that other differences in these compilers move things
around so that the bug is simply not exercised.
Created attachment 57024 [details]
Example code illustrating bug
Verified ok with 3.2 on 8.0