test: SegFault in ismine_tests on SunOS / illumos #29908

issue hebasto openend this issue on April 18, 2024
  1. hebasto commented at 10:00 pm on April 18, 2024: member
     0$ gdb -q --args ./src/test/test_bitcoin -t ismine_tests
     1Reading symbols from ./src/test/test_bitcoin...
     2(gdb) run
     3Starting program: /export/home/hebasto/git/bitcoin/build/src/test/test_bitcoin -t ismine_tests
     4[Thread debugging using libthread_db enabled]
     5warning: could not convert 'mutex_t' from the host encoding (ISO-8859-1) to UTF-32.
     6This normally should not happen, please file a bug report.
     7Running 1 test case...
     8[New Thread 1 (LWP 1)]
     9
    10Thread 2 received signal SIGSEGV, Segmentation fault.
    11[Switching to Thread 1 (LWP 1)]
    120x00007fffaf3eac59 in mutex_trylock_adaptive () from /lib/64/libc.so.1
    13(gdb) backtrace
    14[#0](/bitcoin-bitcoin/0/)  0x00007fffaf3eac59 in mutex_trylock_adaptive () from /lib/64/libc.so.1
    15[#1](/bitcoin-bitcoin/1/)  0x00007fffaf3ebe75 in mutex_lock_internal () from /lib/64/libc.so.1
    16[#2](/bitcoin-bitcoin/2/)  0x00007fffaf3ec415 in mutex_lock_impl () from /lib/64/libc.so.1
    17[#3](/bitcoin-bitcoin/3/)  0x00007fffaf3ec573 in pthread_mutex_lock () from /lib/64/libc.so.1
    18warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    19warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    20warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    21warning: (Internal error: pc 0x12f22e0 in read in CU, but not in symtab.)
    22warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    23warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    24warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    25warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    26warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    27warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    28warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    29[#4](/bitcoin-bitcoin/4/)  0x00000000012f232b in boost::signals2::mutex::lock (warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    30warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    31warning: (Internal error: pc 0x13085f0 in read in CU, but not in symtab.)
    32warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    33warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    34warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    35warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    36this=<optimized out>) at /usr/include/boost/signals2/detail/lwm_pthreads.hpp:60
    37warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    38warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    39[#5](/bitcoin-bitcoin/5/)  boost::signals2::detail::unique_lock<boost::signals2::mutex>::unique_lock (warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    40warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    41warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    42m=..., this=0x7fffbffecfc8) at /usr/include/boost/signals2/detail/unique_lock.hpp:29
    43warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    44warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    45[#6](/bitcoin-bitcoin/6/)  boost::signals2::detail::garbage_collecting_lock<boost::signals2::mutex>::garbage_collecting_lock (warning: (Internal error: pc 0x12f232a in read in CU, but not in symtab.)
    46warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    47this=0x7fffbffecf10, warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    48warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    49m=...)
    50    at /usr/include/boost/signals2/connection.hpp:44
    51warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    52warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    53[#7](/bitcoin-bitcoin/7/)  0x0000000001308631 in boost::signals2::detail::signal_impl<void (), boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void ()>, boost::function<void (boost::signals2::connection const&)>, boost::signals2::mutex>::operator()() (warning: (Internal error: pc 0x1308630 in read in CU, but not in symtab.)
    54this=0x1e1b060)
    55    at /usr/include/boost/signals2/detail/signal_template.hpp:230
    56[#8](/bitcoin-bitcoin/8/)  0x00000000016069c8 in boost::signals2::signal<void (), boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void ()>, boost::function<void (boost::signals2::connection const&)>, boost::signals2::mutex>::operator()() (this=0x1e6eaf8) at /usr/include/boost/signals2/detail/signal_template.hpp:722
    57[#9](/bitcoin-bitcoin/9/)  wallet::DescriptorScriptPubKeyMan::TopUpWithDB (this=this@entry=0x1e6ead0, batch=..., size=size@entry=0)
    58    at /export/home/hebasto/git/bitcoin/src/wallet/scriptpubkeyman.cpp:2248
    59[#10](/bitcoin-bitcoin/10/) 0x0000000001606bcf in wallet::DescriptorScriptPubKeyMan::TopUp (this=0x1e6ead0, size=0) at /export/home/hebasto/git/bitcoin/src/wallet/scriptpubkeyman.cpp:2182
    60[#11](/bitcoin-bitcoin/11/) 0x000000000165c3c0 in wallet::CWallet::AddWalletDescriptor (this=this@entry=0x7fffbfff5540, desc=..., signing_provider=..., label="", 
    61    internal=internal@entry=false) at /export/home/hebasto/git/bitcoin/src/wallet/wallet.cpp:3884
    62[#12](/bitcoin-bitcoin/12/) 0x0000000001092c62 in wallet::ismine_tests::CreateDescriptor (keystore=..., desc_str="pkh(5JsGTWCrg7h7fA2fizVwyEVpXJxNuL9GGrYAmp2nTNS758WKDtU)", 
    63    success=success@entry=true) at /export/home/hebasto/git/bitcoin/src/wallet/test/ismine_tests.cpp:38
    64[#13](/bitcoin-bitcoin/13/) 0x000000000109585e in wallet::ismine_tests::ismine_standard::test_method (this=this@entry=0x7fffbfffe870)
    65    at /export/home/hebasto/git/bitcoin/src/wallet/test/ismine_tests.cpp:174
    66[#14](/bitcoin-bitcoin/14/) 0x00000000010a4ade in wallet::ismine_tests::ismine_standard_invoker () at /export/home/hebasto/git/bitcoin/src/wallet/test/ismine_tests.cpp:41
    67[#15](/bitcoin-bitcoin/15/) 0x00000000009487e0 in boost::function0<void>::operator() (this=<optimized out>) at /usr/include/boost/function/function_template.hpp:763
    68[#16](/bitcoin-bitcoin/16/) boost::detail::forward::operator() (this=<optimized out>) at /usr/include/boost/test/impl/execution_monitor.ipp:1388
    69[#17](/bitcoin-bitcoin/17/) boost::detail::function::function_obj_invoker0<boost::detail::forward, int>::invoke (function_obj_ptr=...)
    70    at /usr/include/boost/function/function_template.hpp:137
    71[#18](/bitcoin-bitcoin/18/) 0x00000000009199e1 in boost::function0<int>::operator() (this=0x7fffbffff390) at /usr/include/boost/function/function_template.hpp:763
    72[#19](/bitcoin-bitcoin/19/) boost::detail::do_invoke<boost::shared_ptr<boost::detail::translator_holder_base>, boost::function<int ()> >(boost::shared_ptr<boost::detail::translator_holder_base> const&, boost::function<int ()> const&) (tr=..., F=...) at /usr/include/boost/test/impl/execution_monitor.ipp:301
    73[#20](/bitcoin-bitcoin/20/) boost::execution_monitor::catch_signals(boost::function<int ()> const&) (
    74    this=this@entry=0x1d6e4a0 <boost::unit_test::unit_test_monitor_t::instance()::the_inst>, F=...) at /usr/include/boost/test/impl/execution_monitor.ipp:903
    75[#21](/bitcoin-bitcoin/21/) 0x0000000000919abb in boost::execution_monitor::execute(boost::function<int ()> const&) (
    76    this=this@entry=0x1d6e4a0 <boost::unit_test::unit_test_monitor_t::instance()::the_inst>, F=...) at /usr/include/boost/test/impl/execution_monitor.ipp:1301
    77[#22](/bitcoin-bitcoin/22/) 0x0000000000919b24 in boost::execution_monitor::vexecute(boost::function<void ()> const&) (
    78    this=this@entry=0x1d6e4a0 <boost::unit_test::unit_test_monitor_t::instance()::the_inst>, F=...) at /usr/include/boost/test/impl/execution_monitor.ipp:1397
    79[#23](/bitcoin-bitcoin/23/) 0x00000000009231ff in boost::unit_test::unit_test_monitor_t::execute_and_translate(boost::function<void ()> const&, unsigned long) (
    80    this=0x1d6e4a0 <boost::unit_test::unit_test_monitor_t::instance()::the_inst>, func=..., timeout_microseconds=timeout_microseconds@entry=0)
    81    at /usr/include/boost/test/impl/unit_test_monitor.ipp:49
    

    System and compiler details:

    0$ uname -a
    1SunOS openindiana 5.11 illumos-faadcf7eb2 i86pc i386 i86pc
    2$ g++ --version
    3g++ (OpenIndiana 13.2.0-oi-3) 13.2.0
    4Copyright (C) 2023 Free Software Foundation, Inc.
    5This is free software; see the source for copying conditions.  There is NO
    6warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
  2. maflcko commented at 8:57 am on April 19, 2024: member
    Do the functional tests pass? Does it also happen in valgrind? Does it also happen in ubsan, asan, or tsan? Does it also happen when using a depends DEBUG=1 and --enable-debug build?
  3. maflcko added the label Bug on Apr 19, 2024
  4. fanquake commented at 11:02 am on May 31, 2024: member
    Are you planning on providing the requested information here, so this can be investigated further?
  5. hebasto commented at 11:04 am on May 31, 2024: member

    Are you planning on providing the requested information here, so this can be investigated further?

    Sure. Thanks for reminding :)

  6. hebasto commented at 6:31 pm on June 2, 2024: member

    I’ve tested the recent master branch @ 457e1846d2bf6ef9d54b9ba1a330ba8bbff13091 on the updated system:

    0$ uname -a
    1SunOS openindiana 5.11 illumos-82079dec87 i86pc i386 i86pc
    

    The issue is no longer reproducible.

    Closing.

  7. hebasto closed this on Jun 2, 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-06-29 10:13 UTC

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