|
Martin Sebor made changes - 16/Oct/07 04:39 PM
This is possibly related to the fix committed to resolve
Switching the order of std::exception dtor and std::exception::what() (i.e., back the way it was before rev 583667 (http://svn.apache.org/viewcvs?view=rev&rev=583667
terminate called after throwing an instance of 'std::out_of_range' While switching the order the std::exception virtual members either way (before rev 583667 and after) doesn't seem to cause any problems when linking the library, doing the same with std::bad::alloc dtor and std::bad::alloc::what() causes the following linker error when linking the shared library:
ld: multiple definitions of symbol __ZTVSt9bad_alloc and the following one when linking with an archive of it: /build/sebor/stdcxx-gcc-4.0.1-11s/lib/libstd11s.a(memory.o) definition of vtable for std::bad_allocin section (_DATA,_const)
Part of the problem is that we're defining classes that are defined in the language runtime library with no reliable way to detect their exact layout, including the order of their virtual member functions. We have tests that try to detect whether the member functions (virtual or otherwise) of these classes are defined in the runtime but the tests are less than 100% reliable. We also unconditionally declare all the members even though the runtime might be relying on the compiler to generate some of them (e.g., the ctors and assignment operator).
Martin Sebor made changes - 02/May/08 01:21 AM
Martin Sebor made changes - 02/May/08 01:26 AM
Let's revisit this in 4.2.2, if only to verify whether it's still a problem and decide if we can do something about it or not.
Martin Sebor made changes - 14/May/08 06:12 PM
I can verify it's still a problem, at least with gcc 4.0.1 on Darwin 9.3. Not sure what to do about it though.
Lowered Priority to Minor since gcc on Darwin is a Best Effort platform according to the TargetPlatforms
Martin Sebor made changes - 20/Jan/09 02:04 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
http://www.nabble.com/RE%3A-4.2.0-rc-6%2C-final-candidate-p13234984.html