Menu

#807 Botan unusable when built with 8.1 SEH

v1.0 (example)
open
nobody
None
5
2019-07-26
2019-07-21
No

Steps to reproduce:
Download Botan 2.10.0 from https://github.com/randombit/botan/releases
Configure with: python configure.py --cc=gcc --os=mingw
Build with mingw32-make
Run "botan-test.exe"

With 7.3 SEH, this works perfectly, all tests pass.
With 8.1 SEH, the executable crashes during init:

echo %ERRORLEVEL%
-1073741819

Which is equivalent to C0000005 (access violation).

Confirmed by GDB:

Thread 1 received signal SIGSEGV, Segmentation fault.
0x0000000000b5b70c in __static_initialization_and_destruction_0(int, int) [clone .constprop.101] ()

I am not sure if the problem is in Botan or MinGW64, but since it works with 7.3 and not with 8.1, I thought it makes sense to report it here first.

Related

Bugs: #807

Discussion

  • Kai Tietz

    Kai Tietz - 2019-07-23

    Hi,

    this issue is most like a g++ issue. I assume that destructor code in
    g++ is done in 8.1 version pretty much for sysv-abi only, and
    therefore has issues on ms-abi. Of interest is here to isolate the
    issue to a small (<100 lines of code) test case. As nobody (not even
    we will download a big project, build it, and then try to reproduce.
    Btw is LTO used here on built? you could play with building with
    different optimization levels, or providing a more complete stack
    trace for it. Eg by using gdb, you could use 'gdb --args
    botan-test.exe' to get via the bt command after the segfault

    Regards,
    Kai

    Am So., 21. Juli 2019 um 23:42 Uhr schrieb Olivier Croquette
    ocroquette@users.sourceforge.net:


    [bugs:#807] Botan unusable when built with 8.1 SEH

    Status: open
    Group: v1.0 (example)
    Created: Sun Jul 21, 2019 09:42 PM UTC by Olivier Croquette
    Last Updated: Sun Jul 21, 2019 09:42 PM UTC
    Owner: nobody

    Steps to reproduce:
    Download Botan 2.10.0 from https://github.com/randombit/botan/releases
    Configure with: python configure.py --cc=gcc --os=mingw
    Build with mingw32-make
    Run "botan-test.exe"

    With 7.3 SEH, this works perfectly, all tests pass.
    With 8.1 SEH, the executable crashes during init:

    echo %ERRORLEVEL%
    -1073741819

    Which is equivalent to C0000005 (access violation).

    Confirmed by GDB:

    Thread 1 received signal SIGSEGV, Segmentation fault.
    0x0000000000b5b70c in __static_initialization_and_destruction_0(int, int) [clone .constprop.101] ()

    I am not sure if the problem is in Botan or MinGW64, but since it works with 7.3 and not with 8.1, I thought it makes sense to report it here first.


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mingw-w64/bugs/807/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #807

  • Olivier Croquette

    Thank you for your support. I don't think LTO is used. For now, we will just stick to build Botan with MinGW 7.x. then.

     

Log in to post a comment.