[Botan-devel] Re: LibraryInitializer problem in Win32

Yan Shpilsky yshpilsk at stevens.edu
Sat Oct 20 20:56:43 EDT 2007


Hi,
I have additional info regarding the problem when compiling my program 
in VC8.

I added output to the status of an exception in a try/catch block using 
this code:
  try{
  	LibraryInitializer init;
  }
  catch( const std::exception& r_e ) {
  	printf("std exception caught: %s\ntypename: %s\n", r_e.what(), 
typeid(r_e).name());
  }

The output is:
std exception caught: Botan: PRNG not seeded: Unable to collect 
sufficient entropy
typename: struct Botan::PRNG_Unseeded

I am not sure what that means, but perhaps you could help, as the same 
code works under Solaris and Linux. Thanks.
Yan


botan-devel-request at randombit.net wrote:


>Send botan-devel mailing list submissions to
>	botan-devel at randombit.net
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	http://www.randombit.net/mailman/listinfo/botan-devel
>or, via email, send a message with subject or body 'help' to
>	botan-devel-request at randombit.net
>
>You can reach the person managing the list at
>	botan-devel-owner at randombit.net
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of botan-devel digest..."
>
>
>Today's Topics:
>
>   1. LibraryInitializer problem in Win32 (Yan Shpilsky)
>   2. Re: LibraryInitializer problem in Win32 (Jack Lloyd)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Sat, 20 Oct 2007 10:31:33 -0400 (EDT)
>From: Yan Shpilsky <yshpilsk at stevens.edu>
>Subject: [Botan-devel] LibraryInitializer problem in Win32
>To: botan-devel at randombit.net
>Message-ID: <4167991.1192890693832.JavaMail.yshpilsk at stevens.edu>
>Content-Type: text/plain; charset=UTF-8
>
>Hello,
>
>Thanks again to Jack Lloyd for providing a working patch for the Sun 
>compiler build.
>
>The application I was working on executes perfectly on Solaris and 
>Linux using SUNWspro and g++, respectively. Now that I am porting it to 
>Windows, however, I am having problems executing the same Botan code.
>
>I compiled the Windows version using Visual C++ 8, and the build had no 
>issues. The program seems to execute exactly in the same way as it did 
>in the POSIX platforms, but as soon as it reaches the Botan library 
>initializer, I receive a strange message during runtime:
>
>This application has requested the Runtime to terminate it in an 
>unusual way.
>Please contact the application's support team for more information.
>
>I have noted that this occurs on the line:
>LibraryInitializer init;
>
>I have also tried Botan::LibraryInitializer init; and have had the same 
>result.
>
>Has anyone experienced this issue before when using Visual C++? I have 
>looked around for causes of this, and this message seems to be a known 
>occurrence when using various versions of Visual C++.
>I have tried the several solutions I have found that others have noted 
>including uninstalling Google Toolbar and applying the appropriate 
>Microsoft hotfix (support.microsoft.com/kb/884538).
>Nothing seems to be changing.
>
>I'm sure it's something simple, or maybe something that I overlooked, 
>but if I can't fix this issue I may have to resort to an unsupported 
>compiler and try my luck.
>
>Any help is appreciated.
>Regards,
>Yan
>
>
>------------------------------
>
>Message: 2
>Date: Sat, 20 Oct 2007 11:26:46 -0400
>From: Jack Lloyd <lloyd at randombit.net>
>Subject: Re: [Botan-devel] LibraryInitializer problem in Win32
>To: Botan development list <botan-devel at randombit.net>
>Message-ID: <20071020152646.GB19584 at randombit.net>
>Content-Type: text/plain; charset=us-ascii
>
>Yan,
>
>To be honest I have never seen this error either with Botan or any
>other VC compiled program so I'm somewhat in the dark. But:
>
> - How did you compile Botan w VC8? ./configure.pl && nmake, or
>   through a workspace.
> - What options did you pass to configure.pl if any?
> - Did you compile the test application? Did it run OK?
> - Can you get a backtrace or anything via a debugger?
> - What OS? Vista? XP? This may be important.
>
>-Jack
>
>On Sat, Oct 20, 2007 at 10:31:33AM -0400, Yan Shpilsky wrote:
>> Hello,
>> 
>> Thanks again to Jack Lloyd for providing a working patch for the Sun 
>> compiler build.
>> 
>> The application I was working on executes perfectly on Solaris and 
>> Linux using SUNWspro and g++, respectively. Now that I am porting it 
to 
>> Windows, however, I am having problems executing the same Botan code.
>> 
>> I compiled the Windows version using Visual C++ 8, and the build had 
no 
>> issues. The program seems to execute exactly in the same way as it did 
>> in the POSIX platforms, but as soon as it reaches the Botan library 
>> initializer, I receive a strange message during runtime:
>> 
>> This application has requested the Runtime to terminate it in an 
>> unusual way.
>> Please contact the application's support team for more information.
>> 
>> I have noted that this occurs on the line:
>> LibraryInitializer init;
>> 
>> I have also tried Botan::LibraryInitializer init; and have had the 
same 
>> result.
>> 
>> Has anyone experienced this issue before when using Visual C++? I have 
>> looked around for causes of this, and this message seems to be a known 
>> occurrence when using various versions of Visual C++.
>> I have tried the several solutions I have found that others have noted 
>> including uninstalling Google Toolbar and applying the appropriate 
>> Microsoft hotfix (support.microsoft.com/kb/884538).
>> Nothing seems to be changing.
>> 
>> I'm sure it's something simple, or maybe something that I overlooked, 
>> but if I can't fix this issue I may have to resort to an unsupported 
>> compiler and try my luck.
>> 
>> Any help is appreciated.
>> Regards,
>> Yan
>> _______________________________________________
>> 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
>
>
>End of botan-devel Digest, Vol 34, Issue 4
>******************************************
>



More information about the botan-devel mailing list