Skip to content

v0.0.0.69 MN hung in NodeMinter #195

@walkjivefly

Description

@walkjivefly

MN hung in NodeMinter. It had been stuck there for 7 minutes when this log was collected.

crown@crown-testnet-01:~/.crown/testnet3$ tail -f debug.log
2022-11-10T09:13:20Z CBudgetManager::CheckAndRemove - pbudgetDraft->IsValid - strError: Cannot find masternode : CTxIn(COutPoint(80215524545a2a0b3f7465a7dabed37db5fc9a57a1909e87a5041d1a6e5931ea, 1), scriptSig=)
2022-11-10T09:13:20Z IsBudgetCollateralValid : OP_DUP OP_HASH160 fe5190b4bb9ecff0103f1ef35be560405f361034 OP_EQUALVERIFY OP_CHECKSIG vs OP_RETURN 13eec834696dbe23568aad4aa11007a5d06940e2b62bb48bcd04bc057f90040e
2022-11-10T09:13:20Z IsBudgetCollateralValid : OP_RETURN 13eec834696dbe23568aad4aa11007a5d06940e2b62bb48bcd04bc057f90040e vs OP_RETURN 13eec834696dbe23568aad4aa11007a5d06940e2b62bb48bcd04bc057f90040e
2022-11-10T09:13:20Z IsBudgetCollateralValid : OP_DUP OP_HASH160 cf654d65da5b488cae635dcac0832060669b0dd7 OP_EQUALVERIFY OP_CHECKSIG vs OP_RETURN 6feba6c65c56db0a8e1484353585e65082fed0cf51d602c8f9495ca5fa9036fc
2022-11-10T09:13:20Z IsBudgetCollateralValid : OP_RETURN 6feba6c65c56db0a8e1484353585e65082fed0cf51d602c8f9495ca5fa9036fc vs OP_RETURN 6feba6c65c56db0a8e1484353585e65082fed0cf51d602c8f9495ca5fa9036fc
2022-11-10T09:13:20Z IsBudgetCollateralValid : OP_DUP OP_HASH160 cf654d65da5b488cae635dcac0832060669b0dd7 OP_EQUALVERIFY OP_CHECKSIG vs OP_RETURN 8058bf13702fee4605918a809bfd8d9698217cbcd63f9bacf885aa98681166be
2022-11-10T09:13:20Z IsBudgetCollateralValid : OP_RETURN 6feba6c65c56db0a8e1484353585e65082fed0cf51d602c8f9495ca5fa9036fc vs OP_RETURN 8058bf13702fee4605918a809bfd8d9698217cbcd63f9bacf885aa98681166be
2022-11-10T09:13:20Z IsBudgetCollateralValid : OP_DUP OP_HASH160 d0acb48682ec3966a40f637594ac35c360f0a93f OP_EQUALVERIFY OP_CHECKSIG vs OP_RETURN 8a20957c1b6b342ea1e783cb71806f5f17f0f33c2192e7e1b531398f1729eae7
2022-11-10T09:13:20Z IsBudgetCollateralValid : OP_RETURN 8a20957c1b6b342ea1e783cb71806f5f17f0f33c2192e7e1b531398f1729eae7 vs OP_RETURN 8a20957c1b6b342ea1e783cb71806f5f17f0f33c2192e7e1b531398f1729eae7
2022-11-10T09:14:14Z NodeMinter: Attempting to stake..
^C
crown@crown-testnet-01:~/.crown/testnet3$ pidof crownd
140589
crown@crown-testnet-01:~/.crown/testnet3$ sudo gdb /usr/local/bin/crownd 140589
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/crownd...
(No debugging symbols found in /usr/local/bin/crownd)
Attaching to program: /usr/local/bin/crownd, process 140589
[New LWP 140590]
[New LWP 140591]
[New LWP 140592]
[New LWP 140593]
[New LWP 140594]
[New LWP 140595]
[New LWP 140596]
[New LWP 140597]
[New LWP 140600]
[New LWP 140601]
[New LWP 140603]
[New LWP 140604]
[New LWP 140605]
[New LWP 140606]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f94332f5868 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7ffd66fc3d50, rem=0x7ffd66fc3d50) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
78	../sysdeps/unix/sysv/linux/clock_nanosleep.c: No such file or directory.
(gdb) info threads
  Id   Target Id                                           Frame 
