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

terminate called after throwing an instance of 'torrent::internal_error' #189

Closed
Jellyfrog opened this issue Apr 10, 2014 · 17 comments
Closed

Comments

@Jellyfrog
Copy link

Sometimes when stopping/starting torrent [via rutorrent (xmlrpc)] rtorrent crashes.
Not sure if rutorrent is doing something bad or not, either way rtorrent shouldn't crash

rakshasa/libtorrent@680576e
38f39bd
xmlrpc-c@1.25.27

terminate called after throwing an instance of 'torrent::internal_error' what():  
 'm_state == STATE_COMPLETED && m_leader == NULL' Aborted




 terminate called after throwing an instance of 'torrent::internal_error'
                                                                         what():  Block dtor with 'm_state == STATE_COMPLETED && m_leader == NULL'

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffe8585700 (LWP 28055)]
0x00007ffff5ca4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff5ca4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff5ca76f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff671689d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff6714996 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff67149c3 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff6714bee in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffff7456c28 in torrent::Block::~Block (this=0x4ce7818, __in_chrg=<optimized out>) at block.cc:60
#7  0x00007ffff74596af in clear (this=0x2f58ff0) at block_list.h:67
#8  ~no_copy_vector (this=0x2f58ff0, __in_chrg=<optimized out>) at block_list.h:60
#9  torrent::BlockList::~BlockList (this=0x2f58ff0, __in_chrg=<optimized out>) at block_list.cc:77
#10 0x00007ffff7460068 in operator() (t=0x2f58ff0, this=<optimized out>) at ../../../rak/functional.h:397
#11 for_each<__gnu_cxx::__normal_iterator<torrent::BlockList**, std::vector<torrent::BlockList*> >, rak::call_delete<torrent::BlockList> > (__f=..., __last=..., __first=...) at /usr/include/c++/4.7/bits/stl_algo.h:4442
#12 torrent::TransferList::clear (this=0x2755158) at transfer_list.cc:82
#13 0x00007ffff74ad952 in torrent::DownloadMain::close (this=0x27550b0) at download_main.cc:196
#14 0x00007ffff74b4ad3 in torrent::DownloadWrapper::close (this=0x2750c10) at download_wrapper.cc:145
#15 0x00000000004b70fa in core::DownloadList::close_throw (this=0x784180, download=0x9f0970) at download_list.cc:323
#16 0x000000000045e1d4 in operator() (__args#0=<optimized out>, __object=<optimized out>, this=<optimized out>) at /usr/include/c++/4.7/tr1/functional:586
#17 __call<core::Download*&, torrent::Object const&, 0, 1> (__args=..., this=<optimized out>) at /usr/include/c++/4.7/tr1/functional:1179
#18 operator()<core::Download*, const torrent::Object> (this=<optimized out>) at /usr/include/c++/4.7/tr1/functional:1233
#19 operator()<core::Download*, const torrent::Object> (arg2=..., arg1=<synthetic pointer>, this=<optimized out>) at command_helpers.h:182
#20 std::tr1::_Function_handler<torrent::Object (core::Download*, torrent::Object const&), object_convert_type<std::tr1::_Bind<std::tr1::_Mem_fn<void (core::DownloadList::*)(core::Download*)> (core::DownloadList*, std::tr1::_Placeholder<1>)>, void> >::_M_invoke(std::tr1::_Any_data const&, core::Download*, torrent::Object const&) (__functor=..., __args#0=<optimized out>, __args#1=...) at /usr/include/c++/4.7/tr1/functional:1784
#21 0x00000000004e4e7c in operator() (__args#1=..., __args#0=<optimized out>, this=0x7b7688) at /usr/include/c++/4.7/tr1/functional:2154
#22 _call<std::tr1::function<torrent::Object(core::Download*, const torrent::Object&)>, core::Download*, torrent::Object> (args=..., target=..., cmd=0x7b7688) at command.h:249
#23 rpc::command_base_call<core::Download*> (rawCommand=0x7b7688, target=..., args=...) at command.cc:59
#24 0x00000000004ea88d in rpc::CommandMap::call_command (this=<optimized out>, itr=..., arg=..., target=...) at command_map.cc:176
#25 0x0000000000500b95 in rpc::xmlrpc_call_command (env=0x7fffe8584b00, args=0x7fffd8032b10, voidServerInfo=<optimized out>) at xmlrpc.cc:495
#26 0x00007ffff71fefb8 in callNamedMethod (resultPP=0x7fffe8584af0, callInfoP=0x0, paramArrayP=0x7fffd8032b10, methodP=<optimized out>, envP=0x7fffe8584b00) at registry.c:312
#27 xmlrpc_dispatchCall (envP=envP@entry=0x7fffe8584b00, registryP=registryP@entry=0x7d89d0, methodName=0x7fffd82a05a0 "d.close", paramArrayP=0x7fffd8032b10, callInfoP=callInfoP@entry=0x0, resultPP=resultPP@entry=0x7fffe8584af0)
    at registry.c:337
#28 0x00007ffff7200505 in callOneMethod (resultPP=<synthetic pointer>, callInfo=0x0, rpcDescP=0x7fffd8032930, registryP=0x7d89d0, envP=0x7fffe8584bd0) at system_method.c:80
#29 system_multicall (envP=0x7fffe8584bd0, paramArrayP=<optimized out>, serverInfo=0x7d89d0, callInfo=0x0) at system_method.c:176
#30 0x00007ffff71fef81 in callNamedMethod (resultPP=0x7fffe8584bc8, callInfoP=0x0, paramArrayP=0x7fffd82d07c0, methodP=<optimized out>, envP=0x7fffe8584bd0) at registry.c:307
#31 xmlrpc_dispatchCall (envP=envP@entry=0x7fffe8584bd0, registryP=registryP@entry=0x7d89d0, methodName=0x7fffd80a6be0 "system.multicall", paramArrayP=0x7fffd82d07c0, callInfoP=callInfoP@entry=0x0, resultPP=resultPP@entry=0x7fffe8584bc8)
    at registry.c:337
