Syscall Sandbox Termination #24536

issue Rspigler openend this issue on March 11, 2022
  1. Rspigler commented at 4:49 pm on March 11, 2022: contributor

    I was testing v23.0rc2 compiled.

    ./configure --without-miniupnpc --without-natpmp --enable-hardening --without-bdb --with-qrencode --with-zmq --with-sqlite=yes --disable-external-signer

    bitcoin.conf:

    assumevalid=0 blockfilterindex=1 coinstatsindex=1 dbcache=1000 prune=0 sandbox=log-and-abort txindex=1 cjdnsreachable=1 discover=1 i2psam=127.0.0.1:7656 listen=1 listenonion=1 networkactive=1 peerblockfilters=1 proxy=127.0.0.1:9050 addresstype=bech32m avoidpartialspends=1 changetype=bech32m maxapsfee=0.001 walletrbf=1 shrinkdebugfile=1

    I deleted my data directory (/home/user/.bitcoin) to start a fresh download of the blockchain to test any errors. Ran out of space, and after deleting more and trying to start bitcoin-qt again:

    ERROR: The syscall “linkat” (syscall number 265) is not allowed by the syscall sandbox in thread “main”. Please report. terminate called without an active exception Aborted

    and in debug.log:

    2022-03-11T13:00:02Z init message: Verifying blocks… 2022-03-11T13:00:02Z Verifying last 6 blocks at level 3 2022-03-11T13:00:02Z [0%]…[16%]…[33%]…[50%]…[66%]…[83%]…[99%]…[DONE]. 2022-03-11T13:00:02Z No coin database inconsistencies in last 6 blocks (2938 transactions) 2022-03-11T13:00:02Z block index 4963ms 2022-03-11T13:00:02Z Opening LevelDB in /home/user/.bitcoin/indexes/txindex 2022-03-11T13:00:02Z Opened LevelDB successfully 2022-03-11T13:00:02Z Using obfuscation key for /home/user/.bitcoin/indexes/txindex: 0000000000000000 2022-03-11T13:00:02Z Opening LevelDB in /home/user/.bitcoin/indexes/blockfilter/basic/db 2022-03-11T13:00:02Z txindex thread start 2022-03-11T13:00:02Z txindex is enabled at height 326934 2022-03-11T13:00:02Z txindex thread exit 2022-03-11T13:00:02Z Opened LevelDB successfully 2022-03-11T13:00:02Z Using obfuscation key for /home/user/.bitcoin/indexes/blockfilter/basic/db: 0000000000000000 2022-03-11T13:00:02Z Opening LevelDB in /home/user/.bitcoin/indexes/coinstats/db 2022-03-11T13:00:02Z basic block filter index thread start 2022-03-11T13:00:02Z basic block filter index is enabled at height 326934 2022-03-11T13:00:02Z basic block filter index thread exit 2022-03-11T13:00:02Z Opened LevelDB successfully 2022-03-11T13:00:02Z Using obfuscation key for /home/user/.bitcoin/indexes/coinstats/db: 0000000000000000 2022-03-11T13:00:02Z ERROR: Init: Cannot read current coinstatsindex state; index may be corrupted 2022-03-11T13:00:02Z Shutdown: In progress… 2022-03-11T13:00:02Z scheduler thread exit 2022-03-11T13:00:02Z Shutdown: done 2022-03-11T13:00:02Z ERROR: The syscall “linkat” (syscall number 265) is not allowed by the syscall sandbox in thread “main”. Please report.

    This was done on a Qubes 4.0 machine in a Debian 11 VM.

  2. Rspigler added the label Bug on Mar 11, 2022
  3. fanquake added this to the milestone 23.0 on Mar 13, 2022
  4. fanquake added the label Linux/Unix on Mar 13, 2022
  5. fanquake commented at 11:51 am on March 24, 2022: member
    @Rspigler want to test #24659 ?
  6. hebasto commented at 9:43 am on March 26, 2022: member

    Confirming the bug for the current master (2f0f056e08cd5a1435120592a9ecd212fcdb915b) and for the 23.0rc2 on Ubuntu 22.04 during quitting from the GUI:

    0$ ./src/qt/bitcoin-qt -signet -sandbox=log-and-abort
    1Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
    2ERROR: The syscall "linkat" (syscall number 265) is not allowed by the syscall sandbox in thread "main". Please report.
    3terminate called without an active exception
    4Aborted (core dumped)
    
  7. Rspigler commented at 4:55 am on March 28, 2022: contributor
    #24659 Fixes this, will close when merged
  8. MarcoFalke closed this on Mar 28, 2022

  9. sidhujag referenced this in commit c2d3886e0f on Apr 2, 2022
  10. DrahtBot locked this on Mar 28, 2023


Rspigler fanquake hebasto

Labels
Bug Linux/Unix

Milestone
23.0


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: 2024-12-21 15:12 UTC

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