Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: 0.4.9 Segfault [SOLVED]  (Read 601 times)

0 Members and 1 Guest are viewing this topic.

Offline ionx

  • Newbie
  • *
  • Posts: 19
    • View Profile
0.4.9 Segfault [SOLVED]
« on: August 28, 2014, 06:14:28 PM »

Just putting this out there for the devs.

Code: [Select]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./BitSharesX'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f8b3192a0db in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x00007f8b3192a0db in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x0000000000a6002b in operator()<std::basic_string<char>&> (var=<error reading variable: Cannot access memory at address 0x1d>, key="\b", this=0x7f8a8bcf86c0)
    at /home/deleted/bitsharesx/libraries/fc/include/fc/variant_object.hpp:176
#2  fc::log_context::to_variant ([email protected]=0x7f8a4c082310) at /home/deleted/bitsharesx/libraries/fc/src/log/log_message.cpp:163
#3  0x0000000000a60e23 in fc::to_variant (l=..., v=...) at /home/deleted/bitsharesx/libraries/fc/src/log/log_message.cpp:89
#4  0x0000000000a61009 in variant<fc::log_context> (val=..., this=0x7f8a8bcf8900) at /home/deleted/bitsharesx/libraries/fc/include/fc/variant.hpp:421
#5  mutable_variant_object<fc::log_context&> (val=...,
    key="8=\r^\212\177\000\000\024ޠ\000\000\000\000\[email protected]\251B\\\212\177\000\000\260\022\374[\212\177\000\000\350\024\004^\212\177\000\000\340\242\254[\212\177\000\000H\206\255\207\212\177\000\000\004\000\000\000\000\000\000\000\260\022\374[\212\177\000\000\243\244\241\000\000\000\000\000`\213ϋ\212\177\000\000\200\211ϋ\212\177", '\000' <repeats 18 times>, "@\212ϋ\212\177\000\000\260\022\374[\212\177\000\[email protected]\212ϋ\212\177\000\000 \000\000؊\177\000\000\020\000\000\000\000\000\000\000\260\212ϋ\212\177\000\000\220\211ϋ\212\177\000\000طUL\212\177\000\000\260\212ϋ\212\177\000\000\000\000\000\000\000\000\000\000\340\306\301U\212\177\000\000"..., this=0x7f8a8bcf88b0)
    at /home/deleted/bitsharesx/libraries/fc/include/fc/variant_object.hpp:197
#6  fc::log_message::to_variant (this=<optimized out>) at /home/deleted/bitsharesx/libraries/fc/src/log/log_message.cpp:195
#7  0x0000000000a61723 in fc::to_variant (m=..., v=...) at /home/deleted/bitsharesx/libraries/fc/src/log/log_message.cpp:103
#8  0x0000000000a17194 in variant<fc::log_message> (val=..., this=0x7f8a8bcf8990) at /home/deleted/bitsharesx/libraries/fc/include/fc/variant.hpp:421
Python Exception <type 'exceptions.TypeError'> instance has no next() method:
#9  fc::to_variant<fc::log_message> (t=std::vector of length 1, capacity 1, v=...) at /home/deleted/bitsharesx/libraries/fc/include/fc/variant.hpp:394
Python Exception <type 'exceptions.TypeError'> instance has no next() method:
#10 0x0000000000a13bac in variant<std::vector<fc::log_message> > (val=std::vector of length 1, capacity 1, this=0x7f8a8bcf8ab0)
    at /home/deleted/bitsharesx/libraries/fc/include/fc/variant.hpp:421
Python Exception <type 'exceptions.TypeError'> instance has no next() method:
#11 operator()<const std::vector<fc::log_message>&> (var=std::vector of length 1, capacity 1,
    key="X)\370Y\212\177\000\000 \000\000؊\177\000\000\032\000\000\000\000\000\000\000_\213ϋ\212\177\000\000\020q`ي\177\000\000\b-\000\270\212\177\000\000\000\000\000\000\000\000\000\000\260a\002\061\213\177", '\000' <repeats 18 times>, "ؕ\246\001\000\000\000\000 \000\000؊\177\000\000\240\213ϋ\212\177\000\000\260\213ϋ\212\177\000\000p\213ϋ\212\177\000\000;\246g\000\000\000\000\000\340\213ϋ\212\177\000\000\260a\002\061\213\177\000\000_\213ϋ\212\177\000\000\030", '\000' <repeats 23 times>, "\240\213ϋ\212\177\000\000\320\350eL\212\177\000\000\260\213ϋ\212\177\000\000"..., this=0x7f8a8bcf8a40) at /home/deleted/bitsharesx/libraries/fc/include/fc/variant_object.hpp:176