#32 0x00007ffff71ff0ca in xmlrpc_registry_process_call2 (envP=0x7fffe8584c80, registryP=0x7d89d0,
    callXml=0x7fffd829d380 "<?xml version=\"1.0\" encoding=\"UTF-8\"?><methodCall><methodName>system.multicall</methodName><params><param><value><array><data><value><struct><member><name>methodName</name><value><string>d.stop</strin"..., callXmlLen=11685, callInfo=callInfo@entry=0x0, responseXmlPP=responseXmlPP@entry=0x7fffe8584c58) at registry.c:426
#33 0x00007ffff71ff227 in xmlrpc_registry_process_call (envP=<optimized out>, registryP=<optimized out>, host=<optimized out>, callXml=<optimized out>, callXmlLen=<optimized out>) at registry.c:466
---Type <return> to continue, or q <return> to quit---
#34 0x00000000004fe484 in rpc::XmlRpc::process(char const*, unsigned int, std::tr1::function<bool (char const*, unsigned int)>) (this=0x7608a0,
    inBuffer=0x7fffd829d380 "<?xml version=\"1.0\" encoding=\"UTF-8\"?><methodCall><methodName>system.multicall</methodName><params><param><value><array><data><value><struct><member><name>methodName</name><value><string>d.stop</strin"..., length=11685, slotWrite=...) at xmlrpc.cc:534
#35 0x00000000004fcdcc in rpc::SCgi::receive_call (this=<optimized out>, task=<optimized out>,
    buffer=0x7fffd829d380 "<?xml version=\"1.0\" encoding=\"UTF-8\"?><methodCall><methodName>system.multicall</methodName><params><param><value><array><data><value><struct><member><name>methodName</name><value><string>d.stop</strin"...,
    length=11685) at scgi.cc:175
#36 0x00000000004fdae1 in rpc::SCgiTask::event_read (this=0x80ca80) at scgi_task.cc:191
#37 0x00007ffff744cd0b in torrent::PollEPoll::perform (this=this@entry=0x7a3a00) at poll_epoll.cc:185
#38 0x00007ffff744cdb2 in torrent::PollEPoll::do_poll (this=0x7a3a00, timeout_usec=<optimized out>, flags=<optimized out>) at poll_epoll.cc:219
#39 0x00007ffff7481d5c in torrent::thread_base::event_loop (thread=0x7a2e40) at thread_base.cc:174
#40 0x00007ffff6003b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#41 0x00007ffff5d4e0ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
#42 0x0000000000000000 in ?? ()
(gdb)
@rakshasa
Copy link
Owner

Does rtorrent crash when you do start/stop using the ncurses interface? Also, do call this before doing backtrace;

thread apply all backtrace

@Jellyfrog
Copy link
Author

Starting and stopping (ctrl+s, ctrl+d) a torrent fast in the cli triggers a:

Caught internal_error: Tracker request had more than 10 requests in 10 seconds..21] /usr/local/lib/libtorrent.so.17(_ZN7torrent14internal_error10initializeERKSs+0x1ef) [0x7ffff7438b2f]
/usr/local/bin/rtorrent(_ZN7torrent14internal_errorC2EPKc+0x44) [0x44d834]
/usr/local/lib/libtorrent.so.17(_ZN7torrent7Tracker19inc_request_counterEv+0x6e) [0x7ffff74516ce]
/usr/local/lib/libtorrent.so.17(_ZN7torrent11TrackerList10send_stateEPNS_7TrackerEi+0x8c) [0x7ffff7453ffc]
/usr/local/lib/libtorrent.so.17(_ZN7torrent17TrackerController15send_stop_eventEv+0xfc) [0x7ffff7452fec]
/usr/local/lib/libtorrent.so.17(_ZN7torrent8Download4stopEi+0x9f) [0x7ffff7436e7f]
/usr/local/bin/rtorrent() [0x4b578a]
/usr/local/bin/rtorrent() [0x4443c3]
/usr/local/bin/rtorrent() [0x444f6c]
/usr/local/bin/rtorrent() [0x4e4e7c]
/usr/local/bin/rtorrent() [0x4eaa21]
/usr/local/bin/rtorrent() [0x4f95fb]
/usr/local/bin/rtorrent() [0x4f975c]
/usr/local/bin/rtorrent() [0x4c5d7a]
/usr/local/bin/rtorrent() [0x4450c2]
/usr/local/bin/rtorrent() [0x44ad45]
/usr/local/bin/rtorrent() [0x4e2fe2]
/usr/local/bin/rtorrent() [0x4e307a]
/usr/local/bin/rtorrent() [0x4eaa21]
/usr/local/bin/rtorrent() [0x4f95fb]
[Thread 0x7fffe9d29700 (LWP 15297) exited]
[Thread 0x7ffff25a6700 (LWP 15293) exited]
[Inferior 1 (process 15290) exited with code 0377]
(gdb) thread apply all backtrace
(gdb) bt
No stack.

Not sure if this is the same error tho?
When crashing it using rutorrent its with multiple torrents at once

@rakshasa
Copy link
Owner

That check is to detect bugs causing the client to hammer the trackers.
I'll need to fix that corner-case.

Try again but slower.

On 12. apr. 2014, at 01:18, Jellyfrog notifications@github.com wrote:

Starting and stopping (ctrl+s, ctrl+d) a torrent fast in the cli triggers a:

