Skip to content

Syscall Sandbox Termination #24536

Closed

Description

@Rspigler

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.

Activity

  1. added this to the 23.0 milestone on Mar 13, 2022
  2. fanquake commented on Mar 24, 2022

    @fanquake
    Member

    @Rspigler want to test #24659 ?

  3. hebasto commented on Mar 26, 2022

    @hebasto
    Member

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

    $ ./src/qt/bitcoin-qt -signet -sandbox=log-and-abort
    Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
    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 (core dumped)
    
  4. Rspigler commented on Mar 28, 2022

    @Rspigler
    ContributorAuthor

    #24659 Fixes this, will close when merged

  5. locked and limited conversation to collaborators on Mar 28, 2023
  6. added a commit that references this issue on Apr 10, 2024
    dc0ba8c
  7. added a commit that references this issue on Jun 28, 2026
    e92981c
  8. added a commit that references this issue on Jun 30, 2026
    97fb9b4
  9. added a commit that references this issue on Aug 19, 2026
    7ced9e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions