[Botan-devel] Botan 64-bit on Solaris

Jack Lloyd lloyd at randombit.net
Wed Dec 17 21:17:15 EST 2008

On Wed, Dec 17, 2008 at 11:30:00AM +0100, Rickard Bondesson wrote:
> Hmm it does not work...
> When I try to create a RSA_PrivateKey, I get a segmentation fault.
> 00000000002f1a8d ???????? ()
> fffffd7ffee329d9 _SUNW_Unwind_RaiseException () + 46
> fffffd7ffe7bc71e __cxa_throw () + 5e
> fffffd7ffe9ae406 _ZNK5Botan11Private_Key10load_checkERNS_21RandomNumberGeneratorE () + 146
> fffffd7ffe968267 _ZN5Botan20IF_Scheme_PrivateKey15PKCS8_load_hookERNS_21RandomNumberGeneratorEb () + af7
> fffffd7ffe9dabd3 _ZN5Botan14RSA_PrivateKeyC1ERNS_21RandomNumberGeneratorERKNS_6BigIntES5_S5_S5_S5_ () + 4e3
> fffffd7ffed03b63 _ZN12SoftDatabase11populateObjEi () + 88d
> Is it because check_key want to use SHA-1 to verify the key?

No. check_key is only checking that mathematically the key makes sense
and that the values are consistent.

A segmentation fault occuring inside __cxa_throw strongly suggests
that the exception handling mechanism itself became corrupted somehow.

(You are running this code in a try/catch block, I assume?)

> And that I have disabled the sha1_amd64 module?

No. This should not matter at all, because there is (at least) the C++
implementation, which is functionally equivalent to the x86-64 asm if
perhaps slightly slower (or slightly faster, depending on the


More information about the botan-devel mailing list