Caught internal_error: Tracker request had more than 10 requests in 10
seconds..21] /usr/local/lib/libtorrent.so.17(_ZN7torrent14internal_error10initializeERKSs+0x1ef)
[0x7ffff7438b2f]
/usr/local/bin/rtorrent(_ZN7torrent14internal_errorC2EPKc+0x44) [0x44d834]
/usr/local/lib/libtorrent.so.17(_ZN7torrent7Tracker19inc_request_counterEv+0x6e)
[0x7ffff74516ce]
/usr/local/lib/libtorrent.so.17(_ZN7torrent11TrackerList10send_stateEPNS_7TrackerEi+0x8c)
[0x7ffff7453ffc]
/usr/local/lib/libtorrent.so.17(_ZN7torrent17TrackerController15send_stop_eventEv+0xfc)
[0x7ffff7452fec]
/usr/local/lib/libtorrent.so.17(_ZN7torrent8Download4stopEi+0x9f)
[0x7ffff7436e7f]
/usr/local/bin/rtorrent() [0x4b578a]
/usr/local/bin/rtorrent() [0x4443c3]
/usr/local/bin/rtorrent() [0x444f6c]
/usr/local/bin/rtorrent() [0x4e4e7c]
/usr/local/bin/rtorrent() [0x4eaa21]
/usr/local/bin/rtorrent() [0x4f95fb]
/usr/local/bin/rtorrent() [0x4f975c]
/usr/local/bin/rtorrent() [0x4c5d7a]
/usr/local/bin/rtorrent() [0x4450c2]
/usr/local/bin/rtorrent() [0x44ad45]
/usr/local/bin/rtorrent() [0x4e2fe2]
/usr/local/bin/rtorrent() [0x4e307a]
/usr/local/bin/rtorrent() [0x4eaa21]
/usr/local/bin/rtorrent() [0x4f95fb]
[Thread 0x7fffe9d29700 (LWP 15297) exited]
[Thread 0x7ffff25a6700 (LWP 15293) exited]
Inferior 1 (process 15290) exited with code 0377 thread apply all backtrace
(gdb) bt
No stack.

Not sure if this is the same error tho?
When crashing it using rutorrent its with multiple torrents at once

Reply to this email directly or view it on
GitHubhttps://github.com//issues/189#issuecomment-40221823
.

@Jellyfrog
Copy link
Author

Not sure how to make it crash with the cli but via rutorrent is rather easy, stopping and starting multiple torrents results sooner or later in:

terminate called after throwing an instance of 'torrent::internal_error'
                                                                         what():  Block dtor with 'm_state == STATE_COMPLETED && m_leader == NULL'

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffee512700 (LWP 15363)]
0x00007ffff5ca4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) thread apply all backtrace

Thread 3 (Thread 0x7fffee512700 (LWP 15363)):
#0  0x00007ffff5ca4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff5ca76f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff671689d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff6714996 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff67149c3 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff6714bee in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffff7456c28 in torrent::Block::~Block (this=0x4794db8, __in_chrg=<optimized out>) at block.cc:60
#7  0x00007ffff74596af in clear (this=0x4317ff0) at block_list.h:67
#8  ~no_copy_vector (this=0x4317ff0, __in_chrg=<optimized out>) at block_list.h:60
#9  torrent::BlockList::~BlockList (this=0x4317ff0, __in_chrg=<optimized out>) at block_list.cc:77
#10 0x00007ffff7460068 in operator() (t=0x4317ff0, this=<optimized out>) at ../../../rak/functional.h:397
#11 for_each<__gnu_cxx::__normal_iterator<torrent::BlockList**, std::vector<torrent::BlockList*> >, rak::call_delete<torrent::BlockList> > (__f=..., __last=..., __first=...) at /usr/include/c++/4.7/bits/stl_algo.h:4442
#12 torrent::TransferList::clear (this=0x2fc70e8) at transfer_list.cc:82
#13 0x00007ffff74ad952 in torrent::DownloadMain::close (this=0x2fc7040) at download_main.cc:196
#14 0x00007ffff74b4ad3 in torrent::DownloadWrapper::close (this=0x2fc5870) at download_wrapper.cc:145
#15 0x00000000004b70fa in core::DownloadList::close_throw (this=0x784180, download=0x2fb2b90) at download_list.cc:323
#16 0x000000000045e1d4 in operator() (__args#0=<optimized out>, __object=<optimized out>, this=<optimized out>) at /usr/include/c++/4.7/tr1/functional:586
#17 __call<core::Download*&, torrent::Object const&, 0, 1> (__args=..., this=<optimized out>) at /usr/include/c++/4.7/tr1/functional:1179
#18 operator()<core::Download*, const torrent::Object> (this=<optimized out>) at /usr/include/c++/4.7/tr1/functional:1233
#19 operator()<core::Download*, const torrent::Object> (arg2=..., arg1=<synthetic pointer>, this=<optimized out>) at command_helpers.h:182
#20 std::tr1::_Function_handler<torrent::Object (core::Download*, torrent::Object const&), object_convert_type<std::tr1::_Bind<std::tr1::_Mem_fn<void (core::DownloadList::*)(core::Download*)> (core::DownloadList*, std::tr1::_Placeholder<1>)>, void> >::_M_invoke(std::tr1::_Any_data const&, core::Download*, torrent::Object const&) (__functor=..., __args#0=<optimized out>, __args#1=...) at /usr/include/c++/4.7/tr1/functional:1784
#21 0x00000000004e4e7c in operator() (__args#1=..., __args#0=<optimized out>, this=0x7b7688) at /usr/include/c++/4.7/tr1/functional:2154
#22 _call<std::tr1::function<torrent::Object(core::Download*, const torrent::Object&)>, core::Download*, torrent::Object> (args=..., target=..., cmd=0x7b7688) at command.h:249
#23 rpc::command_base_call<core::Download*> (rawCommand=0x7b7688, target=..., args=...) at command.cc:59
#24 0x00000000004ea88d in rpc::CommandMap::call_command (this=<optimized out>, itr=..., arg=..., target=...) at command_map.cc:176
#25 0x0000000000500b95 in rpc::xmlrpc_call_command (env=0x7fffee511b00, args=0x4534ea0, voidServerInfo=<optimized out>) at xmlrpc.cc:495
#26 0x00007ffff71fefb8 in callNamedMethod (resultPP=0x7fffee511af0, callInfoP=0x0, paramArrayP=0x4534ea0, methodP=<optimized out>, envP=0x7fffee511b00) at registry.c:312
#27 xmlrpc_dispatchCall (envP=envP@entry=0x7fffee511b00, registryP=registryP@entry=0x7d89d0, methodName=0x45cf510 "d.close", paramArrayP=0x4534ea0, callInfoP=callInfoP@entry=0x0, resultPP=resultPP@entry=0x7fffee511af0) at registry.c:337
#28 0x00007ffff7200505 in callOneMethod (resultPP=<synthetic pointer>, callInfo=0x0, rpcDescP=0x43e07e0, registryP=0x7d89d0, envP=0x7fffee511bd0) at system_method.c:80
#29 system_multicall (envP=0x7fffee511bd0, paramArrayP=<optimized out>, serverInfo=0x7d89d0, callInfo=0x0) at system_method.c:176
#30 0x00007ffff71fef81 in callNamedMethod (resultPP=0x7fffee511bc8, callInfoP=0x0, paramArrayP=0x42db8c0, methodP=<optimized out>, envP=0x7fffee511bd0) at registry.c:307
#31 xmlrpc_dispatchCall (envP=envP@entry=0x7fffee511bd0, registryP=registryP@entry=0x7d89d0, methodName=0x3d403e0 "system.multicall", paramArrayP=0x42db8c0, callInfoP=callInfoP@entry=0x0, resultPP=resultPP@entry=0x7fffee511bc8)
    at registry.c:337