#12 fc::to_variant (e=..., v=...) at /home/deleted/bitsharesx/libraries/fc/src/exception.cpp:114
#13 0x000000000067a63b in variant<fc::exception> (val=..., this=0x7f8a8bcf8b10) at /home/deleted/bitsharesx/libraries/fc/include/fc/variant.hpp:421
#14 fc::mutable_variant_object::operator()<fc::exception const&> (this=0x7f8a8bcf8ba0, key="e", var=...)
    at /home/deleted/bitsharesx/libraries/fc/include/fc/variant_object.hpp:176
#15 0x0000000000b8820e in bts::net::peer_connection::destroy ([email protected]=0x7f8a4ca0c8f0) at /home/deleted/bitsharesx/libraries/net/peer_connection.cpp:84
#16 0x0000000000b8ac8b in bts::net::peer_connection::~peer_connection ([email protected]=0x7f8a4ca0c8f0, __in_chrg=<optimized out>)
    at /home/deleted/bitsharesx/libraries/net/peer_connection.cpp:95
#17 0x0000000000b8cdd1 in ~peer_connection (this=0x7f8a4ca0c8f0, __in_chrg=<optimized out>) at /home/deleted/bitsharesx/libraries/net/peer_connection.cpp:96
#18 std::_Sp_counted_ptr<bts::net::peer_connection*, (__gnu_cxx::_Lock_policy)2>::_M_dispose (this=<optimized out>) at /usr/include/c++/4.9/bits/shared_ptr_base.h:373
#19 0x0000000000b36afa in _M_release (this=0x7f8a4c735910) at /usr/include/c++/4.9/bits/shared_ptr_base.h:149
#20 ~__shared_count (this=0x7f8a5d13ffe8, __in_chrg=<optimized out>) at /usr/include/c++/4.9/bits/shared_ptr_base.h:666
#21 ~__shared_ptr (this=0x7f8a5d13ffe0, __in_chrg=<optimized out>) at /usr/include/c++/4.9/bits/shared_ptr_base.h:914
#22 ~shared_ptr (this=0x7f8a5d13ffe0, __in_chrg=<optimized out>) at /usr/include/c++/4.9/bits/shared_ptr.h:93
#23 ~_List_node (this=0x7f8a5d13ffd0, __in_chrg=<optimized out>) at /usr/include/c++/4.9/bits/stl_list.h:106
#24 destroy<std::_List_node<std::shared_ptr<bts::net::peer_connection> > > (this=<optimized out>, __p=0x7f8a5d13ffd0) at /usr/include/c++/4.9/ext/new_allocator.h:124
#25 std::_List_base<std::shared_ptr<bts::net::peer_connection>, std::allocator<std::shared_ptr<bts::net::peer_connection> > >::_M_clear ([email protected]=0x7f8ad85cb1b8)
    at /usr/include/c++/4.9/bits/list.tcc:75
#26 0x0000000000af1b65 in clear (this=0x7f8ad85cb1b8) at /usr/include/c++/4.9/bits/stl_list.h:1304
#27 bts::net::detail::node_impl::delayed_peer_deletion_task (this=0x7f8ad85cad80) at /home/deleted/bitsharesx/libraries/net/node.cpp:1298
#28 0x0000000000af1b8c in operator() (__closure=<optimized out>) at /home/deleted/bitsharesx/libraries/net/node.cpp:1314
#29 fc::detail::void_functor_run<bts::net::detail::node_impl::schedule_peer_for_deletion(const peer_connection_ptr&)::<lambda()> >::run(void *, void *) (
    functor=<optimized out>, prom=0x7f8a4c6def00) at /home/deleted/bitsharesx/libraries/fc/include/fc/thread/task.hpp:56
