new crash in v26.0 #29153

issue dooglus openend this issue on December 29, 2023
  1. dooglus commented at 6:47 pm on December 29, 2023: contributor

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    bitcoin-qt crashed while loading wallets at startup.

    I used to see occasional crashes on startup a few years ago, but it hasn’t been happening at all in the last couple of major releases.

    I’ve been running v26.0 for a week or two and haven’t had any problem with it crashing until today.

    Here’s a backtrace. I run it in gdb habitually because I used to see a lot of crashes and never got around to changing that when it became more stable.

     0[Thread 0x7fffe8ff86c0 (LWP 2482766) exited]
     1
     2Thread 1 "bitcoin-qt-v26." received signal SIGSEGV, Segmentation fault.
     30x00007ffff7a7c52d in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
     4(gdb) where
     5[#0](/bitcoin-bitcoin/0/)  0x00007ffff7a7c52d in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
     6[#1](/bitcoin-bitcoin/1/)  0x00007ffff7a82b57 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
     7[#2](/bitcoin-bitcoin/2/)  0x000055555576a6ca in OverviewPage::setWalletModel(WalletModel*) ()
     8[#3](/bitcoin-bitcoin/3/)  0x000055555572b9de in WalletView::WalletView(WalletModel*, PlatformStyle const*, QWidget*) ()
     9[#4](/bitcoin-bitcoin/4/)  0x00005555555ea8ef in BitcoinGUI::addWallet(WalletModel*) ()
    10[#5](/bitcoin-bitcoin/5/)  0x00005555556090ff in _ZZN7GUIUtil20ExceptionSafeConnectIP16WalletControllerMS1_FvP11WalletModelEP10BitcoinGUIMS7_FvS4_EEEDaT_T0_T1_T2_N2Qt14ConnectionTypeEENKUlDpOT_E_clIJRS4_EEEDaSJ_ ()
    11[#6](/bitcoin-bitcoin/6/)  0x000055555560996d in _ZN9QtPrivate11FunctorCallINS_11IndexesListIJLi0EEEENS_4ListIJP11WalletModelEEEvZN7GUIUtil20ExceptionSafeConnectIP16WalletControllerMS9_FvS5_EP10BitcoinGUIMSD_FvS5_EEEDaT_T0_T1_T2_N2Qt14ConnectionTypeEEUlDpOT_E_E4callERSQ_PPv ()
    12[#7](/bitcoin-bitcoin/7/)  0x000055555560713b in _ZN9QtPrivate7FunctorIZN7GUIUtil20ExceptionSafeConnectIP16WalletControllerMS3_FvP11WalletModelEP10BitcoinGUIMS9_FvS6_EEEDaT_T0_T1_T2_N2Qt14ConnectionTypeEEUlDpOT_E_Li1EE4callINS_4ListIJS6_EEEvEEvRSM_PvPSS_ ()
    13[#8](/bitcoin-bitcoin/8/)  0x0000555555604d8c in _ZN9QtPrivate18QFunctorSlotObjectIZN7GUIUtil20ExceptionSafeConnectIP16WalletControllerMS3_FvP11WalletModelEP10BitcoinGUIMS9_FvS6_EEEDaT_T0_T1_T2_N2Qt14ConnectionTypeEEUlDpOT_E_Li1ENS_4ListIJS6_EEEvE4implEiPNS_15QSlotObjectBaseEP7QObjectPPvPb ()
    14[#9](/bitcoin-bitcoin/9/)  0x00007ffff7add6f0 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    15[#10](/bitcoin-bitcoin/10/) 0x00007ffff7162fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    16[#11](/bitcoin-bitcoin/11/) 0x00007ffff7ab16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    17[#12](/bitcoin-bitcoin/12/) 0x00007ffff7ab4681 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
    18   from /lib/x86_64-linux-gnu/libQt5Core.so.5
    19[#13](/bitcoin-bitcoin/13/) 0x00007ffff7b0a153 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    20[#14](/bitcoin-bitcoin/14/) 0x00007ffff591e7a9 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    21[#15](/bitcoin-bitcoin/15/) 0x00007ffff591ea38 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    22[#16](/bitcoin-bitcoin/16/) 0x00007ffff591eacc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    23[#17](/bitcoin-bitcoin/17/) 0x00007ffff7b09836 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    24   from /lib/x86_64-linux-gnu/libQt5Core.so.5
    25[#18](/bitcoin-bitcoin/18/) 0x00007ffff7ab017b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    26[#19](/bitcoin-bitcoin/19/) 0x00007ffff7ab82d6 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    27[#20](/bitcoin-bitcoin/20/) 0x00005555555ccd4a in GuiMain(int, char**) ()
    28[#21](/bitcoin-bitcoin/21/) 0x00005555555c489c in main ()
    29(gdb) 
    

    I configured with:

    ./configure CXXFLAGS=-fno-omit-frame-pointer --with-incompatible-bdb --with-miniupnpc=no --disable-debug

    Expected behaviour

    I expect it not to crash on startup…

    Steps to reproduce

    unknown

    Relevant log output

     02023-12-29T14:43:16Z Saw new header hash=0000000000000000000087ce4be45642ce81d2db3618e7e3e776c6ac4cefd7fe height=823428
     12023-12-29T14:43:16Z Saw new header hash=000000000000000000017d31138550098a7af1d89c1f08b424b496af7657f068 height=823429
     22023-12-29T14:43:16Z Saw new header hash=00000000000000000002170138a0ca50ea13333fb26563d7624254d80f655155 height=823430
     32023-12-29T14:43:22Z UpdateTip: new best=0000000000000000000397759a23b3454cfb92c39368625ef2a3ff57199c814e height=823286 version=0x33856000 log2_work=94.630168 tx=943880620 date='2023-12-28T16:29:46Z' progress=0.999532 cache=2.0MiB(16572txo)
     42023-12-29T14:43:26Z UpdateTip: new best=0000000000000000000382dd93aba8bd6ef45839ae5417f5d7c53885fc89200b height=823287 version=0x20088000 log2_work=94.630183 tx=943883634 date='2023-12-28T16:30:35Z' progress=0.999532 cache=4.4MiB(35892txo)
     52023-12-29T14:43:29Z UpdateTip: new best=00000000000000000003cb20fc43bf96aca61fe62cf84af74b6f4ea863975beb height=823288 version=0x2757c000 log2_work=94.630198 tx=943887045 date='2023-12-28T16:42:28Z' progress=0.999537 cache=6.5MiB(52635txo)
     62023-12-29T14:43:31Z UpdateTip: new best=00000000000000000003527d1234eaf8f68c7a20f6828f4e2f181d71ca0e5cfd height=823289 version=0x2000e000 log2_work=94.630212 tx=943890468 date='2023-12-28T16:52:29Z' progress=0.999540 cache=8.4MiB(68875txo)
     72023-12-29T14:43:35Z UpdateTip: new best=000000000000000000011b6b288d5b61b4b0036f040e37aa41300a20b0db39fb height=823290 version=0x24000004 log2_work=94.630227 tx=943893464 date='2023-12-28T17:07:26Z' progress=0.999545 cache=11.0MiB(86319txo)
     82023-12-29T14:43:38Z UpdateTip: new best=0000000000000000000236c0c37e795a8ce2ccc785197a2b272acb4f03f428ab height=823291 version=0x27c48000 log2_work=94.630241 tx=943897695 date='2023-12-28T17:09:25Z' progress=0.999546 cache=12.9MiB(101026txo)
     92023-12-29T14:43:40Z UpdateTip: new best=00000000000000000001d2ec4340f0246650c7f383293de24203d5d53e105b0e height=823292 version=0x20014000 log2_work=94.630256 tx=943901049 date='2023-12-28T17:30:28Z' progress=0.999553 cache=14.9MiB(118884txo)
    10
    11
    12
    13
    14
    152023-12-29T16:02:44Z Bitcoin Core version v26.0.0 (release build)
    

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    v26.0

    Operating system and version

    Debian 12

    Machine specifications

    Linux, Intel, ssd, plenty of RAM

  2. maflcko added the label Bug on Dec 30, 2023
  3. maflcko added the label GUI on Dec 30, 2023
  4. maflcko added the label Wallet on Dec 30, 2023
  5. fanquake commented at 2:57 pm on January 4, 2024: member
  6. dooglus commented at 8:01 pm on January 6, 2024: contributor

    It happened again.

    This node only connects to one other node. I run two nodes on the same machine. One connects to lots of peers, and this one that keeps crashing hosts my wallets, and only connects to the other node.

     0Thread 1 "bitcoin-qt-v26." received signal SIGSEGV, Segmentation fault.
     10x00007ffff7a7c52d in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
     2(gdb) where
     3[#0](/bitcoin-bitcoin/0/)  0x00007ffff7a7c52d in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
     4[#1](/bitcoin-bitcoin/1/)  0x00007ffff7a82b57 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
     5[#2](/bitcoin-bitcoin/2/)  0x000055555576a6ca in OverviewPage::setWalletModel(WalletModel*) ()
     6[#3](/bitcoin-bitcoin/3/)  0x000055555572b9de in WalletView::WalletView(WalletModel*, PlatformStyle const*, QWidget*) ()
     7[#4](/bitcoin-bitcoin/4/)  0x00005555555ea8ef in BitcoinGUI::addWallet(WalletModel*) ()
     8[#5](/bitcoin-bitcoin/5/)  0x00005555556090ff in _ZZN7GUIUtil20ExceptionSafeConnectIP16WalletControllerMS1_FvP11WalletModelEP10BitcoinGUIMS7_FvS4_EEEDaT_T0_T1_T2_N2Qt14ConnectionTypeEENKUlDpOT_E_clIJRS4_EEEDaSJ_ ()
     9[#6](/bitcoin-bitcoin/6/)  0x000055555560996d in _ZN9QtPrivate11FunctorCallINS_11IndexesListIJLi0EEEENS_4ListIJP11WalletModelEEEvZN7GUIUtil20ExceptionSafeConnectIP16WalletControllerMS9_FvS5_EP10BitcoinGUIMSD_FvS5_EEEDaT_T0_T1_T2_N2Qt14ConnectionTypeEEUlDpOT_E_E4callERSQ_PPv ()
    10[#7](/bitcoin-bitcoin/7/)  0x000055555560713b in _ZN9QtPrivate7FunctorIZN7GUIUtil20ExceptionSafeConnectIP16WalletControllerMS3_FvP11WalletModelEP10BitcoinGUIMS9_FvS6_EEEDaT_T0_T1_T2_N2Qt14ConnectionTypeEEUlDpOT_E_Li1EE4callINS_4ListIJS6_EEEvEEvRSM_PvPSS_ ()
    11[#8](/bitcoin-bitcoin/8/)  0x0000555555604d8c in _ZN9QtPrivate18QFunctorSlotObjectIZN7GUIUtil20ExceptionSafeConnectIP16WalletControllerMS3_FvP11WalletModelEP10BitcoinGUIMS9_FvS6_EEEDaT_T0_T1_T2_N2Qt14ConnectionTypeEEUlDpOT_E_Li1ENS_4ListIJS6_EEEvE4implEiPNS_15QSlotObjectBaseEP7QObjectPPvPb ()
    12[#9](/bitcoin-bitcoin/9/)  0x00007ffff7add6f0 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    13[#10](/bitcoin-bitcoin/10/) 0x00007ffff7162fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    14[#11](/bitcoin-bitcoin/11/) 0x00007ffff7ab16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    15[#12](/bitcoin-bitcoin/12/) 0x00007ffff7ab4681 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    16[#13](/bitcoin-bitcoin/13/) 0x00007ffff7b0a153 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    17[#14](/bitcoin-bitcoin/14/) 0x00007ffff591e7a9 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    18[#15](/bitcoin-bitcoin/15/) 0x00007ffff591ea38 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    19[#16](/bitcoin-bitcoin/16/) 0x00007ffff591eacc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    20[#17](/bitcoin-bitcoin/17/) 0x00007ffff7b09836 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    21[#18](/bitcoin-bitcoin/18/) 0x00007ffff7ab017b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    22[#19](/bitcoin-bitcoin/19/) 0x00007ffff7ab82d6 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
    23[#20](/bitcoin-bitcoin/20/) 0x00005555555ccd4a in GuiMain(int, char**) ()
    24[#21](/bitcoin-bitcoin/21/) 0x00005555555c489c in main ()
    25(gdb) 
    26
    272024-01-06T19:36:23Z init message: Pruning blockstore
    282024-01-06T19:36:23Z block tree size = 824300
    292024-01-06T19:36:23Z initload thread start
    302024-01-06T19:36:23Z nBestHeight = 824258
    312024-01-06T19:36:23Z init message: Starting network threads
    322024-01-06T19:36:23Z net thread start
    332024-01-06T19:36:23Z DNS seeding disabled
    342024-01-06T19:36:23Z addcon thread start
    352024-01-06T19:36:23Z opencon thread start
    362024-01-06T19:36:23Z msghand thread start
    372024-01-06T19:36:23Z connect() to [::1]:8333 failed after wait: Connection refused (111)
    382024-01-06T19:36:23Z init message: Done loading
    392024-01-06T19:36:23Z GUI: Platform customization: "other"
    402024-01-06T19:36:24Z connect() to [::1]:8333 failed after wait: Connection refused (111)
    412024-01-06T19:36:26Z New manual v1 peer connected: version: 70016, blocks=824655, peer=0, peeraddr=127.0.0.1:8333
    422024-01-06T19:36:26Z Synchronizing blockheaders, height: 824655 (~100.00%)
    432024-01-06T19:36:34Z UpdateTip: new best=000000000000000000034d7d932193d3fcb04fcc114aab2402affc7131935fed height=824259 version=0x30ce4000 log2_work=94.644261 tx=947506906 date='2024-01-04T04:03:41Z' progress=0.998669 cache=2.3MiB(17725txo)
    442024-01-06T19:36:41Z UpdateTip: new best=0000000000000000000132dd04997dd75ed67388dbffd6b9f1b219d3947b0a50 height=824260 version=0x318f8000 log2_work=94.644275 tx=947509277 date='2024-01-04T04:26:45Z' progress=0.998677 cache=4.4MiB(37157txo)
    452024-01-06T19:36:51Z UpdateTip: new best=00000000000000000003d8912161a4805a8283e9db796b5b21e74c3b5c09759c height=824261 version=0x29fc6000 log2_work=94.644290 tx=947512458 date='2024-01-04T04:36:35Z' progress=0.998680 cache=7.1MiB(58543txo)
    462024-01-06T19:37:33Z UpdateTip: new best=00000000000000000002c7b5a7f2800d46ae4ff71939ca3591d87bfb1b361a32 height=824262 version=0x31dde000 log2_work=94.644304 tx=947514979 date='2024-01-04T04:47:21Z' progress=0.998683 cache=13.2MiB(111475txo)
    472024-01-06T19:37:51Z UpdateTip: new best=000000000000000000000d3955e2948b9288709a9ac69752a62811efc967160a height=824263 version=0x20a00000 log2_work=94.644318 tx=947517627 date='2024-01-04T04:48:02Z' progress=0.998684 cache=16.6MiB(141457txo)
    482024-01-06T19:38:33Z UpdateTip: new best=0000000000000000000141e4f30a840e6f646c523d72e483815a41ef8fbfa01c height=824264 version=0x2c682000 log2_work=94.644333 tx=947520506 date='2024-01-04T04:49:23Z' progress=0.998684 cache=25.9MiB(218996txo)
    
  7. mzumsande commented at 5:54 pm on January 8, 2024: contributor

    Looks like the crash happens within libQt5Core.so.5, for which there are no debug symbols available.

    I tried for a while to reproduce the crash but didn’t manage. Is there something special or “unusual” about your setup, for example are you loading a large number of wallets, or are some of the wallets very large?

  8. fanquake commented at 1:29 pm on January 9, 2024: member
    I assume this be moved to the GUI repo? @hebasto
  9. hebasto commented at 1:34 pm on January 9, 2024: member
  10. hebasto closed this on Jan 9, 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: 2024-12-21 15:12 UTC

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