dashpay / dash

Dash - Reinventing Cryptocurrency
https://www.dash.org
MIT License
1.49k stars 1.2k forks source link

masternode stop crashes dashd #467

Closed chargr closed 9 years ago

chargr commented 9 years ago

running 0.11.2.23

cold wallet is centos 6 (physical device) and hot wallet is centos 7 (vm) centos 6 i have boost 1.58 and centos 7 is the distro boost 1.53 (and recently re-installed) also happens on arch linux built against the distro libs.

both are using a rather lazily built openssl-1.0.2d (arch is also openssl-1.0.2)

when i say "crash", it gets stuck looping - best i've been able to so do far is strace

strace -p 26775
Process 26775 attached
futex(0x1264754, FUTEX_WAIT_PRIVATE, 1, NULL

strace -f -p 26775
Process 26775 attached with 14 threads
[pid 26796] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 26795] futex(0x7fcd2dffae04, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>
[pid 26794] epoll_wait(19,  <unfinished ...>
[pid 26792] futex(0x7fcd2f7fde04, FUTEX_WAIT_PRIVATE, 3, NULL <unfinished ...>
[pid 26791] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 26790] futex(0xaff960, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
[pid 26789] futex(0x70af40c, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>
[pid 26788] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 26787] futex(0xaff960, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
[pid 26785] futex(0xaff960, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
[pid 26783] futex(0x1bd6704, FUTEX_WAIT_PRIVATE, 3, NULL <unfinished ...>
[pid 26776] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 26775] futex(0x1264754, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>
[pid 26796] <... restart_syscall resumed> ) = -1 ETIMEDOUT (Connection timed out)
[pid 26796] futex(0x7046f28, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 26796] clock_gettime(CLOCK_REALTIME, {1438420410, 59579562}) = 0
[pid 26796] futex(0x7046f54, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 2359, {1438420410, 559579562}, ffffffff <unfinished ...>
[pid 26776] <... restart_syscall resumed> ) = -1 ETIMEDOUT (Connection timed out)
[pid 26776] futex(0x12647a8, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 26776] clock_gettime(CLOCK_REALTIME, {1438420410, 83491382}) = 0
[pid 26776] futex(0x12647d4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 6079, {1438420410, 283491382}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 26776] futex(0x12647a8, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 26776] clock_gettime(CLOCK_REALTIME, {1438420410, 283822806}) = 0
[pid 26776] futex(0x12647d4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 6081, {1438420410, 483822806}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 26776] futex(0x12647a8, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 26776] clock_gettime(CLOCK_REALTIME, {1438420410, 484130393}) = 0
[pid 26776] futex(0x12647d4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 6083, {1438420410, 684130393}, ffffffff <unfinished ...>
[pid 26796] <... futex resumed> )       = -1 ETIMEDOUT (Connection timed out)
[pid 26796] futex(0x7046f28, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 26796] clock_gettime(CLOCK_REALTIME, {1438420410, 559900176}) = 0
[pid 26796] futex(0x7046f54, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 2361, {1438420411, 59900176}, ffffffff <unfinished ...>
[pid 26776] <... futex resumed> )       = -1 ETIMEDOUT (Connection timed out)
[pid 26776] futex(0x12647a8, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 26776] clock_gettime(CLOCK_REALTIME, {1438420410, 684474303}) = 0
[pid 26776] futex(0x12647d4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 6085, {1438420410, 884474303}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 26776] futex(0x12647a8, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 26776] clock_gettime(CLOCK_REALTIME, {1438420410, 884802947}) = 0
[pid 26776] futex(0x12647d4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 6087, {1438420411, 84802947}, ffffffff <unfinished ...>
[pid 26796] <... futex resumed> )       = -1 ETIMEDOUT (Connection timed out)
[pid 26796] futex(0x7046f28, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 26796] clock_gettime(CLOCK_REALTIME, {1438420411, 60288909}) = 0
[pid 26796] futex(0x7046f54, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 2363, {1438420411, 560288909}, ffffffff <unfinished ...>
chargr commented 9 years ago

this is when i use masternode.conf and stop-alias

it is possible that when i first started the masternode, that it's address was ipv6 or tor

2015-08-01 10:56:22 CActiveMasternode::Dseep() - Error: Darksend Masternode List doesn't include our Masternode, Shutting down Masternode pinging service! CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase )
poiuty commented 9 years ago

You can also get "gdb core dump" https://poiuty.com/index.php?title=Linux_gdb_core_dump

UdjinM6 commented 9 years ago

@chargr do you still have this issue on v12?

chargr commented 9 years ago

masternode stop is no longer a command?

That fixes it :)

UdjinM6 commented 9 years ago

lol, true, it's no longer available. :smile: I'm going to close it now. If you have problems with other rpc commands feel free to open new issue.