make check FAIL: qt/test/test_bitcoin-qt.exe WSL #22248

issue TheRebelOfBabylon opened this issue on June 15, 2021
  1. TheRebelOfBabylon commented at 3:52 AM on June 15, 2021: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    Expected behavior make check to run without errors

    <!--- What behavior did you expect? -->

    Actual behavior failed at qt/test/test_bitcoin-qt.exe

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    To reproduce

    Followed guide here after running make and sudo bash -c "echo 1 > /proc/sys/fs/binfmt_misc/status" I ran make check.

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    System information

    Running on WSL, Ubuntu 20.04.2, Edition Windows 10 Pro Version Dev Installed on ‎2021-‎05-‎31 OS build 21390.1010 Experience Windows 10 Feature Experience Pack 321.13302.10.3

    Working with latest version of master branch

    Info in src/test-suite.log

    A crash occurred in \\wsl.localhost\Ubuntu\usr\src\bitcoin\bitcoin\src\qt\test\test_bitcoin-qt.exe.
    Function time: 1414ms Total time: 1415ms
    
    Exception address: 0x00000000015cbb78
    Exception code   : 0xc0000005
    Nearby symbol    : secp256k1_schnorrsig_verify
    
    Stack:
    #  1: secp256k1_schnorrsig_verify() - 0x0000000001409760
    #  2: UnhandledExceptionFilter() - 0x00007ff828df12e0
    #  3: memset() - 0x00007ff82b5c9a00
    #  4: _C_specific_handler() - 0x00007ff82b5b34b0
    #  5: _chkstk() - 0x00007ff82b5c7b30
    #  6: RtlRestoreContext() - 0x00007ff82b555110
    #  7: KiUserExceptionDispatcher() - 0x00007ff82b5c6c40
    #  8: secp256k1_schnorrsig_verify() - 0x0000000001409760
    #  9: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 10: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 11: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 12: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 13: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 14: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 15: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 16: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 17: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 18: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 19: Unable to obtain symbol
    # 20: Unable to obtain symbol
    # 21: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 22: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 23: Unable to obtain symbol
    # 24: Unable to obtain symbol
    # 25: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 26: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 27: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 28: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 29: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 30: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 31: secp256k1_schnorrsig_verify() - 0x0000000001409760
    # 32: Unable to obtain symbol
    # 33: Unable to obtain symbol
    # 34: BaseThreadInitThunk() - 0x00007ff82a8f54d0
    # 35: RtlUserThreadStart() - 0x00007ff82b524830
    
    FAIL qt/test/test_bitcoin-qt.exe (exit status: 5)
    

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    <!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

  2. TheRebelOfBabylon added the label Bug on Jun 15, 2021
  3. fanquake added the label Windows on Jun 15, 2021
  4. ShubhamPalriwala commented at 9:10 AM on July 15, 2021: contributor

    @TheRebelOfBabylon Try to do a make clean and then remove the bitcoind directory(if it still exists)! Now do a make check and the tests should pass.

    Faced a similar error in Ubuntu 21.04, the above worked.

  5. hannahnewsome commented at 8:16 PM on August 24, 2021: none

    @TheRebelOfBabylon were you able to resolve this? I'm having the same problem on WSL Ubuntu 20.04.2 and haven't been able to fix it. I tried a make clean as suggested above, but it didn't solve the problem for me.

  6. TheRebelOfBabylon commented at 8:22 PM on August 24, 2021: none

    @hannahnewsome @ShubhamPalriwala Hey thanks for the comments. I was not able to resolve this and have no access to the machine I was using any longer.

  7. johnnypham commented at 6:00 AM on May 4, 2022: none

    Ran into this issue too. make check does not support WSL. https://github.com/bitcoin/bitcoin/issues/13207

  8. fanquake closed this on Aug 9, 2022

  9. willcl-ark commented at 2:19 PM on January 26, 2023: contributor

    FWIW make check does support WSL, but you must disable the gui tests like so:

    PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g')
    sudo bash -c "echo 0 > /proc/sys/fs/binfmt_misc/status"
    cd depends
    make -j`nproc` HOST=x86_64-w64-mingw32
    cd ..
    ./autogen.sh
    # new configure options here
    CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --enable-reduce-exports --disable-external-signer --disable-gui-tests --prefix=/
    make -j`nproc`
    sudo bash -c "echo 1 > /proc/sys/fs/binfmt_misc/status"
    
  10. johnnypham commented at 7:42 AM on February 13, 2023: none

    Disabling the gui tests works for me in WSL. Thanks!

  11. bitcoin locked this on Feb 13, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 03:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me