#32 0x00007ffff71ff0ca in xmlrpc_registry_process_call2 (envP=0x7fffee511c80, registryP=0x7d89d0,
    callXml=0xaa6280 "<?xml version=\"1.0\" encoding=\"UTF-8\"?><methodCall><methodName>system.multicall</methodName><params><param><value><array><data><value><struct><member><name>methodName</name><value><string>d.stop</strin"...,
    callXmlLen=32605, callInfo=callInfo@entry=0x0, responseXmlPP=responseXmlPP@entry=0x7fffee511c58) at registry.c:426
#33 0x00007ffff71ff227 in xmlrpc_registry_process_call (envP=<optimized out>, registryP=<optimized out>, host=<optimized out>, callXml=<optimized out>, callXmlLen=<optimized out>) at registry.c:466
#34 0x00000000004fe484 in rpc::XmlRpc::process(char const*, unsigned int, std::tr1::function<bool (char const*, unsigned int)>) (this=0x7608a0,
---Type <return> to continue, or q <return> to quit---
    inBuffer=0xaa6280 "<?xml version=\"1.0\" encoding=\"UTF-8\"?><methodCall><methodName>system.multicall</methodName><params><param><value><array><data><value><struct><member><name>methodName</name><value><string>d.stop</strin"...,
    length=32605, slotWrite=...) at xmlrpc.cc:534
#35 0x00000000004fcdcc in rpc::SCgi::receive_call (this=<optimized out>, task=<optimized out>,
    buffer=0xaa6280 "<?xml version=\"1.0\" encoding=\"UTF-8\"?><methodCall><methodName>system.multicall</methodName><params><param><value><array><data><value><struct><member><name>methodName</name><value><string>d.stop</strin"...,
    length=32605) at scgi.cc:175
#36 0x00000000004fdae1 in rpc::SCgiTask::event_read (this=0x80ca80) at scgi_task.cc:191
#37 0x00007ffff744cd0b in torrent::PollEPoll::perform (this=this@entry=0x7a3a00) at poll_epoll.cc:185
#38 0x00007ffff744cdb2 in torrent::PollEPoll::do_poll (this=0x7a3a00, timeout_usec=<optimized out>, flags=<optimized out>) at poll_epoll.cc:219
#39 0x00007ffff7481d5c in torrent::thread_base::event_loop (thread=0x7a2e40) at thread_base.cc:174
#40 0x00007ffff6003b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#41 0x00007ffff5d4e0ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
#42 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ffff25a6700 (LWP 15359)):
#0  0x00007ffff5d4e743 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff744cc25 in torrent::PollEPoll::poll (this=this@entry=0x794010, msec=<optimized out>) at poll_epoll.cc:146
#2  0x00007ffff744cd9d in torrent::PollEPoll::do_poll (this=0x794010, timeout_usec=<optimized out>, flags=<optimized out>) at poll_epoll.cc:209
#3  0x00007ffff7481d5c in torrent::thread_base::event_loop (thread=0x791e10) at thread_base.cc:174
#4  0x00007ffff6003b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007ffff5d4e0ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff7fde740 (LWP 15356)):
#0  0x00007ffff600acec in __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007ffff6006339 in _L_lock_926 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007ffff600615b in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
#3  0x00007ffff744ce33 in acquire_global_lock () at utils/thread_base.h:172
#4  torrent::PollEPoll::do_poll (this=0x794c00, timeout_usec=<optimized out>, flags=<optimized out>) at poll_epoll.cc:213
#5  0x00007ffff7481d5c in torrent::thread_base::event_loop (thread=0x791790) at thread_base.cc:174
#6  0x0000000000414077 in main (argc=1, argv=0x7fffffffe718) at main.cc:857

@rakshasa
Copy link
Owner

If it doesn't happen in the cli then I know where to look, though if it
actually does then I'd be wasting time in the wrong place.

