You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug looks like the one reported and described in #33387 (comment).
I think it is probably not a new issue. Or at least I don't see any recent Bitcoin core changes that should cause it to happen more, so I wonder if this started failing due to some expansion of antithesis test coverage?
Unfortunately it doesn't look like the fix suggested in the other issue is enough to fix this crash because it only waits for about-to-be executed requests to finish, not currently executing requests. This crash looks like the latter because of request #46 canceled while executing in the log. (IIRC the suggested diff prevents crashes when requests are not executing because Cap'nProto destroys Proxy server objects in that case, and the ProxyServerBase destructor calls addAsyncCleanup to delete the server objects, and then disconnectIncoming waits for a final async cleanup function to execute. But disconnectIncoming won't wait for existing requests to finish because ProxyServer objects won't be destroyed while requests are executing so their cleanups will not be queued). One possible fix is ryanofsky@116c3a8 (branch) but I think other approaches might be possible hooking different capnproto events to determine when calls have really finished.
Activity
fanquake commentedon Jul 30, 2026
@Sjors @ryanofsky
dergoegge commentedon Jul 30, 2026
This only started failing a couple days ago, so likely a new issue from a ~recent PR.
ryanofsky commentedon Jul 30, 2026
This bug looks like the one reported and described in #33387 (comment).
I think it is probably not a new issue. Or at least I don't see any recent Bitcoin core changes that should cause it to happen more, so I wonder if this started failing due to some expansion of antithesis test coverage?
Unfortunately it doesn't look like the fix suggested in the other issue is enough to fix this crash because it only waits for about-to-be executed requests to finish, not currently executing requests. This crash looks like the latter because of
request #46 canceled while executingin the log. (IIRC the suggested diff prevents crashes when requests are not executing because Cap'nProto destroys Proxy server objects in that case, and the ProxyServerBase destructor callsaddAsyncCleanupto delete the server objects, and then disconnectIncoming waits for a final async cleanup function to execute. ButdisconnectIncomingwon't wait for existing requests to finish because ProxyServer objects won't be destroyed while requests are executing so their cleanups will not be queued). One possible fix is ryanofsky@116c3a8 (branch) but I think other approaches might be possible hooking different capnproto events to determine when calls have really finished.ipc: add Connection::disconnect() separating teardown from destruction
ipc: add Connection::waitDrained() to wait for in-flight server calls
test: cover draining in-flight server call after disconnect
ipc: drain in-flight server calls before shutdown frees node state
ipc: add Connection::disconnect() separating teardown from destruction
ipc: add Connection::waitDrained() to wait for in-flight server calls
test: cover draining in-flight server call after disconnect
ipc: drain in-flight server calls before shutdown frees node state
ipc: add Connection::disconnect() separating teardown from destruction
21 remaining items
test: cover draining in-flight server call after disconnect
ipc: drain in-flight server calls before shutdown frees node state
proxy-io: add Connection::disconnect() separating teardown from destr…
proxy-io: return a tracker from disconnect() to wait for in-flight se…
test: cover draining in-flight server call after disconnect
proxy-io: add Connection::disconnect() separating teardown from destr…
proxy-io: return a tracker from disconnect() to wait for in-flight se…
test: cover draining in-flight server call after disconnect
proxy-io: add Connection::disconnect() separating teardown from destr…
proxy-io: return a tracker from disconnect() to wait for in-flight se…
test: cover draining in-flight server call after disconnect
ipc: drain in-flight server calls before shutdown frees node state
proxy-io: add Connection::disconnect() separating teardown from destr…
proxy-io: return a tracker from disconnect() to wait for in-flight se…
test: cover draining in-flight server call after disconnect