BitShares Forum

Main => General Discussion => Topic started by: pharesim on July 22, 2014, 09:47:57 am

Title: Segfault
Post by: pharesim on July 22, 2014, 09:47:57 am
I run two wallets for the gateway, both segfault after a couple of hours.

If you tell me how to get it I'll gladly provide more information!
Title: Re: Segfault
Post by: bytemaster on July 22, 2014, 02:25:11 pm
I run two wallets for the gateway, both segfault after a couple of hours.

If you tell me how to get it I'll gladly provide more information!

Run the wallets via gdb and when it crashes enter the command "bt" or "backtrace" and it will generate a stack dump that will let us know where things went wrong.
Title: Re: Segfault
Post by: pharesim on July 23, 2014, 10:37:24 am
Quote
#0  __memset_sse2 () at ../sysdeps/x86_64/multiarch/../memset.S:563
#1  0x0000000000cabc4c in boost::coroutines::detail::standard_stack_allocator::allocate(boost::coroutines::stack_context&, unsigned long) ()
#2  0x000000000064214b in context (t=0x7fffd00008f0, alloc=..., sf=0x642c10 <fc::thread_d::start_process_tasks(long)>, this=0x7fffd00e1190) at /home/mw/wallets/btsx/libraries/fc/src/thread/context.hpp:57
#3  fc::thread_d::start_next_fiber (this=0x7fffd0000910, reschedule=reschedule@entry=true) at /home/mw/wallets/btsx/libraries/fc/src/thread/thread_d.hpp:325
#4  0x000000000063cb1f in fc::thread::yield (this=0x7fffd00008f0, reschedule=reschedule@entry=true) at /home/mw/wallets/btsx/libraries/fc/src/thread/thread.cpp:223
#5  0x000000000063cb4a in fc::yield () at /home/mw/wallets/btsx/libraries/fc/src/thread/thread.cpp:308
#6  0x0000000000644a1d in fc::spin_yield_lock::lock (this=this@entry=0x7453ff4) at /home/mw/wallets/btsx/libraries/fc/src/thread/spin_yield_lock.cpp:41
#7  0x000000000064382e in lock (this=0x7fffe606cb30) at /home/mw/wallets/btsx/libraries/fc/include/fc/thread/unique_lock.hpp:21
#8  unique_lock (l=..., this=0x7fffe606cb30) at /home/mw/wallets/btsx/libraries/fc/include/fc/thread/unique_lock.hpp:17
#9  fc::promise_base::_set_value (this=0x7453fe8, s=s@entry=0x0) at /home/mw/wallets/btsx/libraries/fc/src/thread/future.cpp:101
#10 0x00000000006438fd in fc::promise_base::set_exception (this=<optimized out>, e=...) at /home/mw/wallets/btsx/libraries/fc/src/thread/future.cpp:42
#11 0x0000000000689019 in fc::asio::detail::error_handler (p=..., ec=...) at /home/mw/wallets/btsx/libraries/fc/src/asio.cpp:56
#12 0x0000000000c5c077 in operator()<void (*)(const fc::shared_ptr<fc::promise<void> >&, const boost::system::error_code&), boost::_bi::list1<const boost::system::error_code&> > (a=<synthetischer Zeiger>,
    f=@0x7fffe606ccc0: 0x688e90 <fc::asio::detail::error_handler(fc::shared_ptr<fc::promise<void> > const&, boost::system::error_code const&)>, this=0x7fffe606ccc8) at /usr/include/boost/bind/bind.hpp:313
#13 operator()<boost::system::error_code> (a1=..., this=0x7fffe606ccc0) at /usr/include/boost/bind/bind_template.hpp:47
#14 operator() (this=0x7fffe606ccc0) at /usr/include/boost/asio/detail/bind_handler.hpp:47
#15 asio_handler_invoke<boost::asio::detail::binder1<boost::_bi::bind_t<void, void (*)(fc::shared_ptr<fc::promise<void> > const&, boost::system::error_code const&), boost::_bi::list2<boost::_bi::value<fc::shared_ptr<fc::promise<void> > >, boost::arg<1> > >, boost::system::error_code> > (function=<Fehler beim Lesen der Variable: access outside bounds of object referenced via synthetic pointer>) at /usr/include/boost/asio/handler_invoke_hook.hpp:64
#16 invoke<boost::asio::detail::binder1<boost::_bi::bind_t<void, void (*)(fc::shared_ptr<fc::promise<void> > const&, boost::system::error_code const&), boost::_bi::list2<boost::_bi::value<fc::shared_ptr<fc::promise<void> > >, boost::arg<1> > >, boost::system::error_code>, boost::_bi::bind_t<void, void (*)(fc::shared_ptr<fc::promise<void> > const&, boost::system::error_code const&), boost::_bi::list2<boost::_bi::value<fc::shared_ptr<fc::promise<void> > >, boost::arg<1> > > > (context=..., function=...) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:37
#17 boost::asio::detail::reactive_socket_accept_op<boost::asio::basic_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::ip::tcp, boost::_bi::bind_t<void, void (*)(fc::shared_ptr<fc::promise<void> > const&, boost::system::error_code const&), boost::_bi::list2<boost::_bi::value<fc::shared_ptr<fc::promise<void> > >, boost::arg<1> > > >::do_complete (owner=0x190dc00, base=<optimized out>)
    at /usr/include/boost/asio/detail/reactive_socket_accept_op.hpp:123
#18 0x000000000068b717 in complete (bytes_transferred=<optimized out>, ec=..., owner=..., this=0x190e570) at /usr/include/boost/asio/detail/task_io_service_operation.hpp:37
#19 boost::asio::detail::task_io_service::do_run_one (this=this@entry=0x190dc00, lock=..., this_thread=..., ec=...) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:384
#20 0x000000000068c9e1 in boost::asio::detail::task_io_service::run (this=0x190dc00, ec=...) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:153
#21 0x000000000068cb6b in run (this=0x18e46e0) at /usr/include/boost/asio/impl/io_service.ipp:59
#22 operator() (__closure=<optimized out>) at /home/mw/wallets/btsx/libraries/fc/src/asio.cpp:102
#23 boost::detail::thread_data<fc::asio::default_io_service_scope::default_io_service_scope()::{lambda()#1}>::run() (this=<optimized out>) at /usr/include/boost/thread/detail/thread.hpp:117
#24 0x0000000000c79f5a in thread_proxy ()
#25 0x00007ffff75eff6e in start_thread (arg=0x7fffe606d700) at pthread_create.c:311
#26 0x00007ffff64d79cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113