On 12. apr. 2014, at 01:34, Jellyfrog notifications@github.com wrote:

Not sure how to make it crash with the cli but via rutorrent is rather
easy, stopping and starting multiple torrents results sooner or later in:

terminate called after throwing an instance of 'torrent::internal_error'

what(): Block dtor with 'm_state == STATE_COMPLETED && m_leader ==
NULL'

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffee512700 (LWP 15363)]
0x00007ffff5ca4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) thread apply all backtrace

Thread 3 (Thread 0x7fffee512700 (LWP 15363)):
#0 0x00007ffff5ca4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff5ca76f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff671689d in __gnu_cxx::__verbose_terminate_handler() ()
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff6714996 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff67149c3 in std::terminate() () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff6714bee in __cxa_throw () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff7456c28 in torrent::Block::~Block (this=0x4794db8,
__in_chrg=) at block.cc:60
#7 0x00007ffff74596af in clear (this=0x4317ff0) at block_list.h:67
#8 ~no_copy_vector (this=0x4317ff0, __in_chrg=) at
block_list.h:60
#9 torrent::BlockList::~BlockList (this=0x4317ff0,
__in_chrg=) at block_list.cc:77
#10 0x00007ffff7460068 in operator() (t=0x4317ff0, this=) at ../../../rak/functional.h:397
#11 for_each<__gnu_cxx::__normal_iterator<torrent::BlockList**,
std::vectortorrent::BlockList* >,
rak::call_deletetorrent::BlockList > (__f=..., __last=...,
__first=...) at /usr/include/c++/4.7/bits/stl_algo.h:4442
#12 torrent::TransferList::clear (this=0x2fc70e8) at transfer_list.cc:82
#13 0x00007ffff74ad952 in torrent::DownloadMain::close
(this=0x2fc7040) at download_main.cc:196
#14 0x00007ffff74b4ad3 in torrent::DownloadWrapper::close
(this=0x2fc5870) at download_wrapper.cc:145
#15 0x00000000004b70fa in core::DownloadList::close_throw
(this=0x784180, download=0x2fb2b90) at download_list.cc:323
#16 0x000000000045e1d4 in operator() (__args#0=,
__object=, this=) at
/usr/include/c++/4.7/tr1/functional:586
#17 __call<core::Download*&, torrent::Object const&, 0, 1>
(__args=..., this=) at
/usr/include/c++/4.7/tr1/functional:1179
#18 operator()<core::Download*, const torrent::Object>
(this=) at /usr/include/c++/4.7/tr1/functional:1233
#19 operator()<core::Download*, const torrent::Object> (arg2=...,
arg1=, this=) at
command_helpers.h:182
#20 std::tr1::_Function_handler<torrent::Object (core::Download*,
torrent::Object const&),
object_convert_type<std::tr1::_Bind<std::tr1::Mem_fn<void
(core::DownloadList::)(core::Download)> (core::DownloadList
,
std::tr1::_Placeholder<1>)>, void> >::_M_invoke(std::tr1::Any_data
const&, core::Download
, torrent::Object const&) (__functor=...,
__args#0=, __args#1=...) at
/usr/include/c++/4.7/tr1/functional:1784
#21 0x00000000004e4e7c in operator() (__args#1=...,
args#0=, this=0x7b7688) at
/usr/include/c++/4.7/tr1/functional:2154
#22 call<std::tr1::function<torrent::Object(core::Download*, const
torrent::Object&)>, core::Download
, torrent::Object> (args=...,
target=..., cmd=0x7b7688) at command.h:249
#23 rpc::command_base_callcore::Download_ (rawCommand=0x7b7688,
target=..., args=...) at command.cc:59
#24 0x00000000004ea88d in rpc::CommandMap::call_command
(this=, itr=..., arg=..., target=...) at
command_map.cc:176
#25 0x0000000000500b95 in rpc::xmlrpc_call_command
(env=0x7fffee511b00, args=0x4534ea0, voidServerInfo=)
at xmlrpc.cc:495
#26 0x00007ffff71fefb8 in callNamedMethod (resultPP=0x7fffee511af0,
callInfoP=0x0, paramArrayP=0x4534ea0, methodP=,
envP=0x7fffee511b00) at registry.c:312
#27 xmlrpc_dispatchCall (envP=envP@entry=0x7fffee511b00,
registryP=registryP@entry=0x7d89d0, methodName=0x45cf510 "d.close",
paramArrayP=0x4534ea0, callInfoP=callInfoP@entry=0x0,
resultPP=resultPP@entry=0x7fffee511af0) at registry.c:337
#28 0x00007ffff7200505 in callOneMethod (resultPP=,
callInfo=0x0, rpcDescP=0x43e07e0, registryP=0x7d89d0,
envP=0x7fffee511bd0) at system_method.c:80
#29 system_multicall (envP=0x7fffee511bd0, paramArrayP=, serverInfo=0x7d89d0, callInfo=0x0) at system_method.c:176
#30 0x00007ffff71fef81 in callNamedMethod (resultPP=0x7fffee511bc8,
callInfoP=0x0, paramArrayP=0x42db8c0, methodP=,
envP=0x7fffee511bd0) at registry.c:307
#31 xmlrpc_dispatchCall (envP=envP@entry=0x7fffee511bd0,
registryP=registryP@entry=0x7d89d0, methodName=0x3d403e0
"system.multicall", paramArrayP=0x42db8c0,
callInfoP=callInfoP@entry=0x0, resultPP=resultPP@entry=0x7fffee511bc8)
at registry.c:337
#32 0x00007ffff71ff0ca in xmlrpc_registry_process_call2
(envP=0x7fffee511c80, registryP=0x7d89d0,
callXml=0xaa6280 "system.multicallmethodNamed.stop</strin"...,
callXmlLen=32605, callInfo=callInfo@entry=0x0,
responseXmlPP=responseXmlPP@entry=0x7fffee511c58) at registry.c:426
#33 0x00007ffff71ff227 in xmlrpc_registry_process_call
(envP=, registryP=, host=, callXml=, callXmlLen=) at
registry.c:466
#34 0x00000000004fe484 in rpc::XmlRpc::process(char const
, unsigned
int, std::tr1::function<bool (char const
, unsigned int)>)
(this=0x7608a0,
---Type to continue, or q to quit---
inBuffer=0xaa6280 "system.multicallmethodNamed.stop</strin"...,
length=32605, slotWrite=...) at xmlrpc.cc:534
#35 0x00000000004fcdcc in rpc::SCgi::receive_call (this=, task=,
buffer=0xaa6280 "system.multicallmethodNamed.stop</strin"...,
length=32605) at scgi.cc:175
#36 0x00000000004fdae1 in rpc::SCgiTask::event_read (this=0x80ca80) at
scgi_task.cc:191
#37 0x00007ffff744cd0b in torrent::PollEPoll::perform
(this=this@entry=0x7a3a00) at poll_epoll.cc:185
#38 0x00007ffff744cdb2 in torrent::PollEPoll::do_poll (this=0x7a3a00,
timeout_usec=, flags=) at
poll_epoll.cc:219
#39 0x00007ffff7481d5c in torrent::thread_base::event_loop
(thread=0x7a2e40) at thread_base.cc:174
#40 0x00007ffff6003b50 in start_thread () from
/lib/x86_64-linux-gnu/libpthread.so.0
#41 0x00007ffff5d4e0ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
#42 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ffff25a6700 (LWP 15359)):
#0 0x00007ffff5d4e743 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff744cc25 in torrent::PollEPoll::poll
(this=this@entry=0x794010, msec=) at poll_epoll.cc:146
#2 0x00007ffff744cd9d in torrent::PollEPoll::do_poll (this=0x794010,
timeout_usec=, flags=) at
poll_epoll.cc:209
#3 0x00007ffff7481d5c in torrent::thread_base::event_loop
(thread=0x791e10) at thread_base.cc:174
#4 0x00007ffff6003b50 in start_thread () from
/lib/x86_64-linux-gnu/libpthread.so.0
#5 0x00007ffff5d4e0ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff7fde740 (LWP 15356)):
#0 0x00007ffff600acec in __lll_lock_wait () from
/lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007ffff6006339 in _L_lock_926 () from
/lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007ffff600615b in pthread_mutex_lock () from
/lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007ffff744ce33 in acquire_global_lock () at utils/thread_base.h:172
#4 torrent::PollEPoll::do_poll (this=0x794c00,
timeout_usec=, flags=) at
poll_epoll.cc:213
#5 0x00007ffff7481d5c in torrent::thread_base::event_loop
(thread=0x791790) at thread_base.cc:174
#6 0x0000000000414077 in main (argc=1, argv=0x7fffffffe718) at main.cc:857
(gdb) bt
#0 0x00007ffff5ca4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff5ca76f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff671689d in __gnu_cxx::__verbose_terminate_handler() ()
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff6714996 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff67149c3 in std::terminate() () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff6714bee in __cxa_throw () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff7456c28 in torrent::Block::~Block (this=0x4794db8,
__in_chrg=) at block.cc:60
#7 0x00007ffff74596af in clear (this=0x4317ff0) at block_list.h:67
#8 ~no_copy_vector (this=0x4317ff0, __in_chrg=) at
block_list.h:60
#9 torrent::BlockList::~BlockList (this=0x4317ff0,
__in_chrg=) at block_list.cc:77
#10 0x00007ffff7460068 in operator() (t=0x4317ff0, this=) at ../../../rak/functional.h:397
#11 for_each<__gnu_cxx::__normal_iterator<torrent::BlockList**,
std::vectortorrent::BlockList* >,
rak::call_deletetorrent::BlockList > (__f=..., __last=...,
__first=...) at /usr/include/c++/4.7/bits/stl_algo.h:4442
#12 torrent::TransferList::clear (this=0x2fc70e8) at transfer_list.cc:82
#13 0x00007ffff74ad952 in torrent::DownloadMain::close
(this=0x2fc7040) at download_main.cc:196
#14 0x00007ffff74b4ad3 in torrent::DownloadWrapper::close
(this=0x2fc5870) at download_wrapper.cc:145
#15 0x00000000004b70fa in core::DownloadList::close_throw
(this=0x784180, download=0x2fb2b90) at download_list.cc:323
#16 0x000000000045e1d4 in operator() (__args#0=,
__object=, this=) at
/usr/include/c++/4.7/tr1/functional:586
#17 __call<core::Download*&, torrent::Object const&, 0, 1>
(__args=..., this=) at
/usr/include/c++/4.7/tr1/functional:1179
#18 operator()<core::Download*, const torrent::Object>
(this=) at /usr/include/c++/4.7/tr1/functional:1233
#19 operator()<core::Download*, const torrent::Object> (arg2=...,
arg1=, this=) at
command_helpers.h:182
#20 std::tr1::_Function_handler<torrent::Object (core::Download*,
torrent::Object const&),
object_convert_type<std::tr1::_Bind<std::tr1::Mem_fn<void
(core::DownloadList::)(core::Download)> (core::DownloadList
,
std::tr1::_Placeholder<1>)>, void> >::_M_invoke(std::tr1::Any_data
const&, core::Download
, torrent::Object const&) (__functor=...,
__args#0=, __args#1=...) at
/usr/include/c++/4.7/tr1/functional:1784
#21 0x00000000004e4e7c in operator() (__args#1=...,
args#0=, this=0x7b7688) at
/usr/include/c++/4.7/tr1/functional:2154
#22 call<std::tr1::function<torrent::Object(core::Download*, const
torrent::Object&)>, core::Download
, torrent::Object> (args=...,
target=..., cmd=0x7b7688) at command.h:249
#23 rpc::command_base_callcore::Download_ (rawCommand=0x7b7688,
target=..., args=...) at command.cc:59
#24 0x00000000004ea88d in rpc::CommandMap::call_command
(this=, itr=..., arg=..., target=...) at
command_map.cc:176
#25 0x0000000000500b95 in rpc::xmlrpc_call_command
(env=0x7fffee511b00, args=0x4534ea0, voidServerInfo=)
at xmlrpc.cc:495
#26 0x00007ffff71fefb8 in callNamedMethod (resultPP=0x7fffee511af0,
callInfoP=0x0, paramArrayP=0x4534ea0, methodP=,
envP=0x7fffee511b00) at registry.c:312
#27 xmlrpc_dispatchCall (envP=envP@entry=0x7fffee511b00,
registryP=registryP@entry=0x7d89d0, methodName=0x45cf510 "d.close",
paramArrayP=0x4534ea0, callInfoP=callInfoP@entry=0x0,
resultPP=resultPP@entry=0x7fffee511af0) at registry.c:337
#28 0x00007ffff7200505 in callOneMethod (resultPP=,
callInfo=0x0, rpcDescP=0x43e07e0, registryP=0x7d89d0,
envP=0x7fffee511bd0) at system_method.c:80
#29 system_multicall (envP=0x7fffee511bd0, paramArrayP=, serverInfo=0x7d89d0, callInfo=0x0) at system_method.c:176
#30 0x00007ffff71fef81 in callNamedMethod (resultPP=0x7fffee511bc8,
callInfoP=0x0, paramArrayP=0x42db8c0, methodP=,
envP=0x7fffee511bd0) at registry.c:307
#31 xmlrpc_dispatchCall (envP=envP@entry=0x7fffee511bd0,
registryP=registryP@entry=0x7d89d0, methodName=0x3d403e0
"system.multicall", paramArrayP=0x42db8c0,
callInfoP=callInfoP@entry=0x0, resultPP=resultPP@entry=0x7fffee511bc8)
at registry.c:337
#32 0x00007ffff71ff0ca in xmlrpc_registry_process_call2
(envP=0x7fffee511c80, registryP=0x7d89d0,
callXml=0xaa6280 "system.multicallmethodNamed.stop</strin"...,
callXmlLen=32605, callInfo=callInfo@entry=0x0,
responseXmlPP=responseXmlPP@entry=0x7fffee511c58) at registry.c:426
#33 0x00007ffff71ff227 in xmlrpc_registry_process_call
(envP=, registryP=, host=, callXml=, callXmlLen=) at
registry.c:466
#34 0x00000000004fe484 in rpc::XmlRpc::process(char const
, unsigned
int, std::tr1::function<bool (char const
, unsigned int)>)
(this=0x7608a0,
inBuffer=0xaa6280 "system.multicallmethodNamed.stop</strin"...,
length=32605, slotWrite=...) at xmlrpc.cc:534
---Type to continue, or q to quit---
#35 0x00000000004fcdcc in rpc::SCgi::receive_call (this=, task=,
buffer=0xaa6280 "system.multicallmethodNamed.stop</strin"...,
length=32605) at scgi.cc:175
#36 0x00000000004fdae1 in rpc::SCgiTask::event_read (this=0x80ca80) at
scgi_task.cc:191
#37 0x00007ffff744cd0b in torrent::PollEPoll::perform
(this=this@entry=0x7a3a00) at poll_epoll.cc:185
#38 0x00007ffff744cdb2 in torrent::PollEPoll::do_poll (this=0x7a3a00,
timeout_usec=, flags=) at
poll_epoll.cc:219
#39 0x00007ffff7481d5c in torrent::thread_base::event_loop
(thread=0x7a2e40) at thread_base.cc:174
#40 0x00007ffff6003b50 in start_thread () from
/lib/x86_64-linux-gnu/libpthread.so.0
#41 0x00007ffff5d4e0ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
#42 0x0000000000000000 in ?? ()
(gdb)

