Application Aborted #24457

issue Rspigler openend this issue on March 2, 2022
  1. Rspigler commented at 4:42 am on March 2, 2022: contributor

    I receive this error when trying to open bitcoin-qt when compiling from master:

    terminate called after throwing an instance of ‘std::runtime_error’ what(): JSON value is not a string as expected Aborted

    No debug info is generated since the application isn’t started.

    I am running Qubes 4.0 fully updated, in a Debian-11 VM with normal networking. Intel x86_64

  2. Rspigler added the label Bug on Mar 2, 2022
  3. MarcoFalke commented at 7:29 am on March 2, 2022: member
    Can you please run this in valgrind or gdb to produce a stack trace?
  4. Rspigler commented at 5:39 pm on March 2, 2022: contributor
     0
     1> Starting program: /usr/local/bin/bitcoin-qt 
     2> [Thread debugging using libthread_db enabled]
     3> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
     4> [New Thread 0x7ffff2644700 (LWP 2265)]
     5> [New Thread 0x7ffff0a21700 (LWP 2266)]
     6> [New Thread 0x7fffebfff700 (LWP 2267)]
     7> [New Thread 0x7fffead0d700 (LWP 2268)]
     8> [New Thread 0x7fffea50c700 (LWP 2269)]
     9> terminate called after throwing an instance of 'std::runtime_error'
    10>   what():  JSON value is not a string as expected
    11> 
    12> Thread 1 "bitcoin-qt" received signal SIGABRT, Aborted.
    13> __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
    14> 50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
    15> (gdb)
    16
    17 `thread apply all bt`
    18
    19> Thread 6 (Thread 0x7fffea50c700 (LWP 2269) "Thread (pooled)"):
    20> [#0](/bitcoin-bitcoin/0/)  futex_abstimed_wait_cancelable (private=0, abstime=0x7fffea50ba50, clockid=-363808304, expected=0, futex_word=0x5555567c8d90) at ../sysdeps/nptl/futex-internal.h:323
    21> [#1](/bitcoin-bitcoin/1/)  __pthread_cond_wait_common (abstime=0x7fffea50ba50, clockid=-363808304, mutex=0x5555567c8d40, cond=0x5555567c8d68) at pthread_cond_wait.c:520
    22> [#2](/bitcoin-bitcoin/2/)  __pthread_cond_timedwait (cond=0x5555567c8d68, mutex=0x5555567c8d40, abstime=0x7fffea50ba50) at pthread_cond_wait.c:656
    23> [#3](/bitcoin-bitcoin/3/)  0x00007ffff78f5ae4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
    24> [#4](/bitcoin-bitcoin/4/)  0x00007ffff78f30d1 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
    25> [#5](/bitcoin-bitcoin/5/)  0x00007ffff78efbe1 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
    26> [#6](/bitcoin-bitcoin/6/)  0x00007ffff6547ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
    27> [#7](/bitcoin-bitcoin/7/)  0x00007ffff6477def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
    28> 
    29> Thread 5 (Thread 0x7fffead0d700 (LWP 2268) "Thread (pooled)"):
    30> [#0](/bitcoin-bitcoin/0/)  futex_abstimed_wait_cancelable (private=0, abstime=0x7fffead0ca50, clockid=-355415600, expected=0, futex_word=0x5555567c8d20) at ../sysdeps/nptl/futex-internal.h:323
    31> [#1](/bitcoin-bitcoin/1/)  __pthread_cond_wait_common (abstime=0x7fffead0ca50, clockid=-355415600, mute--Type <RET> for more, q to quit, c to continue without paging--c
    32> x=0x5555567c8cd0, cond=0x5555567c8cf8) at pthread_cond_wait.c:520
    33> [#2](/bitcoin-bitcoin/2/)  __pthread_cond_timedwait (cond=0x5555567c8cf8, mutex=0x5555567c8cd0, abstime=0x7fffead0ca50) at pthread_cond_wait.c:656
    34> [#3](/bitcoin-bitcoin/3/)  0x00007ffff78f5ae4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
    35> [#4](/bitcoin-bitcoin/4/)  0x00007ffff78f30d1 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
    36> [#5](/bitcoin-bitcoin/5/)  0x00007ffff78efbe1 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
    37> [#6](/bitcoin-bitcoin/6/)  0x00007ffff6547ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
    38> [#7](/bitcoin-bitcoin/7/)  0x00007ffff6477def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
    39> 
    40> Thread 4 (Thread 0x7fffebfff700 (LWP 2267) "gdbus"):
    41> [#0](/bitcoin-bitcoin/0/)  0x00007ffff646d3ff in __GI___poll (fds=0x5555565daae0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
    42> [#1](/bitcoin-bitcoin/1/)  0x00007ffff59ce0ae in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
    43> [#2](/bitcoin-bitcoin/2/)  0x00007ffff59ce40b in g_main_loop_run () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
    44> [#3](/bitcoin-bitcoin/3/)  0x00007ffff1093a36 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
    45> [#4](/bitcoin-bitcoin/4/)  0x00007ffff59f70bd in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
    46> [#5](/bitcoin-bitcoin/5/)  0x00007ffff6547ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
    47> [#6](/bitcoin-bitcoin/6/)  0x00007ffff6477def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
    48> 
    49> Thread 3 (Thread 0x7ffff0a21700 (LWP 2266) "gmain"):
    50> [#0](/bitcoin-bitcoin/0/)  0x00007ffff646d3ff in __GI___poll (fds=0x5555565c6c70, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
    51> [#1](/bitcoin-bitcoin/1/)  0x00007ffff59ce0ae in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
    52> [#2](/bitcoin-bitcoin/2/)  0x00007ffff59ce1cf in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
    53> [#3](/bitcoin-bitcoin/3/)  0x00007ffff59ce221 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
    54> [#4](/bitcoin-bitcoin/4/)  0x00007ffff59f70bd in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
    55> [#5](/bitcoin-bitcoin/5/)  0x00007ffff6547ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
    56> [#6](/bitcoin-bitcoin/6/)  0x00007ffff6477def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
    57> 
    58> Thread 2 (Thread 0x7ffff2644700 (LWP 2265) "QXcbEventQueue"):
    59> [#0](/bitcoin-bitcoin/0/)  0x00007ffff646d3ff in __GI___poll (fds=0x7ffff26439e8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
    60> [#1](/bitcoin-bitcoin/1/)  0x00007ffff34d9d02 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
    61> [#2](/bitcoin-bitcoin/2/)  0x00007ffff34dc05a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
    62> [#3](/bitcoin-bitcoin/3/)  0x00007ffff2e527e0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
    63> [#4](/bitcoin-bitcoin/4/)  0x00007ffff78efbe1 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
    64> [#5](/bitcoin-bitcoin/5/)  0x00007ffff6547ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
    65> [#6](/bitcoin-bitcoin/6/)  0x00007ffff6477def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
    66> 
    67> Thread 1 (Thread 0x7ffff326eac0 (LWP 2261) "bitcoin-qt"):
    68> [#0](/bitcoin-bitcoin/0/)  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
    69> [#1](/bitcoin-bitcoin/1/)  0x00007ffff639f537 in __GI_abort () at abort.c:79
    70> [#2](/bitcoin-bitcoin/2/)  0x00007ffff675b7ec in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    71> [#3](/bitcoin-bitcoin/3/)  0x00007ffff6766966 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    72> [#4](/bitcoin-bitcoin/4/)  0x00007ffff67669d1 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    73> [#5](/bitcoin-bitcoin/5/)  0x00007ffff6766c65 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    74> [#6](/bitcoin-bitcoin/6/)  0x000055555566aca0 in UniValue::get_str[abi:cxx11]() const (this=this@entry=0x7fffffffcb30) at univalue/lib/univalue_get.cpp:101
    75> [#7](/bitcoin-bitcoin/7/)  0x0000555555a79bbd in ArgsManager::GetArg (this=<optimized out>, strArg="-prune", strDefault="") at util/system.cpp:591
    76> [#8](/bitcoin-bitcoin/8/)  0x00005555556c601c in OptionsModel::addOverriddenOption (this=0x55555687f960, option="-prune") at qt/optionsmodel.cpp:40
    77> [#9](/bitcoin-bitcoin/9/)  0x00005555556c74e1 in OptionsModel::SetPruneEnabled (this=0x55555687f960, prune=<optimized out>, force=<optimized out>) at qt/optionsmodel.cpp:291
    78> [#10](/bitcoin-bitcoin/10/) 0x00005555556cab91 in OptionsModel::Init (this=0x55555687f960, resetSettings=<optimized out>) at qt/optionsmodel.cpp:104
    79> [#11](/bitcoin-bitcoin/11/) 0x00005555556cd8db in OptionsModel::OptionsModel (this=0x55555687f960, parent=<optimized out>, resetSettings=<optimized out>) at qt/optionsmodel.cpp:35
    80> [#12](/bitcoin-bitcoin/12/) 0x000055555568538c in BitcoinApplication::createOptionsModel (this=0x7fffffffdbf0, resetSettings=<optimized out>) at qt/bitcoin.cpp:262
    81> [#13](/bitcoin-bitcoin/13/) 0x0000555555689f95 in GuiMain (argc=<optimized out>, argv=0x7fffffffddc0) at qt/bitcoin.cpp:635
    82> [#14](/bitcoin-bitcoin/14/) 0x00007ffff63a0d0a in __libc_start_main (main=0x55555566cc60 <main(int, char**)>, argc=1, argv=0x7fffffffe218, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe208) at ../csu/libc-start.c:308
    83> [#15](/bitcoin-bitcoin/15/) 0x000055555568352a in _start () at /usr/include/c++/10/new:175
    84> (gdb) 
    
  5. MarcoFalke commented at 11:33 am on March 3, 2022: member
    What argument are you passing for -prune?
  6. Rspigler commented at 5:00 pm on March 3, 2022: contributor

    bitcoin.conf

    blockfilterindex=1

    and settings.json

    { “prune”: 3814, “upnp”: false, “wallet”: [ “1”, “2”, “Config”, “1.6.22” ] }

  7. ryanofsky commented at 8:41 pm on March 3, 2022: contributor

    @Rspigler It looks like what happened here is your settings file got “corrupted” by testing #15936. “Corrupted” in quotes because settings file is probably valid when using #15936, but not valid on master.

    To fix this without changing effective settings you can:

    • Change "prune": 3814 to "prune": "3814" (add quotes) in settings.json. This will keep the correct pruning size, but you won’t be able to edit the pruning size from the GUI. To restore ability to edit pruning size from the GUI you could delete this prune line from “settings.json” altogether and add bPrune=0 nPruneSize=4 to .config/Bitcoin/Bitcoin-Qt.conf.
    • Delete the "upnp": false, line entirely from settings.json. This line was added due to a bug in #15936 and could cause more problems going forward.

    Sorry about this problem and thanks for testing #15936 and reporting this issue. Feel free to ping me or follow up with any questions in #15936. I’m going to close this issue, since it’s caused by a PR that hasn’t been merged, so bitcoin maintainers won’t be burdened by having to track it.

  8. ryanofsky closed this on Mar 3, 2022

  9. luke-jr commented at 8:17 pm on March 5, 2022: member
    It wouldn’t be nice if downgrading from 24.x to 23.x causes an abort either. Maybe we should still treat this as a bug and fix it for 23.0?
  10. ryanofsky referenced this in commit 81adab4ac3 on Mar 7, 2022
  11. ryanofsky commented at 6:45 pm on March 7, 2022: contributor

    It wouldn’t be nice if downgrading from 24.x to 23.x causes an abort either. Maybe we should still treat this as a bug and fix it for 23.0?

    This is a good point. Opened a fix to respect the setting instead of crashing in #24498

  12. ryanofsky reopened this on Mar 7, 2022

  13. ryanofsky referenced this in commit e6b99f94df on Mar 8, 2022
  14. ryanofsky referenced this in commit 560431097d on Mar 8, 2022
  15. ryanofsky referenced this in commit 6705df007f on Mar 8, 2022
  16. ryanofsky referenced this in commit e584e1e32f on Mar 8, 2022
  17. ryanofsky referenced this in commit 1891d810be on Mar 8, 2022
  18. ryanofsky referenced this in commit cfbcdd3001 on Mar 8, 2022
  19. ryanofsky referenced this in commit 84b0973e35 on Mar 8, 2022
  20. ryanofsky referenced this in commit 5b1aae12ca on Mar 8, 2022
  21. jonatack commented at 1:29 pm on March 9, 2022: contributor
    Nice catch, @Rspigler and @ryanofsky.
  22. achow101 referenced this in commit 47bbd3ff4f on Mar 9, 2022
  23. achow101 referenced this in commit 4607f700d0 on Mar 9, 2022
  24. achow101 referenced this in commit 7e1b968f61 on Mar 9, 2022
  25. ryanofsky commented at 4:04 pm on March 9, 2022: contributor
    This is fixed in master in #24498 and I think will be backported along with other bugfixes independently, so closing this
  26. ryanofsky closed this on Mar 9, 2022

  27. sidhujag referenced this in commit b503dd4930 on Mar 9, 2022
  28. ryanofsky referenced this in commit 344537cf04 on May 20, 2022
  29. reddink referenced this in commit 9d77d50cba on May 26, 2022
  30. janus referenced this in commit 5bc74619b8 on Jul 24, 2022
  31. janus referenced this in commit 74d7e51128 on Jul 24, 2022
  32. psgreco referenced this in commit fa72859959 on Dec 7, 2022
  33. psgreco referenced this in commit d407fb6168 on Dec 7, 2022
  34. backpacker69 referenced this in commit a9f0314e4d on Jan 18, 2023
  35. backpacker69 referenced this in commit 44df42fbb4 on Jan 18, 2023
  36. bitcoin locked this on Jul 11, 2023

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-07-03 10:13 UTC

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