bitcoin-qt core dumping #4410

issue rebroad opened this issue on June 25, 2014
  1. rebroad commented at 2:11 AM on June 25, 2014: contributor

    I'm struggling to find the cause of this error. Can anyone recommend how to better use gdb to find the source of the error please?


    EXCEPTION: St13runtime_error
    tinyformat: Not enough conversion specifiers in format string
    bitcoin in msghand

    terminate called after throwing an instance of 'std::runtime_error' what(): tinyformat: Not enough conversion specifiers in format string

    Program received signal SIGABRT, Aborted. [Switching to Thread 0x7fffb1639700 (LWP 3360)] 0x00007ffff4158425 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007ffff4158425 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007ffff415bb8b in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007ffff4aac69d in __gnu_cxx::__verbose_terminate_handler() ()

    from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #3 0x00007ffff4aaa846 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #4 0x00007ffff4aaa873 in std::terminate() ()

    from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007ffff4aaa9b6 in __cxa_rethrow ()

    from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x0000555555774d5f in TraceThread<void (*)()> (

    name=0x555555c11beb "msghand", func=<optimized out>) at util.h:559
    

    #7 0x00007ffff7546ce9 in thread_proxy ()

    from /usr/lib/libboost_thread.so.1.46.1 #8 0x00007ffff58cce9a in start_thread ()

    from /lib/x86_64-linux-gnu/libpthread.so.0 #9 0x00007ffff42163fd in clone () from /lib/x86_64-linux-gnu/libc.so.6 #10 0x0000000000000000 in ?? ()

    (gdb)

  2. theuni commented at 4:32 AM on June 25, 2014: member

    On first glance, looks like a LogPrintf gone bad. 'thread apply all bt' would tell more.

  3. laanwj commented at 4:47 AM on June 25, 2014: member

    This is not a core dump but an exception. You are back-tracing the place where it is caught not where is is raised.

    You could debug this either by adding more information to the exception message (it is raised in tinyformat.h:675), setting a breakpoint where it is raised, or by adding a catchpoint in gdb (catch throw <regexp>), see https://sourceware.org/gdb/onlinedocs/gdb/Set-Catchpoints.html

  4. rebroad closed this on Jun 27, 2014

  5. rebroad commented at 3:18 AM on June 27, 2014: contributor

    The issue was using LogPrintf instead of LogPrint - strangely this causes a runtime error rather than a compile error - not ideal

  6. MarcoFalke locked this on Sep 8, 2021

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: 2026-04-13 21:15 UTC

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