Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i2p crashed #300

Closed
grumbler66rus opened this issue Nov 22, 2015 · 11 comments
Closed

i2p crashed #300

grumbler66rus opened this issue Nov 22, 2015 · 11 comments

Comments

@grumbler66rus
Copy link

I run ./i2p --v6=1
Some time later i try open URL http://localhost:7070/zmw2cyw2vj7f6obx3msmdvdepdhnw2ctc4okza2zjxlukkdfckhq.b32.i2p
Result: Error 408 in the browser and i2p crashed

First:
...
23:36:48/info - TunnelMessage: handle fragment of 676 bytes. Msg type 11
23:36:48/info - Garlic
23:36:48/info - 2 cloves
23:36:48/info - Garlic type tunnel
23:36:48/info - Garlic type destination
*** Error in `./i2p': corrupted double-linked list: 0x00007f4f78005340 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7b296)[0x7f4fac130296]
/lib64/libc.so.6(+0x7c5c2)[0x7f4fac1315c2]
./i2p(_ZN3i2p6stream6Stream10SendPacketEPNS0_6PacketE+0x122)[0x4f6fac]
./i2p[0x503b6b]
./i2p[0x50363f]
./i2p[0x503075]
./i2p[0x502a22]
./i2p[0x502493]
./i2p[0x501b1a]
./i2p(_ZN5boost4asio6detail18completion_handlerISt5_BindIFSt7_Mem_fnIMN3i2p6stream6StreamEFbPNS6_6PacketEEESt10shared_ptrIS7_ES9_EEE11do_completeEPNS1_15task_io_serviceEPNS1_25task_io_service_operationERKNS_6system10error_codeEm+0xac)[0x500754]
./i2p[0x43e338]
./i2p[0x440e41]
./i2p[0x44095a]
./i2p[0x441217]
./i2p(_ZN3i2p6client17ClientDestination3RunEv+0x21)[0x548b29]
./i2p[0x55acfb]
./i2p[0x55ac8a]
./i2p[0x55abfc]
./i2p[0x55ab16]
./i2p[0x55a9cf]
./i2p[0x55a8d4]
/usr/lib64/libstdc++.so.6(+0xb2b60)[0x7f4faca2ab60]
/lib64/libpthread.so.0(+0x7f9f)[0x7f4facc82f9f]
/lib64/libc.so.6(clone+0x6d)[0x7f4fac1a025d]

Second:
...
23:41:35/info - DatabaseStore
23:41:35/info - RouterInfo
23:41:35/info - New RouterInfo added
23:41:36/info - DatabaseStore
23:41:36/info - RouterInfo
23:41:36/info - New RouterInfo added
23:41:37/info - TunnelMessage: handle fragment of 436 bytes. Msg type 11
23:41:37/info - Garlic
23:41:37/info - 1 cloves
23:41:37/info - Garlic type destination
23:41:37/debug - Received seqn=1
23:41:37/debug - Process seqn=1, flags=74
23:41:37/debug - Signature
23:41:37/info - Closed
23:41:37/info - FIN sent
23:41:37/info - FIN sent
23:41:37/debug - Stream deleted
Segmentation fault

@orignal
Copy link
Contributor

orignal commented Nov 22, 2015

let me check. might be ipv6 specific issue. haven't tried it for a while

@orignal
Copy link
Contributor

orignal commented Nov 22, 2015

ipv6 works fine
But I see your crash is related to streams. What did you try to do?

@grumbler66rus
Copy link
Author

without "-v6=1" i2p crashed too, in these point:

./i2p(_ZN3i2p6client17ClientDestination3RunEv+0x21)[0x548b29]

@orignal
Copy link
Contributor

orignal commented Nov 22, 2015

Can you run it with debug?

@grumbler66rus
Copy link
Author

gdb> backtrace
#0 0x00007ffff5c112a5 in raise () from /lib64/libc.so.6
#1 0x00007ffff5c12728 in abort () from /lib64/libc.so.6
#2 0x00007ffff5c5164b in ?? () from /lib64/libc.so.6
#3 0x00007ffff5c57296 in ?? () from /lib64/libc.so.6
#4 0x00007ffff5c574c0 in ?? () from /lib64/libc.so.6
#5 0x00007ffff5c58817 in ?? () from /lib64/libc.so.6
#6 0x00007ffff5c5ad33 in malloc () from /lib64/libc.so.6
#7 0x00007ffff64fe61d in operator new(unsigned long) () from /usr/lib64/libstdc++.so.6
#8 0x000000000045cfa2 in __gnu_cxx::new_allocator<std::_Sp_counted_ptr_inplace<i2p::util::HTTPConnection, std::allocatori2p::util::HTTPConnection, (__gnu_cxx::Lock_policy)2> >::allocate (this=0x7ffff22fb5c7, __n=1) at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/ext/new_allocator.h:94
#9 0x000000000045bc8a in std::allocator_traits<std::allocator<std::Sp_counted_ptr_inplace<i2p::util::HTTPConnection, std::allocatori2p::util::HTTPConnection, (__gnu_cxx::Lock_policy)2> > >::allocate (__a=..., __n=1) at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/bits/alloc_traits.h:349
#10 0x000000000045a2a2 in std::__shared_count<(__gnu_cxx::Lock_policy)2>::__shared_count<i2p::util::HTTPConnection, std::allocatori2p::util::HTTPConnection, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_serviceboost::asio::ip::tcp >&> (this=0x7ffff22fb758, __a=...)
at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/bits/shared_ptr_base.h:522
#11 0x0000000000458060 in std::__shared_ptr<i2p::util::HTTPConnection, (__gnu_cxx::Lock_policy)2>::__shared_ptrstd::allocator<i2p::util::HTTPConnection, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_serviceboost::asio::ip::tcp >&> (this=0x7ffff22fb750, __tag=..., __a=...)
at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/bits/shared_ptr_base.h:997
#12 0x000000000045525a in std::shared_ptri2p::util::HTTPConnection::shared_ptrstd::allocator<i2p::util::HTTPConnection, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_serviceboost::asio::ip::tcp >
&> (this=0x7ffff22fb750, __tag=..., __a=...)
at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/bits/shared_ptr.h:317
#13 0x0000000000450b1a in std::allocate_shared<i2p::util::HTTPConnection, std::allocatori2p::util::HTTPConnection, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_serviceboost::asio::ip::tcp >
&> (__a=...) at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/bits/shared_ptr.h:599
#14 0x000000000044b23c in std::make_shared<i2p::util::HTTPConnection, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_serviceboost::asio::ip::tcp >
&> () at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/bits/shared_ptr.h:615
#15 0x000000000043a8f6 in i2p::util::HTTPServer::CreateConnection (this=0xa32730, m_NewSocket=0x7fffcc004e10) at HTTPServer.cpp:1122
#16 0x000000000043a8c4 in i2p::util::HTTPServer::HandleAccept (this=0xa32730, ecode=...) at HTTPServer.cpp:1115
#17 0x000000000045f628 in boost::_mfi::mf1<void, i2p::util::HTTPServer, boost::system::error_code const&>::operator() (this=0x7ffff22fb940, p=0xa32730, a1=...)
at /usr/include/boost/bind/mem_fn_template.hpp:165
#18 0x000000000045ee86 in boost::_bi::list2<boost::bi::valuei2p::util::HTTPServer_, boost::arg<1> ()()>::operator()<boost::_mfi::mf1<void, i2p::util::HTTPServer, boost::system::error_code const&>, boost::_bi::list1<boost::system::error_code const&> > (this=0x7ffff22fb950, f=..., a=...) at /usr/include/boost/bind/bind.hpp:313
#19 0x000000000045e4aa in boost::_bi::bind_t<void, boost::_mfi::mf1<void, i2p::util::HTTPServer, boost::system::error_code const&>, boost::_bi::list2<boost::bi::valuei2p::util::HTTPServer_, boost::arg<1> ()()> >::operator()boost::system::error_code (this=0x7ffff22fb940, a1=...) at /usr/include/boost/bind/bind_template.hpp:47
#20 0x000000000045dbd7 in boost::asio::detail::binder1<boost::_bi::bind_t<void, boost::_mfi::mf1<void, i2p::util::HTTPServer, boost::system::error_code const&>, boost::_bi::list2<boost::bi::valuei2p::util::HTTPServer_, boost::arg<1> ()()> >, boost::system::error_code>::operator() (this=0x7ffff22fb940)
at /usr/include/boost/asio/detail/bind_handler.hpp:46
#21 0x000000000045ceca in boost::asio::asio_handler_invoke<boost::asio::detail::binder1<boost::_bi::bind_t<void, boost::_mfi::mf1<void, i2p::util::HTTPServer, boost::system::error_code const&>, boost::_bi::list2<boost::bi::valuei2p::util::HTTPServer_, boost::arg<1> ()()> >, boost::system::error_code> > (function=...)
at /usr/include/boost/asio/handler_invoke_hook.hpp:64
#22 0x000000000045ba9e in boost_asio_handler_invoke_helpers::invoke<boost::asio::detail::binder1<boost::_bi::bind_t<void, boost::_mfi::mf1<void, i2p::util::HTTPServer, boost::system::error_code const&>, boost::_bi::list2<boost::bi::valuei2p::util::HTTPServer_, boost::arg<1> ()()> >, boost::system::error_code>, boost::_bi::bind_t<void, boost::_mfi::mf1<void, i2p::util::HTTPServer, boost::system::error_code const&>, boost::_bi::list2<boost::bi::valuei2p::util::HTTPServer_, boost::arg<1> ()()> > > (
function=..., context=...) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:39
#23 0x000000000045a152 in boost::asio::detail::reactive_socket_accept_op<boost::asio::basic_socket<boost::asio::ip::tcp, boost::asio::stream_socket_serviceboost::asio::ip::tcp >, boost::asio::ip::tcp, boost::_bi::bind_t<void, boost::_mfi::mf1<void, i2p::util::HTTPServer, boost::system::error_code const&>, boost::_bi::list2<boost::bi::valuei2p::util::HTTPServer_, boost::arg<1> ()()> > >::do_complete (owner=0x9c0920, base=0x7fffcc004cf0) at /usr/include/boost/asio/detail/reactive_socket_accept_op.hpp:123
#24 0x000000000043e338 in boost::asio::detail::task_io_service_operation::complete (this=0x7fffcc004cf0, owner=..., ec=..., bytes_transferred=0)
at /usr/include/boost/asio/detail/task_io_service_operation.hpp:37
#25 0x00000000004402cd in boost::asio::detail::epoll_reactor::descriptor_state::do_complete (owner=0x9c0920, base=0x9bfb30, ec=..., bytes_transferred=1)
at /usr/include/boost/asio/detail/impl/epoll_reactor.ipp:650
#26 0x000000000043e338 in boost::asio::detail::task_io_service_operation::complete (this=0x9bfb30, owner=..., ec=..., bytes_transferred=1)
at /usr/include/boost/asio/detail/task_io_service_operation.hpp:37
#27 0x0000000000440e41 in boost::asio::detail::task_io_service::do_run_one (this=0x9c0920, lock=..., this_thread=..., ec=...)
at /usr/include/boost/asio/detail/impl/task_io_service.ipp:412
#28 0x000000000044095a in boost::asio::detail::task_io_service::run (this=0x9c0920, ec=...) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:153
#29 0x0000000000441217 in boost::asio::io_service::run (this=0xa32740) at /usr/include/boost/asio/impl/io_service.ipp:59
#30 0x000000000043a7cc in i2p::util::HTTPServer::Run (this=0xa32730) at HTTPServer.cpp:1101
#31 0x00000000004613e3 in std::Mem_fn<void (i2p::util::HTTPServer::)()>::operator() (this=0xa30e80, __object=0xa32730)
at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/functional:554
#32 0x0000000000461342 in std::_Bind<std::Mem_fn<void (i2p::util::HTTPServer::*)()> (i2p::util::HTTPServer)>::__call<void, , 0ul>(std::tuple<>&&, std::_Index_tuple<0ul>) (
this=0xa30e80, __args=empty std::tuple) at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/functional:1156
#33 0x00000000004612b4 in std::Bind<std::Mem_fn<void (i2p::util::HTTPServer::)()> (i2p::util::HTTPServer)>::operator()<, void>() (this=0xa30e80)
at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/functional:1215
#34 0x000000000046120a in std::_Bind_simple<std::Bind<std::Mem_fn<void (i2p::util::HTTPServer::)()> (i2p::util::HTTPServer)> ()>::_M_invoke<>(std::_Index_tuple<>) (
this=0xa30e80) at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/functional:1598
#35 0x0000000000460d11 in std::_Bind_simple<std::Bind<std::Mem_fn<void (i2p::util::HTTPServer::)()> (i2p::util::HTTPServer)> ()>::operator()() (this=0xa30e80)
at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/functional:1586
#36 0x0000000000460548 in std::thread::_Impl<std::_Bind_simple<std::_Bind<std::Mem_fn<void (i2p::util::HTTPServer::)()> (i2p::util::HTTPServer*)> ()> >::_M_run() (
this=0xa30e68) at /usr/lib64/gcc/x86_64-alt-linux/4.7.2/../../../../include/c++/4.7.2/thread:115
#37 0x00007ffff6551b60 in ?? () from /usr/lib64/libstdc++.so.6
#38 0x00007ffff67a9f9f in start_thread () from /lib64/libpthread.so.0
#39 0x00007ffff5cc725d in clone () from /lib64/libc.so.6

@orignal
Copy link
Contributor

orignal commented Nov 22, 2015

That's different issue. What are you trying to click at web page?

@grumbler66rus
Copy link
Author

In all cases (without gdb and with gdb)
I try URL http://localhost:7070/4oes3rlgrpbkmzv4lqcfili23h3cvpwslqcfjlk6vvguxyggspwa.b32.i2p or http://localhost:7070/zmw2cyw2vj7f6obx3msmdvdepdhnw2ctc4okza2zjxlukkdfckhq.b32.i2p in the browser. The browser displayed "408 Request timeout". Next I click "Reload" and i2p crashes

@orignal
Copy link
Contributor

orignal commented Nov 22, 2015

Please don't this stuff, it's deprecated and will be removed soon.
Use HTTP proxy though port 4446 for access to eepsites instead

@orignal
Copy link
Contributor

orignal commented Nov 23, 2015

If you still want to use it this way I have fixed it

@grumbler66rus
Copy link
Author

Please don't this stuff, it's deprecated and will be removed soon.
Use HTTP proxy though port 4446 for access to eepsites instead

HTTP poxy connection works fine. It is need mark obsoleted for the of "http://localhost:7070/*.b32.i2p" in the readme.md.

Also i look outdated manual in the "build" subdirectory of sources.

@orignal
Copy link
Contributor

orignal commented Nov 23, 2015

Readme.md has been changed already. This feature is also fixed now

@orignal orignal closed this as completed Dec 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants