solaris x86 exception handling bug

dvermeir@tinf1.vub.ac.be dvermeir@tinf1.vub.ac.be
Wed Jan 13 08:44:00 GMT 1999


Hello,

There is a bug in egcs-1.1.1 for Solaris x86: in some (very simple)
cases an exception thrown from a shared library is not caught.
I enclose a minimal demo program (bug.tar extracts to bug/*):
it works on solaris sparc but not on solaris x86.

Replacing the single ``string'' data member in the class
by e.g. an integer also makes the program work.

Otherwise, egcs-1.1.1 installed beautifully and I managed
to port all my C++ programs to the solaris x86 environment
without a problem. All programs use shared libraries, templates and
apart from exception handling, everything works fine.

If there is a known fix for this problem, I would greatly
appreciate if you could refer me to it.

Thank you for a wonderful compiler.

Best regards,

dirk vermeir

Version:	egcs-2.91.60 (egcs-1.1.1)
Environemnt:	SunOS 5.7 Generic i86pc i386 i86pc

trace from ``make check'':

g++ -g -Wall -O2 -fPIC -fsjlj-exceptions    -c tdemo.C -o tdemo.o
g++ -g -Wall -O2 -fPIC -fsjlj-exceptions    -c demo.C -o demo.o
g++ -g -Wall -O2 -fPIC -fsjlj-exceptions    -c exception.C -o exception.o
g++ -shared -o libdemo.so demo.o exception.o
g++ -R. -o tdemo  tdemo.o libdemo.so
tdemo abc
Demo::Demo(): abc
make: *** [check] Segmentation Fault (core dumped)

-- 

-----------------------------------------------------------------------
Prof. D. Vermeir                        Tel.  +32 2 6293755
Dept. of Computer Science, DINF G/10    Fax.  +32 2 6293525
Free University of Brussels, VUB	
Pleinlaan 2                             http://tinf2.vub.ac.be/
B1050 Brussels, Belgium                 e-mail: dvermeir@vub.ac.be
-----------------------------------------------------------------------
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.tar
Type: application/x-tar
Size: 10240 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19990113/04e05156/attachment.tar>


More information about the Gcc-bugs mailing list