* 1    Thread 0x7f943320b780 (LWP 140589) "crownd"         0x00007f94332f5868 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, 
    req=0x7ffd66fc3d50, rem=0x7ffd66fc3d50)
    at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
  2    Thread 0x7f9430dd7640 (LWP 140590) "b-scriptch.0"   __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, 
    futex_word=0x5578b80501b4 <scriptcheckqueue+84>)
    at ./nptl/futex-internal.c:57
  3    Thread 0x7f94305d6640 (LWP 140591) "b-crown-minter" futex_wait (
    private=0, expected=2, futex_word=0x5578b80514f0 <budget+48>)
    at ../sysdeps/nptl/futex-internal.h:146
  4    Thread 0x7f942fdd5640 (LWP 140592) "b-http"         0x00007f9433335fde in epoll_wait (epfd=5, events=0x5578b8a066a0, maxevents=32, timeout=-1)
    at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
  5    Thread 0x7f942f5d4640 (LWP 140593) "b-httpworker.0" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, 
    futex_word=0x5578b89816c0) at ./nptl/futex-internal.c:57
  6    Thread 0x7f942edd3640 (LWP 140594) "b-httpworker.1" futex_wait (
    private=0, expected=2, futex_word=0x5578b8044300 <cs_main>)
    at ../sysdeps/nptl/futex-internal.h:146
  7    Thread 0x7f942e5d2640 (LWP 140595) "b-httpworker.2" futex_wait (
    private=0, expected=2, futex_word=0x5578b8044300 <cs_main>)
    at ../sysdeps/nptl/futex-internal.h:146
  8    Thread 0x7f942ddd1640 (LWP 140596) "b-httpworker.3" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, 
    futex_word=0x5578b89816c4) at ./nptl/futex-internal.c:57
  9    Thread 0x7f942d459640 (LWP 140597) "crownd"         __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, 
    futex_word=0x5578b8057238 <leveldb::Env::Default()::env_container+88>)
    at ./nptl/futex-internal.c:57
  10   Thread 0x7f9408f9b640 (LWP 140600) "b-torcontrol"   0x00007f9433335fde in epoll_wait (epfd=35, events=0x5578bb47b040, maxevents=32, timeout=656840)
    at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
  11   Thread 0x7f9403fff640 (LWP 140601) "b-net"          futex_wait (
    private=0, expected=2, futex_word=0x5578b8044300 <cs_main>)
    at ../sysdeps/nptl/futex-internal.h:146
  12   Thread 0x7f9402ffd640 (LWP 140603) "b-addcon"       futex_wait (
    private=0, expected=2, futex_word=0x5578b8044300 <cs_main>)
    at ../sysdeps/nptl/futex-internal.h:146
  13   Thread 0x7f94027fc640 (LWP 140604) "b-mncon"        __futex_abstimed_wait_common64 (private=-1207605512, cancel=true, abstime=0x7f94027fbb80, op=137, 
    expected=0, futex_word=0x5578b8adcd80) at ./nptl/futex-internal.c:57
  14   Thread 0x7f9401ffb640 (LWP 140605) "b-opencon"      __futex_abstimed_wait_common64 (private=1797285236, cancel=true, abstime=0x7f9401ffa570, op=137, 
    expected=0, futex_word=0x5578b8adcd80) at ./nptl/futex-internal.c:57
  15   Thread 0x7f94017fa640 (LWP 140606) "b-msghand"      0x00007f94332a80d1 in lll_mutex_lock_optimized (mutex=0x5578b8048c80 <mnodeman>)
    at ./nptl/pthread_mutex_lock.c:48
(gdb) 

This appears to be same symptoms, different root cause as #139 because there is no sign in the log for that issue (https://github.com/Crowndev/crown/files/9946603/issue168or139.log) of the node attempting to mint before hitting the timeouts.
1201.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions