On Tue, Dec 17, 2013, Florian Weimer wrote:

> >Current language:  auto; currently asm
> >(gdb) p $rsp
> >$15 = (void *) 0x8007360a0

> Actually, it doesn'ton function entry, %rsp must be congruent 8 modulo 16.

Thanks for the clarification, I misunderstood "16-byte stack alignment."

The problem seems to be in the statethreads library:

  /* Make stack 64-byte aligned */
  if ((unsigned long)sp & 0x3f)
    sp = sp - ((unsigned long)sp & 0x3f);

After I hacked this (subtracting 8) the program doesn't crash
anymore.  I'm taking this to the statethreads mailing list.

Thanks for all the information/help!

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to