Reply to this email directly or view it on
GitHubhttps://github.com//issues/189#issuecomment-40223392
.

@Jellyfrog
Copy link
Author

Stopping a torrent in the CLI:

Caught internal_error: Block dtor with 'm_state == STATE_COMPLETED && m_leader == NULL' /usr/local/lib/libtorrent.so.17(_ZN7torrent14internal_error10initializeERKSs+0x1ef) [0x7ffff7438b2f]
/usr/local/bin/rtorrent(_ZN7torrent14internal_errorC2EPKc+0x44) [0x44d834]
/usr/local/lib/libtorrent.so.17(_ZN7torrent5BlockD1Ev+0x1a2) [0x7ffff7456c12]
/usr/local/lib/libtorrent.so.17(_ZN7torrent9BlockListD1Ev+0x3f) [0x7ffff74596af]
/usr/local/lib/libtorrent.so.17(+0x5d068) [0x7ffff7460068]
/usr/local/lib/libtorrent.so.17(+0xaa952) [0x7ffff74ad952]
/usr/local/lib/libtorrent.so.17(+0xb1ad3) [0x7ffff74b4ad3]
/usr/local/bin/rtorrent() [0x4b70fa]
/usr/local/bin/rtorrent() [0x45e1d4]
/usr/local/bin/rtorrent() [0x4e4e7c]
/usr/local/bin/rtorrent() [0x4eaa21]
/usr/local/bin/rtorrent() [0x4f79ba]
/usr/local/bin/rtorrent() [0x4f8c44]
/usr/local/bin/rtorrent() [0x4849f2]
/usr/local/bin/rtorrent() [0x4e2d8e]
/usr/local/bin/rtorrent() [0x4e16d1]
/usr/local/bin/rtorrent() [0x4e13e9]
/usr/local/bin/rtorrent() [0x4e115f]
/usr/local/lib/libtorrent.so.17(_ZN7torrent9PollEPoll7performEv+0xdb) [0x7ffff744cd0b]
/usr/local/lib/libtorrent.so.17(_ZN7torrent9PollEPoll7do_pollEli+0x62) [0x7ffff744cdb2]
[Thread 0x7fffe73bd700 (LWP 29558) exited]
[Thread 0x7ffff25a6700 (LWP 29554) exited]
[Inferior 1 (process 29551) exited with code 0377]
(gdb) thread apply all backtrace
(gdb) bt
No stack.
(gdb)

@Jellyfrog
Copy link
Author

saw tons of:

(15:00:07) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
(15:00:22) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.

in the log so I shut down rtorrent (ctrl+q) and got this:

Caught internal_error: Block dtor with 'm_state == STATE_COMPLETED && m_leader == NULL'                                                                                               
/usr/local/lib/libtorrent.so.17(_ZN7torrent14internal_error10initializeERKSs+0x1ef) [0x7f3579040b2f]
rtorrent(_ZN7torrent14internal_errorC2EPKc+0x44) [0x44d834]
/usr/local/lib/libtorrent.so.17(_ZN7torrent5BlockD1Ev+0x1a2) [0x7f357905ec12]
/usr/local/lib/libtorrent.so.17(_ZN7torrent9BlockListD1Ev+0x3f) [0x7f35790616af]
/usr/local/lib/libtorrent.so.17(+0x5d068) [0x7f3579068068]
/usr/local/lib/libtorrent.so.17(+0xaa952) [0x7f35790b5952]
/usr/local/lib/libtorrent.so.17(+0xb1ad3) [0x7f35790bcad3]
rtorrent() [0x4b70fa]
rtorrent() [0x4b762a]
rtorrent() [0x4b310c]
rtorrent() [0x4be1ac]
rtorrent() [0x44cc39]
rtorrent() [0x414095]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f3577898ead]
rtorrent() [0x414775]

