[Botan-devel] Troubleshooting LibraryInitializer exception

Jack Lloyd lloyd at randombit.net
Mon Jun 26 19:14:19 EDT 2006


System.NullReferenceException makes me suspicious - did you build
Botan as managed code? I'm not sure that that is going to be a
problem/the problem (actually, I've never tried doing it - probably
should), but, as that statement makes clear, it's not exactly a
well-supported option, either. -J

On Mon, Jun 26, 2006 at 04:56:08PM -0600, Cory Whitesell 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



More information about the botan-devel mailing list