[Botan-devel] Troubleshooting LibraryInitializer exception

Muzaffar Mahkamov mahkamov at gmail.com
Tue Jun 27 02:37:05 EDT 2006


Hi Cory,

I little bit off topic but I managed to compile Botan in Borland C++
Builder (both in version 6 and 2006) with some modifications. I can
send you the project with all the files if you need.

Muzaffar

Tuesday, June 27, 2006, 3:56:08 AM, you wrote:

> Hi Jack,

> Thanks for the rapid response. The very first thing I tried was 
> commenting out that block. When I do so, another exception takes place
> in the function MemoryRegion.deallocate. I assumed this was a result of
> commenting out the self-test so I didn't mention it earlier.

> An unhandled exception of type 'System.NullReferenceException' occurred
> Additional information: Object reference not set to an instance of an 
> object.

> All the optimizations that I can find are already turned off. My system
> is pretty much an off-the-shelf Windows XP machine. 32-bit. Visual 
> Studio .NET 2003 Professional.

> I may not have built the libraries correctly. I am not terribly familiar
> with VC, as I usually use Borland. But I know Borland isn't likely to 
> compile Botan so I didn't try.
> I'll try a rebuilding the libraries from the start again.

> Jack Lloyd wrote:
>> Did you build the self-tests (`make check`)? Those will also invoke
>> the self-tests when it starts up, so if it's a problem in the library,
>> the self-test run will fail immediately (commenting out the block you
>> quoted below and rebuilding will skip the basic startup self-test and
>> allow the full test set to run, which will hopefully narrow down the
>> problem to a specific algorithm).
>>
>> Something to try that is quick and eliminates a lot of possibilities
>> is to rebuild the entire library with optimizations disabled. If the
>> tests pass then, things lean towards an optimizer bug.
>>
>> Anything unusual about your hardware/software platform? Processor pack
>> for VS, alternate compiler, 64-bit, anything of that nature?
>>
>> -Jack
>>
>> On Mon, Jun 26, 2006 at 04:17:09PM -0600, Cory Whitesell wrote:
>>   
>>> Hi,
>>>
>>> I am using Botan for the ANSI-X9.19 MACing algorithm in a VC .NET 2003 
>>> project. The library compiles just file, but at runtime, a exception is 
>>> thrown when initializing the library. The exception is thrown here in 
>>> init.cpp during initialization.
>>>
>>> if(!FIPS140::passes_self_tests())
>>>     {
>>>     deinitialize();
>>>     throw Self_Test_Failure("FIPS-140 startup tests");
>>>     }
>>>
>>> I am not passing any parameters to the LibraryInitializer constructor. 
>>> How should I go about troubleshooting the cause of this problem? Botan 
>>> version is 1.4.12
>>>
>>>
>>> _______________________________________________
>>> botan-devel mailing list
>>> botan-devel at randombit.net
>>> http://www.randombit.net/mailman/listinfo/botan-devel
>>>     
>> _______________________________________________
>> botan-devel mailing list
>> botan-devel at randombit.net
>> http://www.randombit.net/mailman/listinfo/botan-devel
>>
>>
>>
>>   



> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://www.randombit.net/mailman/listinfo/botan-devel


-- 
Best regards,
 Muzaffar                            mailto:mahkamov at gmail.com




More information about the botan-devel mailing list