@rakshasa
Copy link
Owner

Found the probable cause of this issue, try with latest rev.

c5cb6dc

@rakshasa
Copy link
Owner

Ehm... forgot to push the change.

@Jellyfrog
Copy link
Author

I'll check it out after you push :)

@rakshasa
Copy link
Owner

Pushed... remember to update both libtorrent and rtorrent

@Jellyfrog
Copy link
Author

So far so good

@rakshasa
Copy link
Owner

Going to close as resolved, reopen if it happens again.

@Jellyfrog
Copy link
Author

Seems like it didn't help after all :(
I will turn on the debug again...

( 6:57:34) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 6:57:34) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 6:57:49) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 6:58:04) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 6:58:19) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 6:58:34) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 6:58:49) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 6:59:04) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 6:59:19) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 6:59:34) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 6:59:49) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:00:01) Scheduled command failed: rss: ExecFile::execute(...) Fork failed.
( 7:00:04) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:00:19) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:00:34) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:00:49) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:01:04) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:01:19) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:01:34) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:01:49) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:02:04) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:02:19) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:02:34) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:02:49) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:03:04) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:03:19) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:03:34) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:03:49) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:04:04) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:04:19) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:04:34) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:04:49) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:05:04) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:05:27) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:05:34) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:05:49) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:06:04) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
( 7:06:19) Scheduled command failed: erasedata: ExecFile::execute(...) Fork failed.
Killed

@Jellyfrog
Copy link
Author

OK..that didn't take long

New Thread 0x7fffe3f5d700 (LWP 7318)]
Caught internal_error: CurlStack::receive_action(...) called with socket == 0x00007fff00000002                                                                                           
/usr/local/lib/libtorrent.so.17(_ZN7torrent14internal_error10initializeERKSs+0x1ef) [0x7ffff7438c6f]
/usr/local/bin/rtorrent(_ZN7torrent14internal_errorC2EPKc+0x44) [0x44d834]
/usr/local/bin/rtorrent() [0x4cf764]
/usr/local/lib/libtorrent.so.17(_ZN7torrent9PollEPoll7performEv+0xfc) [0x7ffff744ceec]
/usr/local/lib/libtorrent.so.17(_ZN7torrent9PollEPoll7do_pollEli+0x62) [0x7ffff744cf72]
/usr/local/lib/libtorrent.so.17(_ZN7torrent11thread_base10event_loopEPS0_+0x11c) [0x7ffff748202c]
/usr/local/bin/rtorrent() [0x414077]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7ffff5c90ead]
/usr/local/bin/rtorrent() [0x414775]
[Thread 0x7fffe3f5d700 (LWP 7318) exited]
[Thread 0x7ffff25a6700 (LWP 7313) exited]
[Inferior 1 (process 7310) exited with code 0377]
(gdb) thread apply all backtrace
(gdb) bt
No stack.
(gdb)

I commented out the scgi_local and execute and still got the same error.

bind = XXX
session = ~/.rtorrent-session

directory = /storage/

schedule = low_diskspace,5,60,close_low_diskspace=100M
schedule = watch_directory,5,5,load_start=~/torrent/*.torrent
schedule = untied_directory,5,5,stop_untied=

check_hash = no
use_udp_trackers = yes

encryption = allow_incoming,try_outgoing,enable_retry
peer_exchange = yes
dht = auto

port_range = 49164-50000

@rakshasa
Copy link
Owner

Those are unrelated issues, make a new ticket.

@rakshasa
Copy link
Owner

Uhm... for the last one, no need to create a ticket. Turns out I left in some debug related exceptions when I committed some changes. Should be fixed.

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