[botan-devel] RTTI problems with Botan

Timothy Prepscius timprepscius at gmail.com
Tue Oct 16 19:49:10 EDT 2012


I am interested in this too.  Could you post the details on this news group as well.

btw, jack, is your mail server's certificate self generated?  somehow my mail server is complaining your mail server's certificate can't be verified.


Thanks,

-tim

On Oct 16, 2012, at 12:06 PM, Jack Lloyd wrote:

> Hi Christian,
> 
> Wow, what version of OS X / XCode is this? I thought this lack of
> type_info merging was only an issue back in the ancient (GCC 2.95 or
> so) days, I had no idea this was an issue on any remotely modern
> system. Can you file a ticket (bugs.randombit.net) with the full
> details (all relevant versions, a testcase, etc)?
> 
> Thanks
> Jack
> 
> On Tue, Oct 16, 2012 at 05:42:21PM +0200, Christian Kandeler wrote:
>> Hi,
>> 
>> as a Botan user, I have been bitten recently by the problem described here:
>>     http://marcmutz.wordpress.com/2010/08/04/fun-with-exceptions/
>> The class declaration pattern shown in the link matches how Botan 
>> defines pretty much all of its exceptions and quite a number of other 
>> classes as well. As a result,
>>     a) my client code cannot catch exceptions thrown out of Botan and
>>     b) dynamic_casts in Botan fail for objects allocated in client code.
>> The results are disastrous, as one can imagine.
>> While I realize that this problem is probably due to rather poor 
>> compiler/linker behavior, it is the current state e.g. on MacOs, where I 
>> am observing the failures mentioned above. I therefore suggest adding 
>> non-inline destructors to all exported polymorphic classes to be on the 
>> safe side.
>> 
>> 
>> Regards,
>> Christian
>> _______________________________________________
>> botan-devel mailing list
>> botan-devel at randombit.net
>> http://lists.randombit.net/mailman/listinfo/botan-devel
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel
> 




More information about the botan-devel mailing list