Skip to content

Instantly share code, notes, and snippets.

View cryptocode's full-sized avatar

Roger cryptocode

View GitHub Profile
# rai_node seems to consume a lot of file descriptors on
# some OS's. The following sysctl changes decrease timout for
# lingering time_wait connections and enables recycling of
# sockets in that state.
# edit with sudo vi /etc/sysctl.conf
# apply with sudo /sbin/sysctl -p
net.ipv4.tcp_fin_timeout = 20
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
COUNTS
======
14:48:51,traffic,all,in,108879328
14:48:51,traffic,all,out,391517992
14:48:51,message,all,in,428575
14:48:51,message,all,out,1561034
14:48:50,message,keepalive,in,307
14:48:50,message,keepalive,out,3538
14:48:51,message,publish,in,11027
14:48:47,message,publish,out,74794
{
"type": "counters",
"created": "2018.05.05 13:00:25",
"entries": [
{
"time": "13:00:25",
"type": "traffic",
"detail": "all",
"dir": "in",
"value": "101721112"
{
"type": "counters",
"created": "2018.05.05 13:31:20",
"entries": [
{
"time": "13:31:20",
"type": "traffic",
"detail": "all",
"dir": "in",
"value": "101984968"
{
"type": "counters",
"created": "2018.05.05 14:33:29",
"entries": [
{
"time": "14:33:29",
"type": "traffic",
"detail": "all",
"dir": "in",
"value": "132549128"
// Using deadlines. This can still be mixed with iterations if need be.
system.deadline_set(10s);
while (!system.nodes[0]->ledger.block_exists (send->hash ()))
{
ASSERT_FALSE (system.poll ());
}
auto done (false);
while (!done)
{
Thread 17 "rai_node" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fdfc9ffb700 (LWP 11728)]
__memmove_sse2_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:332
332 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
(gdb) backtrace
#0 __memmove_sse2_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:332
#1 0x00005555556d0fc6 in rai::wallet::search_pending (this=this@entry=0x555555cdfdb0) at /home/user/rai_build/rai/node/wallet.cpp:1133
#2 0x00005555556d1ca4 in rai::wallet::<lambda()>::operator() (__closure=<synthetic pointer>) at /home/user/rai_build/rai/node/wallet.cpp:754
#3 boost::asio::asio_handler_invoke<rai::wallet::enter_password(const string&)::<lambda()> > (function=<synthetic pointer>...) at /home/user/[boost]/include/boost/asio/handler_invoke_hook.hpp:69
#4 boost_asio_handler_invoke_helpers::invoke<rai::wallet::enter_password(const string&)::<lambda()>, rai::wallet::enter_passwor
[ RUN ] frontier_req.begin
ASAN:DEADLYSIGNAL
=================================================================
==22181==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x7fff5f451f6d bp 0x7ffeec9b57e0 sp 0x7ffeec9b57e0 T0)
==22181==The signal is caused by a READ memory access.
==22181==Hint: address points to the zero page.
#0 0x7fff5f451f6c in _platform_memmove$VARIANT$Haswell (libsystem_platform.dylib:x86_64+0x4f6c)
#1 0x1053ac58f in __asan_memcpy (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x4f58f)
#2 0x103c5ed03 in rai::mdb_store::upgrade_v2_to_v3(rai::transaction const&) algorithm:1828
#3 0x103c5a3c7 in rai::mdb_store::do_upgrades(rai::transaction const&) lmdb.cpp:857
Blocks via old votes: 374015
Blocks via VBH: 74995
Distribution of VBH messages by # entries:
Entries Messages
1 1478
2 2062
3 1998
[2018-09-20 20:54:42.895820]: Resolving fork between our block: ED9A348EE0F8D2B74610FBE1B9E94A141EF17D5B3C219811B3C6747C9D826B2C and block 8D3037DF2EF47016DE84B67CDFCA146AB9ECF4917F8A0D71686C372EA22B8376 both with root F0F25D2F29BBE4EECD7D9F96F403BBC8D0A4CFD5B99F3B06939456CB91953B8C
[2018-09-20 20:54:42.896728]: Broadcasting confirm req for block ED9A348EE0F8D2B74610FBE1B9E94A141EF17D5B3C219811B3C6747C9D826B2C to 267 representatives
[2018-09-20 20:54:42.974217]: Block 8D3037DF2EF47016DE84B67CDFCA146AB9ECF4917F8A0D71686C372EA22B8376 was republished to peers
[2018-09-20 20:54:45.453918]: 77 blocks in processing queue
[2018-09-20 20:54:46.476194]: Found a representative at [::ffff:94.16.114.235]:7075
[2018-09-20 20:54:46.478143]: Found a representative at [::ffff:165.227.233.79]:7075
[2018-09-20 20:54:50.326676]: Block C4933C189C21B73C1A89DC16817D762B87863A0A5D74B94A8E5BC1074B12FF97 was republished to peers
[2018-09-20 20:54:50.327653]: Block 48242179C99309ADBA050978D5619F10EC5779B25BEA2DD2BC81C6298E20E84B was r