---Type <return> to continue, or q <return> to quit---
#30 0x0000000000a22025 in fc::task_base::run_impl (this=0x7f8a4c6def10) at /home/deleted/bitsharesx/libraries/fc/src/thread/task.cpp:42
#31 0x0000000000a20bc3 in run_next_task (this=<optimized out>) at /home/deleted/bitsharesx/libraries/fc/src/thread/thread_d.hpp:379
#32 fc::thread_d::process_tasks (this=0x7f8ad80008c0) at /home/deleted/bitsharesx/libraries/fc/src/thread/thread_d.hpp:402
#33 0x0000000000a20df1 in fc::thread_d::start_process_tasks (my=140234306095296) at /home/deleted/bitsharesx/libraries/fc/src/thread/thread_d.hpp:359
#34 0x0000000000d911de in make_fcontext ()
#35 0x00007f8ad80008c0 in ?? ()
#36 0x00007f8ad85cb1a8 in ?? ()
#37 0x0000000000000000 in ?? ()
« Last Edit: September 04, 2014, 09:00:46 PM by ionx »

Offline ionx

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: 0.4.9 Segfault
« Reply #1 on: August 28, 2014, 07:57:46 PM »
One more:

Code: [Select]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./BitSharesX'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  size (this=0x16b5872) at /usr/include/c++/4.9/bits/basic_string.h:725
725       { return _M_rep()->_M_length; }
(gdb) bt
#0  size (this=0x16b5872) at /usr/include/c++/4.9/bits/basic_string.h:725
#1  fc::operator<< (o=..., v=<error reading variable: Cannot access memory at address 0x6f6973613a3a634e>) at /home/deleted/bitsharesx/libraries/fc/src/io/iostream.cpp:196
#2  0x0000000000a1492b in fc::exception::to_detail_string ([email protected]=0x7fb780ee3a20, ll=..., [email protected]=...)
    at /home/deleted/bitsharesx/libraries/fc/src/exception.cpp:144
#3  0x0000000000b8e302 in bts::net::detail::message_oriented_connection_impl::read_loop (this=<optimized out>)
    at /home/deleted/bitsharesx/libraries/net/message_oriented_connection.cpp:198
#4  0x0000000000b8f25c in operator() (__closure=<optimized out>) at /home/deleted/bitsharesx/libraries/net/message_oriented_connection.cpp:125
#5  fc::detail::void_functor_run<bts::net::detail::message_oriented_connection_impl::connect_to(const fc::ip::endpoint&)::<lambda()> >::run(void *, void *) (
    functor=<optimized out>, prom=0x7fb7b199cdf0) at /home/deleted/bitsharesx/libraries/fc/include/fc/thread/task.hpp:56
#6  0x0000000000a22025 in fc::task_base::run_impl (this=0x7fb7b199ce00) at /home/deleted/bitsharesx/libraries/fc/src/thread/task.cpp:42
#7  0x0000000000a20bc3 in run_next_task (this=<optimized out>) at /home/deleted/bitsharesx/libraries/fc/src/thread/thread_d.hpp:379
#8  fc::thread_d::process_tasks (this=0x7fb8040008c0) at /home/deleted/bitsharesx/libraries/fc/src/thread/thread_d.hpp:402
#9  0x0000000000a20df1 in fc::thread_d::start_process_tasks (my=140428317821120) at /home/deleted/bitsharesx/libraries/fc/src/thread/thread_d.hpp:359
#10 0x0000000000d911de in make_fcontext ()
#11 0x00007fb8040008c0 in ?? ()
#12 0x00007fb8045cbb68 in ?? ()
#13 0x00007fb7d3ca5880 in ?? ()
#14 0x00007fb8045cbb78 in ?? ()
#15 0x00007fb7d3ca5c20 in ?? ()
#16 0x0000000000000000 in ?? ()

Threading issue?

Offline vikram

Re: 0.4.9 Segfault
« Reply #2 on: August 29, 2014, 09:07:32 PM »
Crash #1 should hopefully be fixed in 0.4.10. Crash #2 we are looking into: https://github.com/BitShares/bitshares_toolkit/issues/693

Offline ionx

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: 0.4.9 Segfault [SOLVED]
« Reply #3 on: September 04, 2014, 09:00:23 PM »
Somewhere in the past couple releases these appear to have been fixed. Marking as solved.

 

Google+