[botan-devel] Cygwin failure creating initialization vector
William K. Foster
wkf at alum.mit.edu
Mon Feb 21 12:23:50 EST 2011
I lowered the size down to 16 and it still fails.
I added a try catch block around the code, and no exception is caught.
I changed the code to what you show below, and the failure occurs inside the
I also tried size 1 and it also fails the same way.
Finally, I moved the code to the beginning of main() and it works fine. So
something is going wrong elsewhere that causes this to fail later. How can
we track this down best?
On Mon, Feb 21, 2011 at 7:32 AM, Jack Lloyd <lloyd at randombit.net> wrote:
> Does it fail for a smaller value of size?
> Does the program terminate, or hang/infinite loop, or ... ?
> Does this code execute inside of a try/catch block? Some C++ runtimes,
> including older versions of GCC's, will just silent abort in the case
> of an uncaught exception. That would potentionally also explain the
> bogus stack trace.
> This constructor is actually only two lines of code, so could
> you also try this program:
> Botan::AutoSeeded_RNG _rng;
> unsigned int size = 1452;
> Botan::SecureVector<Botan::byte> iv_val(size);
> _rng.randomize(&iv_val, size);
> With printfs or some such in between, so see where exactly it fails;
> this may help narrow down the problem a bit.
> On Sun, Feb 20, 2011 at 06:51:22PM -0800, William K. Foster wrote:
> > Hello,
> > I have Cygwin building now, but when executing it fails on the last
> > constructor:
> > Botan::AutoSeeded_RNG _rng;
> > unsigned int size = 1452;
> > Botan::InitializationVector iv(_rng, size);
> > For some reason, I don't get any error message, and trying to attach with
> > GDB gives a bogus stack trace. The program just stops execution at this
> > point with no message.
> > The Cygwin environment is not working as well as my Centos one, but the
> > works fine up until this point of the InitializationVector constructor.
> > How might I go about debugging why this fails here?
> > Thanks.
> > -William
> > _______________________________________________
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the botan-devel