Bitcoin Forum
May 21, 2024, 11:53:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: [ANN] New Client for Neocoin  (Read 1966 times)
sigesang
Member
**
Offline Offline

Activity: 84
Merit: 10



View Profile
October 07, 2013, 10:00:52 PM
 #21

qtwallet build from github source crashes on finding PoS blocks

gdb:
Code:
#0  0x00007ffff34d7725 in vfprintf () from /lib64/libc.so.6
#1  0x00007ffff358c560 in __vsnprintf_chk () from /lib64/libc.so.6
#2  0x000000000047ee6f in vsnprintf (__ap=0x7fffd53cffd8, __fmt=0x689900 "(hash=%s, nTime=%d, ver=%d, vin.size=%zu, vout.size=%zu, nLockTime=%d, neodata=%s)\n", __n=50000,
    __s=0x7fffd53cfff0 "(hash=2b7e74b63a, nTime=1381180603, ver=1, vin.size=1, vout.size=1, nLockTime=0, neodata=") at /usr/include/bits/stdio2.h:79
#3  vstrprintf (format=0x689900 "(hash=%s, nTime=%d, ver=%d, vin.size=%zu, vout.size=%zu, nLockTime=%d, neodata=%s)\n", ap=ap@entry=0x7fffd53dc390) at src/util.cpp:309
#4  0x000000000047ef96 in real_strprintf (format=<optimized out>, dummy=<optimized out>) at src/util.cpp:331
#5  0x00000000004e4a7d in CTransaction::ToString (this=0x7fffe40634b0) at src/main.h:643
#6  0x00000000004e565d in print (this=<optimized out>) at src/main.h:660
#7  CBlock::print (this=this@entry=0x7fffe4062ef0) at src/main.h:1076
#8  0x00000000004bfe0d in CheckWork (pblock=0x7fffe4062ef0, wallet=..., reservekey=...) at src/main.cpp:4224
#9  0x00000000004c0abf in NeocoinMiner (pwallet=0x2fb2ae0, fProofOfStake=true) at src/main.cpp:4314
#10 0x000000000050a026 in ThreadStakeMinter (parg=0x2fb2ae0) at src/net.cpp:1313
#11 0x00007ffff6750724 in ?? () from /usr/lib64/libboost_thread.so.1.53.0
#12 0x00007ffff4052d96 in start_thread () from /lib64/libpthread.so.0
#13 0x00007ffff357946d in clone () from /lib64/libc.so.6

Trivial to fix:
Code:
             nVersion,
             vin.size(),
             vout.size(),
-            nLockTime),
-            neodata.substr(0,30).c_str();
+            nLockTime,
+            neodata.substr(0,30).c_str());
         for (unsigned int i = 0; i < vin.size(); i++)
             str += "    " + vin[i].ToString() + "\n";
         for (unsigned int i = 0; i < vout.size(); i++)

BTC 1basemmmcpVWVfzZMyLA1r2DJMTMnZYoX LTC LiTeTipdGNcXRjTw5pVnMXjB5FFoEfxPAZ
Neo8 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 10


View Profile WWW
October 08, 2013, 05:52:28 PM
 #22

qtwallet build from github source crashes on finding PoS blocks

gdb:
Code:
#0  0x00007ffff34d7725 in vfprintf () from /lib64/libc.so.6
#1  0x00007ffff358c560 in __vsnprintf_chk () from /lib64/libc.so.6
#2  0x000000000047ee6f in vsnprintf (__ap=0x7fffd53cffd8, __fmt=0x689900 "(hash=%s, nTime=%d, ver=%d, vin.size=%zu, vout.size=%zu, nLockTime=%d, neodata=%s)\n", __n=50000,
    __s=0x7fffd53cfff0 "(hash=2b7e74b63a, nTime=1381180603, ver=1, vin.size=1, vout.size=1, nLockTime=0, neodata=") at /usr/include/bits/stdio2.h:79
#3  vstrprintf (format=0x689900 "(hash=%s, nTime=%d, ver=%d, vin.size=%zu, vout.size=%zu, nLockTime=%d, neodata=%s)\n", ap=ap@entry=0x7fffd53dc390) at src/util.cpp:309
#4  0x000000000047ef96 in real_strprintf (format=<optimized out>, dummy=<optimized out>) at src/util.cpp:331
#5  0x00000000004e4a7d in CTransaction::ToString (this=0x7fffe40634b0) at src/main.h:643
#6  0x00000000004e565d in print (this=<optimized out>) at src/main.h:660
#7  CBlock::print (this=this@entry=0x7fffe4062ef0) at src/main.h:1076
#8  0x00000000004bfe0d in CheckWork (pblock=0x7fffe4062ef0, wallet=..., reservekey=...) at src/main.cpp:4224
#9  0x00000000004c0abf in NeocoinMiner (pwallet=0x2fb2ae0, fProofOfStake=true) at src/main.cpp:4314
#10 0x000000000050a026 in ThreadStakeMinter (parg=0x2fb2ae0) at src/net.cpp:1313
#11 0x00007ffff6750724 in ?? () from /usr/lib64/libboost_thread.so.1.53.0
#12 0x00007ffff4052d96 in start_thread () from /lib64/libpthread.so.0
#13 0x00007ffff357946d in clone () from /lib64/libc.so.6

Trivial to fix:
Code:
             nVersion,
             vin.size(),
             vout.size(),
-            nLockTime),
-            neodata.substr(0,30).c_str();
+            nLockTime,
+            neodata.substr(0,30).c_str());
         for (unsigned int i = 0; i < vin.size(); i++)
             str += "    " + vin[i].ToString() + "\n";
         for (unsigned int i = 0; i < vout.size(); i++)


The bug is now fixed in the last version.
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!