Issue Details

Number
31041
Title
Crash upon RPC v1 connection in v28.0.0
Description
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behaviour On RPC v1 connection, after the block sync and mempool read is complete, a crash happens (see logs). I used mempool fork of electrs indexer which did an RPC request. Original report can be found here: https://github.com/bitcoin/bitcoin/issues/31039#issuecomment-2395525458 ### Expected behaviour No crash is expected ### Steps to reproduce Run Bitcoin Core (I used machine with 8 cores, and 4GB or 8GB of memory) ### Relevant log output ``` Oct 06 17:54:18 core bitcoind[16532]: 2024-10-06T17:54:18Z initload thread exit Oct 06 17:55:43 core systemd[1]: bitcoind.service: A process of this unit has been killed by the OOM killer. ░░ Subject: A process of bitcoind.service unit has been killed by the OOM killer. ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A process of unit @UNIT has been killed by the Linux kernel out-of-memory (OOM) ░░ killer logic. This usually indicates that the system is low on memory and that ░░ memory needed to be freed. A process associated with bitcoind.service has been determined ░░ as the best process to terminate and has been forcibly terminated by the ░░ kernel. ░░ ░░ Note that the memory pressure might or might not have been caused by bitcoind.service. Oct 06 17:55:43 core systemd[1]: bitcoind.service: Main process exited, code=killed, status=9/KILL ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ An ExecStart= process belonging to unit bitcoind.service has exited. ░░ ░░ The process' exit code is 'killed' and its exit status is 9. Oct 06 17:55:43 core systemd[1]: bitcoind.service: Failed with result 'oom-kill'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ The unit bitcoind.service has entered the 'failed' state with result 'oom-kill'. Oct 06 17:55:43 core systemd[1]: bitcoind.service: Consumed 3min 18.749s CPU time. ░░ Subject: Resources consumed by unit runtime ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ The unit bitcoind.service completed and consumed the indicated resources. Oct 06 17:55:43 core systemd[1]: bitcoind.service: Scheduled restart job, restart counter is at 1. ░░ Subject: Automatic restarting of a unit has been scheduled ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ Automatic restarting of the unit bitcoind.service has been scheduled, as the result for ``` ### How did you obtain Bitcoin Core Compiled from source ### What version of Bitcoin Core are you using? v28.0.0 ### Operating system and version Debian Bookworm ### Machine specifications 8 CPUs; 4GB RAM
URL
https://github.com/bitcoin/bitcoin/issue/31041
Closed by
Back to List