{"action":"created","issue":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/317","labels_url":"https://api.github.com/repos/arvidn/libtorrent/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/arvidn/libtorrent/issues/317/comments","events_url":"https://api.github.com/repos/arvidn/libtorrent/issues/317/events","html_url":"https://github.com/arvidn/libtorrent/issues/317","id":121281364,"number":317,"title":"Random crashes of libtorrent when using deluge","user":{"login":"kanzie","id":807680,"avatar_url":"https://avatars.githubusercontent.com/u/807680?v=3","gravatar_id":"","url":"https://api.github.com/users/kanzie","html_url":"https://github.com/kanzie","followers_url":"https://api.github.com/users/kanzie/followers","following_url":"https://api.github.com/users/kanzie/following{/other_user}","gists_url":"https://api.github.com/users/kanzie/gists{/gist_id}","starred_url":"https://api.github.com/users/kanzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanzie/subscriptions","organizations_url":"https://api.github.com/users/kanzie/orgs","repos_url":"https://api.github.com/users/kanzie/repos","events_url":"https://api.github.com/users/kanzie/events{/privacy}","received_events_url":"https://api.github.com/users/kanzie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-09T16:11:26Z","updated_at":"2015-12-09T20:34:36Z","closed_at":null,"body":"Im seeing random crashes and the deluge-team has ruled out deluge being the culprit. Maybe this is a local problem but perhaps it can be something worth taking a look at?\r\n\r\nRunning deluge 1.3.12\r\nlibtorrent 1.0.7.0\r\nRaspbian 7 on Raspberry Pi 2\r\n\r\ngdb backtrace \r\nProgram received signal SIGILL, Illegal instruction.\r\n[New Thread 0x75f1d470 (LWP 11124)]\r\n[New Thread 0x7571d470 (LWP 11125)]\r\n[New Thread 0x74dff470 (LWP 11134)]\r\n[New Thread 0x745de470 (LWP 11147)]\r\n[Thread 0x745de470 (LWP 11147) exited]\r\nterminate called after throwing an instance of 'boost::bad_weak_ptr'\r\nwhat(): tr1::bad_weak_ptr\r\n\r\nProgram received signal SIGABRT, Aborted.\r\n[Switching to Thread 0x7571d470 (LWP 11125)]\r\n0x76df68dc in raise () from /lib/arm-linux-gnueabihf/libc.so.6\r\n(gdb) thread apply all backtrace\r\n\r\nThread 4 (Thread 0x74dff470 (LWP 11134)):\r\n#0 0x76faa504 in pthread_cond_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0\r\n#1 0x761088d0 in boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&, boost::asio::detail::task_io_service::thread_info&, boost::asio::detail::op_queue<boost::asio::detail::task_io_service_operation>&, boost::system::error_code const&) ()\r\nfrom /usr/local/lib/libtorrent-rasterbar.so.8\r\n#2 0x7610b090 in boost::asio::detail::task_io_service::run(boost::system::error_code&) () from /usr/local/lib/libtorrent-rasterbar.so.8\r\n#3 0x7610ba44 in boost::asio::io_service::run() () from /usr/local/lib/libtorrent-rasterbar.so.8\r\n#4 0x760ffdf4 in boost_asio_detail_posix_thread_function () from /usr/local/lib/libtorrent-rasterbar.so.8\r\n#5 0x76fa5c00 in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0\r\n#6 0x76e95728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6\r\n#7 0x76e95728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6\r\nBacktrace stopped: previous frame identical to this frame (corrupt stack?)\r\n\r\nThread 3 (Thread 0x7571d470 (LWP 11125)):\r\n#0 0x76df68dc in raise () from /lib/arm-linux-gnueabihf/libc.so.6\r\n#1 0x76dfa65c in abort () from /lib/arm-linux-gnueabihf/libc.so.6\r\n#2 0x73640110 in ?? ()\r\nCannot access memory at address 0x3e8\r\n#3 0x73640110 in ?? ()\r\nCannot access memory at address 0x3e8\r\nBacktrace stopped: previous frame identical to this frame (corrupt stack?)\r\n\r\nThread 2 (Thread 0x75f1d470 (LWP 11124)):\r\n#0 0x76faa504 in pthread_cond_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0\r\n#1 0x761312fc in ?? () from /usr/local/lib/libtorrent-rasterbar.so.8\r\n#2 0x761312fc in ?? () from /usr/local/lib/libtorrent-rasterbar.so.8\r\nBacktrace stopped: previous frame identical to this frame (corrupt stack?)\r\n\r\nThread 1 (Thread 0x76ff6000 (LWP 11119)):\r\n#0 0x76e88830 in poll () from /lib/arm-linux-gnueabihf/libc.so.6\r\n#1 0x00101758 in poll_poll (self=0x6d5398, args=<optimized out>) at ../Modules/selectmodule.c:522\r\n#2 0x00069a58 in PyCFunction_Call (func=0x7360abe8, arg=<optimized out>, kw=<optimized out>) at ../Objects/methodobject.c:116\r\n#3 0x00152390 in call_function (oparg=<optimized out>, pp_stack=0x7effe7d0) at ../Python/ceval.c:4021\r\n#4 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#5 0x00152994 in fast_function (nk=<optimized out>, na=<optimized out>, n=<optimized out>, pp_stack=0x7effe870, func=0x6f9670) at ../Python/ceval.c:4107\r\n#6 call_function (oparg=<optimized out>, pp_stack=0x7effe870) at ../Python/ceval.c:4042\r\n#7 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#8 0x00152994 in fast_function (nk=<optimized out>, na=<optimized out>, n=<optimized out>, pp_stack=0x7effe910, func=0x6acf30) at ../Python/ceval.c:4107\r\n#9 call_function (oparg=<optimized out>, pp_stack=0x7effe910) at ../Python/ceval.c:4042\r\n#10 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#11 0x00158c08 in PyEval_EvalCodeEx (co=0x6820b0, globals=<optimized out>, locals=<optimized out>, args=0x6eab50, argcount=1, kws=0x7443f4, kwcount=0, defs=\r\n0x6a5d9c, defcount=1, closure=0x0) at ../Python/ceval.c:3253\r\n#12 0x001527b4 in fast_function (nk=<optimized out>, na=1, n=1, pp_stack=0x7effea18, func=0x6acef0) at ../Python/ceval.c:4117\r\n#13 call_function (oparg=<optimized out>, pp_stack=0x7effea18) at ../Python/ceval.c:4042\r\n#14 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#15 0x00158c08 in PyEval_EvalCodeEx (co=0x76786608, globals=<optimized out>, locals=<optimized out>, args=0x0, argcount=3, kws=0x0, kwcount=0, defs=\r\n0x6fe26c, defcount=3, closure=0x0) at ../Python/ceval.c:3253\r\n#16 0x0016b3a0 in function_call (func=0x722a30, arg=0x6fe760, kw=<optimized out>) at ../Objects/funcobject.c:526\r\n#17 0x0006a1ac in PyObject_Call (func=0x722a30, arg=<optimized out>, kw=<optimized out>) at ../Objects/abstract.c:2529\r\n#18 0x0007d6c0 in instancemethod_call.7673 (func=0x722a30, arg=0x6fe760, kw=0x0) at ../Objects/classobject.c:2602\r\n#19 0x0006a1ac in PyObject_Call (func=0x6fe440, arg=<optimized out>, kw=<optimized out>) at ../Objects/abstract.c:2529\r\n#20 0x0007c3bc in slot_tp_init.24730 (self=<optimized out>, args=0x76831058, kwds=0x0) at ../Objects/typeobject.c:5677\r\n#21 0x000c2830 in type_call.24388 (type=0x44b530, args=0x76831058, kwds=0x0) at ../Objects/typeobject.c:737\r\n#22 0x0006a1ac in PyObject_Call (func=0x44b530, arg=<optimized out>, kw=<optimized out>) at ../Objects/abstract.c:2529\r\n#23 0x001528ac in do_call (nk=<optimized out>, na=2, pp_stack=0x7effee18, func=0x44b530) at ../Python/ceval.c:4239\r\n#24 call_function (oparg=<optimized out>, pp_stack=0x7effee18) at ../Python/ceval.c:4044\r\n#25 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#26 0x00158c08 in PyEval_EvalCodeEx (co=0x76d087b8, globals=<optimized out>, locals=<optimized out>, args=0x27d050, argcount=0, kws=0x2e57f0, kwcount=0,\r\ndefs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3253\r\n#27 0x001527b4 in fast_function (nk=<optimized out>, na=0, n=0, pp_stack=0x7effef20, func=0x7678a3b0) at ../Python/ceval.c:4117\r\n#28 call_function (oparg=<optimized out>, pp_stack=0x7effef20) at ../Python/ceval.c:4042\r\n#29 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#30 0x00158c08 in PyEval_EvalCodeEx (co=0x76ce28d8, globals=<optimized out>, locals=<optimized out>, args=0x29ec98, argcount=0, kws=0x0, kwcount=0, defs=\r\n0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3253\r\n#31 0x0016b30c in PyEval_EvalCode (locals=0x76d94660, globals=0x76d94660, co=0x76ce28d8) at ../Python/ceval.c:667\r\n#32 run_mod (mod=<optimized out>, filename=<optimized out>, globals=0x76d94660, locals=<optimized out>, flags=0x7efff12c, arena=0x2d7208)\r\nat ../Python/pythonrun.c:1365\r\n#33 0x0016ba10 in PyRun_FileExFlags (fp=0x2e56a0, filename=<optimized out>, start=<optimized out>, globals=0x76d94660, locals=0x76d94660, closeit=1, flags=\r\n0x7efff12c) at ../Python/pythonrun.c:1351\r\n#34 0x0016bc00 in PyRun_SimpleFileExFlags (fp=0x2e56a0, filename=0x7efff3e3 \"/usr/bin/deluged -d -c /home/pi/.config/deluge/\", closeit=1, flags=0x7efff12c)\r\nat ../Python/pythonrun.c:943\r\n#35 0x0016cfd0 in Py_Main (argc=<optimized out>, argv=0x7efff2a4) at ../Modules/main.c:639\r\n#36 0x76de181c in __libc_start_main () from /lib/arm-linux-gnueabihf/libc.so.6\r\n#37 0x000208dc in _start ()"},"comment":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/comments/163384329","html_url":"https://github.com/arvidn/libtorrent/issues/317#issuecomment-163384329","issue_url":"https://api.github.com/repos/arvidn/libtorrent/issues/317","id":163384329,"user":{"login":"kanzie","id":807680,"avatar_url":"https://avatars.githubusercontent.com/u/807680?v=3","gravatar_id":"","url":"https://api.github.com/users/kanzie","html_url":"https://github.com/kanzie","followers_url":"https://api.github.com/users/kanzie/followers","following_url":"https://api.github.com/users/kanzie/following{/other_user}","gists_url":"https://api.github.com/users/kanzie/gists{/gist_id}","starred_url":"https://api.github.com/users/kanzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanzie/subscriptions","organizations_url":"https://api.github.com/users/kanzie/orgs","repos_url":"https://api.github.com/users/kanzie/repos","events_url":"https://api.github.com/users/kanzie/events{/privacy}","received_events_url":"https://api.github.com/users/kanzie/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T20:34:36Z","updated_at":"2015-12-09T20:34:36Z","body":"Another crash:\r\n```\r\n[New Thread 0x75f1d470 (LWP 4170)]\r\n[New Thread 0x7571d470 (LWP 4171)]\r\n[New Thread 0x74f1d470 (LWP 4180)]\r\n[New Thread 0x744ff470 (LWP 4183)]\r\n[Thread 0x744ff470 (LWP 4183) exited]\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n[Switching to Thread 0x7571d470 (LWP 4171)]\r\n0x7626e354 in ?? () from /usr/local/lib/libtorrent-rasterbar.so.8\r\n(gdb) thread apply all backtrace\r\nCannot access memory at address 0x3e8\r\n\r\nThread 4 (Thread 0x74f1d470 (LWP 4180)):\r\n#0  0x76faa504 in pthread_cond_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0\r\n#1  0x761088d0 in boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&, boost::asio::detail::task_io_service::thread_info&, boost::asio::detail::op_queue<boost::asio::detail::task_io_service_operation>&, boost::system::error_code const&) ()\r\n   from /usr/local/lib/libtorrent-rasterbar.so.8\r\n#2  0x7610b090 in boost::asio::detail::task_io_service::run(boost::system::error_code&) () from /usr/local/lib/libtorrent-rasterbar.so.8\r\n#3  0x7610ba44 in boost::asio::io_service::run() () from /usr/local/lib/libtorrent-rasterbar.so.8\r\n#4  0x760ffdf4 in boost_asio_detail_posix_thread_function () from /usr/local/lib/libtorrent-rasterbar.so.8\r\n#5  0x76fa5c00 in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0\r\n#6  0x76e95728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6\r\n#7  0x76e95728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6\r\nBacktrace stopped: previous frame identical to this frame (corrupt stack?)\r\n\r\nThread 3 (Thread 0x7571d470 (LWP 4171)):\r\n#0  0x7626e354 in ?? () from /usr/local/lib/libtorrent-rasterbar.so.8\r\nCannot access memory at address 0x3e8\r\n#1  0x7626e33c in ?? () from /usr/local/lib/libtorrent-rasterbar.so.8\r\nCannot access memory at address 0x3e8\r\n#2  0x7626e33c in ?? () from /usr/local/lib/libtorrent-rasterbar.so.8\r\nCannot access memory at address 0x3e8\r\nBacktrace stopped: previous frame identical to this frame (corrupt stack?)\r\n\r\nThread 2 (Thread 0x75f1d470 (LWP 4170)):\r\n#0  0x76faa504 in pthread_cond_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0\r\n#1  0x761312fc in ?? () from /usr/local/lib/libtorrent-rasterbar.so.8\r\n#2  0x761312fc in ?? () from /usr/local/lib/libtorrent-rasterbar.so.8\r\nBacktrace stopped: previous frame identical to this frame (corrupt stack?)\r\n\r\nThread 1 (Thread 0x76ff6000 (LWP 4165)):\r\n#0  0x76e88830 in poll () from /lib/arm-linux-gnueabihf/libc.so.6\r\n#1  0x00101758 in poll_poll (self=0x6d5398, args=<optimized out>) at ../Modules/selectmodule.c:522\r\n#2  0x00069a58 in PyCFunction_Call (func=0xd5f5a8, arg=<optimized out>, kw=<optimized out>) at ../Objects/methodobject.c:116\r\n#3  0x00152390 in call_function (oparg=<optimized out>, pp_stack=0x7effe7d0) at ../Python/ceval.c:4021\r\n#4  PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#5  0x00152994 in fast_function (nk=<optimized out>, na=<optimized out>, n=<optimized out>, pp_stack=0x7effe870, func=0x6f9670) at ../Python/ceval.c:4107\r\n#6  call_function (oparg=<optimized out>, pp_stack=0x7effe870) at ../Python/ceval.c:4042\r\n#7  PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#8  0x00152994 in fast_function (nk=<optimized out>, na=<optimized out>, n=<optimized out>, pp_stack=0x7effe910, func=0x6acf30) at ../Python/ceval.c:4107\r\n#9  call_function (oparg=<optimized out>, pp_stack=0x7effe910) at ../Python/ceval.c:4042\r\n#10 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#11 0x00158c08 in PyEval_EvalCodeEx (co=0x6820b0, globals=<optimized out>, locals=<optimized out>, args=0x6eab50, argcount=1, kws=0x7443f4, kwcount=0, defs=\r\n    0x6a5d9c, defcount=1, closure=0x0) at ../Python/ceval.c:3253\r\n#12 0x001527b4 in fast_function (nk=<optimized out>, na=1, n=1, pp_stack=0x7effea18, func=0x6acef0) at ../Python/ceval.c:4117\r\n#13 call_function (oparg=<optimized out>, pp_stack=0x7effea18) at ../Python/ceval.c:4042\r\n#14 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#15 0x00158c08 in PyEval_EvalCodeEx (co=0x76786608, globals=<optimized out>, locals=<optimized out>, args=0x0, argcount=3, kws=0x0, kwcount=0, defs=\r\n    0x6fe26c, defcount=3, closure=0x0) at ../Python/ceval.c:3253\r\n#16 0x0016b3a0 in function_call (func=0x722a30, arg=0x6fe760, kw=<optimized out>) at ../Objects/funcobject.c:526\r\n#17 0x0006a1ac in PyObject_Call (func=0x722a30, arg=<optimized out>, kw=<optimized out>) at ../Objects/abstract.c:2529\r\n#18 0x0007d6c0 in instancemethod_call.7673 (func=0x722a30, arg=0x6fe760, kw=0x0) at ../Objects/classobject.c:2602\r\n#19 0x0006a1ac in PyObject_Call (func=0x6fe440, arg=<optimized out>, kw=<optimized out>) at ../Objects/abstract.c:2529\r\n#20 0x0007c3bc in slot_tp_init.24730 (self=<optimized out>, args=0x76831058, kwds=0x0) at ../Objects/typeobject.c:5677\r\n#21 0x000c2830 in type_call.24388 (type=0x44b530, args=0x76831058, kwds=0x0) at ../Objects/typeobject.c:737\r\n#22 0x0006a1ac in PyObject_Call (func=0x44b530, arg=<optimized out>, kw=<optimized out>) at ../Objects/abstract.c:2529\r\n#23 0x001528ac in do_call (nk=<optimized out>, na=2, pp_stack=0x7effee18, func=0x44b530) at ../Python/ceval.c:4239\r\n#24 call_function (oparg=<optimized out>, pp_stack=0x7effee18) at ../Python/ceval.c:4044\r\n#25 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#26 0x00158c08 in PyEval_EvalCodeEx (co=0x76d087b8, globals=<optimized out>, locals=<optimized out>, args=0x27d050, argcount=0, kws=0x2e57f0, kwcount=0, \r\n    defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3253\r\n#27 0x001527b4 in fast_function (nk=<optimized out>, na=0, n=0, pp_stack=0x7effef20, func=0x7678a3b0) at ../Python/ceval.c:4117\r\n#28 call_function (oparg=<optimized out>, pp_stack=0x7effef20) at ../Python/ceval.c:4042\r\n#29 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:2666\r\n#30 0x00158c08 in PyEval_EvalCodeEx (co=0x76ce28d8, globals=<optimized out>, locals=<optimized out>, args=0x29ec98, argcount=0, kws=0x0, kwcount=0, defs=\r\n    0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3253\r\n#31 0x0016b30c in PyEval_EvalCode (locals=0x76d94660, globals=0x76d94660, co=0x76ce28d8) at ../Python/ceval.c:667\r\n#32 run_mod (mod=<optimized out>, filename=<optimized out>, globals=0x76d94660, locals=<optimized out>, flags=0x7efff12c, arena=0x2d7208)\r\n    at ../Python/pythonrun.c:1365\r\n#33 0x0016ba10 in PyRun_FileExFlags (fp=0x2e56a0, filename=<optimized out>, start=<optimized out>, globals=0x76d94660, locals=0x76d94660, closeit=1, flags=\r\n    0x7efff12c) at ../Python/pythonrun.c:1351\r\n#34 0x0016bc00 in PyRun_SimpleFileExFlags (fp=0x2e56a0, filename=0x7efff3e4 \"/usr/bin/deluged -d -c /home/pi/.config/deluge/\", closeit=1, flags=0x7efff12c)\r\n    at ../Python/pythonrun.c:943\r\n#35 0x0016cfd0 in Py_Main (argc=<optimized out>, argv=0x7efff2a4) at ../Modules/main.c:639\r\n#36 0x76de181c in __libc_start_main () from /lib/arm-linux-gnueabihf/libc.so.6\r\n#37 0x000208dc in _start ()\r\nCannot access memory at address 0x3e8\r\n```"}}