[uClibc]exceptions crash using uclibc but not on glibc
Klaas van Gend
klaas.vangend at reduct.net
Tue May 20 12:06:22 UTC 2003
Hi everybody,
We've encountered a strange phenomenon when we compile the attached C++
code in the buildroot environment of March 6, 2003.
(note: the below indentation is mine to distinguish input and output)
Compilation:
g++ Source1.cpp -o test
And then run:
./test
The output:
Parameter a: 13
*** pre doTest()
Parameter a: 13
The shell then displays 'Aborted'. The test code has crashed.
Strangely enough, when I compile the same in a native SuSE 8.0
environment (gcc 2.95.3) using:
g++ Source1.cpp -o test80
And then run:
./test80
Parameter a: 13
*** pre doTest()
Parameter a: 13
*** in catch *** : 13
*** post doTest()
*** Main
This time, the program completes without any problems.
It seems that the throw is behaving badly -> the constructor of the
Test1 exception is run, but the catch is never executed, the program
dies before that.
Does anyone have any clues on what is happening here or how to work
around it ???
Thanks in advance,
Klaas van Gend
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Source1.cpp
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20030520/68dffa2f/attachment.diff
More information about the uClibc
mailing list