{"action":"created","issue":{"url":"https://api.github.com/repos/libbitcoin/libbitcoin-server/issues/225","repository_url":"https://api.github.com/repos/libbitcoin/libbitcoin-server","labels_url":"https://api.github.com/repos/libbitcoin/libbitcoin-server/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/libbitcoin/libbitcoin-server/issues/225/comments","events_url":"https://api.github.com/repos/libbitcoin/libbitcoin-server/issues/225/events","html_url":"https://github.com/libbitcoin/libbitcoin-server/issues/225","id":159408396,"number":225,"title":"std::bad_alloc thrown during initial block download [master]","user":{"login":"RojavaCrypto","id":19536664,"avatar_url":"https://avatars.githubusercontent.com/u/19536664?v=3","gravatar_id":"","url":"https://api.github.com/users/RojavaCrypto","html_url":"https://github.com/RojavaCrypto","followers_url":"https://api.github.com/users/RojavaCrypto/followers","following_url":"https://api.github.com/users/RojavaCrypto/following{/other_user}","gists_url":"https://api.github.com/users/RojavaCrypto/gists{/gist_id}","starred_url":"https://api.github.com/users/RojavaCrypto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RojavaCrypto/subscriptions","organizations_url":"https://api.github.com/users/RojavaCrypto/orgs","repos_url":"https://api.github.com/users/RojavaCrypto/repos","events_url":"https://api.github.com/users/RojavaCrypto/events{/privacy}","received_events_url":"https://api.github.com/users/RojavaCrypto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/libbitcoin/libbitcoin-server/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-06-09T13:30:42Z","updated_at":"2016-06-12T10:26:11Z","closed_at":null,"body":"During initial blockchain download, server crashes. Ubuntu 16.04, github master. Here's the backtrace:\r\n\r\n    [Thread debugging using libthread_db enabled]\r\n    Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\r\n    Core was generated by `bs'.\r\n    Program terminated with signal SIGABRT, Aborted.\r\n    #0  0x00007f1993bcc418 in raise () from /lib/x86_64-linux-gnu/libc.so.6\r\n    [Current thread is 1 (Thread 0x7f18ff929700 (LWP 4441))]\r\n    (gdb) bt\r\n    #0  0x00007f1993bcc418 in raise () from /lib/x86_64-linux-gnu/libc.so.6\r\n    #1  0x00007f1993bce177 in abort () from /lib/x86_64-linux-gnu/libc.so.6\r\n    #2  0x00007f199420584d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n    #3  0x00007f19942036b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n    #4  0x00007f1994203701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n    #5  0x00007f1994203919 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n    #6  0x00007f1994203ebc in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n    #7  0x00007f1994a26e36 in __gnu_cxx::new_allocator<unsigned char>::allocate (this=<optimized out>, __n=<optimized out>) at /usr/include/c++/5/ext/new_allocator.h:104\r\n    #8  std::allocator_traits<std::allocator<unsigned char> >::allocate (__a=..., __n=<optimized out>) at /usr/include/c++/5/bits/alloc_traits.h:491\r\n    #9  std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_M_allocate (this=<optimized out>, __n=<optimized out>) at /usr/include/c++/5/bits/stl_vector.h:170\r\n    #10 std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_M_create_storage (__n=<optimized out>, this=<optimized out>) at /usr/include/c++/5/bits/stl_vector.h:185\r\n    #11 std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_Vector_base (__a=..., __n=<optimized out>, this=<optimized out>) at /usr/include/c++/5/bits/stl_vector.h:136\r\n    #12 std::vector<unsigned char, std::allocator<unsigned char> >::vector (__a=..., __n=<optimized out>, this=<optimized out>) at /usr/include/c++/5/bits/stl_vector.h:278\r\n    #13 libbitcoin::istream_reader::read_data (this=0x7f18ff927d80, size=4294967295) at src/utility/istream_reader.cpp:116\r\n    #14 0x00007f19949bebdf in libbitcoin::chain::operation::from_data (this=0x7f18a0009bc0, source=...) at src/chain/script/operation.cpp:98\r\n    #15 0x00007f19949becdc in libbitcoin::chain::operation::from_data (this=0x7f18a0009bc0, stream=...) at src/chain/script/operation.cpp:79\r\n    #16 0x00007f19949c86ef in libbitcoin::chain::script::parse (this=0x7f18a0009b28, raw_script=...) at src/chain/script/script.cpp:337\r\n    #17 0x00007f19949c899c in libbitcoin::chain::script::deserialize (this=0x1133, raw_script=<error reading variable: Cannot access memory at address 0x1161>, \r\n        mode=libbitcoin::chain::script::parse_mode::raw_data_fallback) at src/chain/script/script.cpp:305\r\n    #18 0x00007f19949c8c91 in libbitcoin::chain::script::from_data (this=0x7f18a0009b28, source=..., prefix=6, mode=libbitcoin::chain::script::parse_mode::raw_data_fallback)\r\n        at src/chain/script/script.cpp:177\r\n    #19 0x00007f19949b7746 in libbitcoin::chain::output::from_data (this=0x7f18a0009b20, source=...) at src/chain/output.cpp:84\r\n    #20 0x00007f19949bae22 in libbitcoin::chain::transaction::from_data (this=0x7f18a0005778, source=...) at src/chain/transaction.cpp:108\r\n    #21 0x00007f19949b1ffb in libbitcoin::chain::block::from_data (this=0x7f18a00039e0, source=..., with_transaction_count=<optimized out>) at src/chain/block.cpp:91\r\n    #22 0x00007f19949b20d3 in libbitcoin::chain::block::from_data (this=this@entry=0x7f18a00039e0, stream=..., with_transaction_count=with_transaction_count@entry=true)\r\n        at src/chain/block.cpp:80\r\n    #23 0x00007f1994d70afc in libbitcoin::network::message_subscriber::handle<libbitcoin::chain::block, std::shared_ptr<libbitcoin::resubscriber<std::error_code const&, std::shared_ptr<libbitcoin::chain::block> > > > (subscriber=..., stream=..., this=0x7f18ff928358) at ./include/bitcoin/network/message_subscriber.hpp:128\r\n    #24 libbitcoin::network::message_subscriber::load (this=this@entry=0x7f18ac0009d8, type=<optimized out>, stream=...) at src/message_subscriber.cpp:109\r\n    #25 0x00007f1994d9d7ed in libbitcoin::network::proxy::handle_read_payload (this=0x7f18ac000970, ec=..., head=...) at src/proxy.cpp:217\r\n    #26 0x00007f1994da023d in std::_Mem_fn_base<void (libbitcoin::network::proxy::*)(boost::system::error_code const&, unsigned long, libbitcoin::message::heading const&), true>::_M_call<std::shared_ptr<libbitcoin::network::proxy>&, boost::system::error_code const&, unsigned long const&, libbitcoin::message::heading&> (__ptr=..., this=0x7f18ff928cb8)\r\n        at /usr/include/c++/5/functional:634\r\n    #27 std::_Mem_fn_base<void (libbitcoin::network::proxy::*)(boost::system::error_code const&, unsigned long, libbitcoin::message::heading const&), true>::operator()<std::shared_ptr<libbitcoin::network::proxy>&, boost::system::error_code const&, unsigned long const&, libbitcoin::message::heading&, void> (__object=..., this=0x7f18ff928cb8)\r\n        at /usr/include/c++/5/functional:610\r\n    #28 std::_Bind<std::_Mem_fn<void (libbitcoin::network::proxy::*)(boost::system::error_code const&, unsigned long, libbitcoin::message::heading const&)> (std::shared_ptr<libbitcoin::network::proxy>, std::_Placeholder<1>, std::_Placeholder<2>, libbitcoin::message::heading)>::__call<void, boost::system::error_code const&, unsigned long const&, 0ul, 1ul, 2ul, 3ul>(std::tuple<boost::system::error_code const&, unsigned long const&>&&, std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (__args=<optimized out>, this=0x7f18ff928cb8)\r\n        at /usr/include/c++/5/functional:1074\r\n    #29 std::_Bind<std::_Mem_fn<void (libbitcoin::network::proxy::*)(boost::system::error_code const&, unsigned long, libbitcoin::message::heading const&)> (std::shared_ptr<libbitcoin::network::proxy>, std::_Placeholder<1>, std::_Placeholder<2>, libbitcoin::message::heading)>::operator()<boost::system::error_code const&, unsigned long const&, void>(boost::system::error_code const&, unsigned long const&) (this=0x7f18ff928cb8) at /usr/include/c++/5/functional:1133\r\n    #30 boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, std::_Bind<std::_Mem_fn<void (libbitcoin::network::proxy::*)(boost::system::error_code const&, unsigned long, libbitcoin::message::heading const&)> (std::shared_ptr<libbitcoin::network::proxy>, std::_Placeholder<1>, std::_Placeholder<2>, libbitcoin::message::heading)> >::operator()(boost::system::error_code const&, unsigned long, int) (this=this@entry=0x7f18ff928c90, ec=..., bytes_transferred=<optimized out>, start=start@entry=0) at /usr/include/boost/asio/impl/read.hpp:282\r\n    #31 0x00007f1994da04a8 in boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, std::_Bind<std::_Mem_fn<void (libbitcoin::network::proxy::*)(boost::system::error_code const&, unsigned long, libbitcoin::message::heading const&)> (std::shared_ptr<libbitcoin::network::proxy>, std::_Placeholder<1>, std::_Placeholder<2>, libbitcoin::message::heading)> >, boost::system::error_code, unsigned long>::operator()() (this=0x7f18ff928c90) at /usr/include/boost/asio/detail/bind_handler.hpp:127\r\n    #32 boost::asio::asio_handler_invoke<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service\r\n"},"comment":{"url":"https://api.github.com/repos/libbitcoin/libbitcoin-server/issues/comments/225425106","html_url":"https://github.com/libbitcoin/libbitcoin-server/issues/225#issuecomment-225425106","issue_url":"https://api.github.com/repos/libbitcoin/libbitcoin-server/issues/225","id":225425106,"user":{"login":"RojavaCrypto","id":19536664,"avatar_url":"https://avatars.githubusercontent.com/u/19536664?v=3","gravatar_id":"","url":"https://api.github.com/users/RojavaCrypto","html_url":"https://github.com/RojavaCrypto","followers_url":"https://api.github.com/users/RojavaCrypto/followers","following_url":"https://api.github.com/users/RojavaCrypto/following{/other_user}","gists_url":"https://api.github.com/users/RojavaCrypto/gists{/gist_id}","starred_url":"https://api.github.com/users/RojavaCrypto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RojavaCrypto/subscriptions","organizations_url":"https://api.github.com/users/RojavaCrypto/orgs","repos_url":"https://api.github.com/users/RojavaCrypto/repos","events_url":"https://api.github.com/users/RojavaCrypto/events{/privacy}","received_events_url":"https://api.github.com/users/RojavaCrypto/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T10:26:11Z","updated_at":"2016-06-12T10:26:11Z","body":"Re-running with `vm.swappiness=0`"}}
{"actor":{"display_login":"RojavaCrypto"}}