Opened 10 years ago

Closed 10 years ago

Last modified 5 years ago

#1877 closed bug (Invalid)

deluge-gtk crashes with Segmentation Fault on adding *.torrent

Reported by: nis Owned by:
Priority: major Milestone:
Component: GTK UI Version: 1.3.2
Keywords: Cc:

Description

I starting deluge-gtk 1.3.2 on Gentoo. After adding any *.torrent deluge crashed with segmentation fault. I'm running deluge-gtk under gdb (gdb --args python /usr/bin/deluge-gtk) and repeat previous steps.

When deluge-gtk crached gdb view:

[Thread 0xae158b70 (LWP 14668) exited]

Program received signal SIGSEGV, Segmentation fault. 0xb58a3057 in cxa_allocate_exception ()

from /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/libstdc++.so.6

Stack frames (gdb) frame #0 0xb58a3057 in cxa_allocate_exception ()

from /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/libstdc++.so.6

(gdb) bt #0 0xb58a3057 in cxa_allocate_exception ()

from /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/libstdc++.so.6

#1 0xaf9a430e in boost::python::throw_error_already_set() ()

from /usr/lib/libboost_python-mt-1_42.so.1.42.0

#2 0xafe11a95 in boost::python::api::object_operators<boost::python::api::proxy <boost::python::api::attribute_policies> >::operator()() const ()

from /usr/lib/python2.7/site-packages/libtorrent.so

#3 0xafe13fb1 in prioritize_files(libtorrent::torrent_handle&, boost::python::a pi::object) () from /usr/lib/python2.7/site-packages/libtorrent.so #4 0xafe22ce0 in boost::python::objects::caller_py_function_impl<boost::python: :detail::caller<void (*)(libtorrent::torrent_handle&, boost::python::api::object ), boost::python::default_call_policies, boost::mpl::vector3<void, libtorrent::t orrent_handle&, boost::python::api::object> > >::operator()(_object*, _object*)

() from /usr/lib/python2.7/site-packages/libtorrent.so

#5 0xaf99d25f in boost::python::objects::function::call(_object*, _object*) con st () from /usr/lib/libboost_python-mt-1_42.so.1.42.0 #6 0xaf99d407 in ?? () from /usr/lib/libboost_python-mt-1_42.so.1.42.0 #7 0xaf9a43a2 in boost::python::handle_exception_impl(boost::function0<void>)

() from /usr/lib/libboost_python-mt-1_42.so.1.42.0

#8 0xaf999eb6 in ?? () from /usr/lib/libboost_python-mt-1_42.so.1.42.0 #9 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #10 0xb7f1d116 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #11 0xb7f1eaaf in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 ---Type <return> to continue, or q <return> to quit--- #12 0xb7f1eaaf in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #13 0xb7f1f313 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #14 0xb7eaa9b7 in ?? () from /usr/lib/libpython2.7.so.1.0 #15 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #16 0xb7e93869 in ?? () from /usr/lib/libpython2.7.so.1.0 #17 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #18 0xb7eda316 in ?? () from /usr/lib/libpython2.7.so.1.0 #19 0xb7ed8f15 in ?? () from /usr/lib/libpython2.7.so.1.0 #20 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #21 0xb7f1d116 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #22 0xb7f1f313 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #23 0xb7f1d4b8 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #24 0xb7f1f313 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #25 0xb7eaaa9e in ?? () from /usr/lib/libpython2.7.so.1.0 #26 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #27 0xb7f1c394 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #28 0xb7f1f313 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #29 0xb7eaaa9e in ?? () from /usr/lib/libpython2.7.so.1.0 #30 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #31 0xb7f1c394 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #32 0xb7f1f313 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #33 0xb7eaaa9e in ?? () from /usr/lib/libpython2.7.so.1.0 #34 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 ---Type <return> to continue, or q <return> to quit--- #35 0xb7f1c394 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #36 0xb7f1f313 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #37 0xb7eaa9b7 in ?? () from /usr/lib/libpython2.7.so.1.0 #38 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #39 0xb7e93869 in ?? () from /usr/lib/libpython2.7.so.1.0 #40 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #41 0xb7eda6a8 in ?? () from /usr/lib/libpython2.7.so.1.0 #42 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #43 0xb7f1d116 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #44 0xb7f1f313 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #45 0xb7eaa9b7 in ?? () from /usr/lib/libpython2.7.so.1.0 #46 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #47 0xb7e93869 in ?? () from /usr/lib/libpython2.7.so.1.0 #48 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #49 0xb7f17f44 in PyEval_CallObjectWithKeywords ()

from /usr/lib/libpython2.7.so.1.0

#50 0xb7e8075c in PyObject_CallObject () from /usr/lib/libpython2.7.so.1.0 #51 0xb73cb6be in ?? ()

from /usr/lib/python2.7/site-packages/gtk-2.0/gobject/_gobject.so

#52 0xb758bc22 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #53 0xb75a27b5 in ?? () from /usr/lib/libgobject-2.0.so.0 #54 0xb75a3bdc in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #55 0xb75a4062 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 ---Type <return> to continue, or q <return> to quit--- #56 0xb6d755aa in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0 #57 0xb6d76b68 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #58 0xb759bb6c in g_cclosure_marshal_VOIDVOID ()

from /usr/lib/libgobject-2.0.so.0

#59 0xb758a297 in ?? () from /usr/lib/libgobject-2.0.so.0 #60 0xb758bc22 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #61 0xb75a205a in ?? () from /usr/lib/libgobject-2.0.so.0 #62 0xb75a3bdc in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #63 0xb75a4062 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #64 0xb6d7564a in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0 #65 0xb6d75693 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #66 0xb6e33564 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #67 0xb758a297 in ?? () from /usr/lib/libgobject-2.0.so.0 #68 0xb758bc22 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #69 0xb75a2406 in ?? () from /usr/lib/libgobject-2.0.so.0 #70 0xb75a3a5b in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #71 0xb75a4062 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #72 0xb6f60066 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #73 0xb6e2bb5d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #74 0xb6e2cef7 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #75 0xb6cb79da in ?? () from /usr/lib/libgdk-x11-2.0.so.0 #76 0xb74b4355 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #77 0xb74b8928 in ?? () from /usr/lib/libglib-2.0.so.0 ---Type <return> to continue, or q <return> to quit--- #78 0xb74b8e67 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #79 0xb6e2d4b9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #80 0xb7243c80 in ?? ()

from /usr/lib/python2.7/site-packages/gtk-2.0/gtk/_gtk.so

#81 0xb7f1d946 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #82 0xb7f1f313 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #83 0xb7f1d4b8 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #84 0xb7f1f313 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #85 0xb7eaa9b7 in ?? () from /usr/lib/libpython2.7.so.1.0 #86 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #87 0xb7e93869 in ?? () from /usr/lib/libpython2.7.so.1.0 #88 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #89 0xb7eda316 in ?? () from /usr/lib/libpython2.7.so.1.0 #90 0xb7ed8f15 in ?? () from /usr/lib/libpython2.7.so.1.0 #91 0xb7e7fd4c in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #92 0xb7f1d116 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #93 0xb7f1eaaf in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #94 0xb7f1eaaf in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #95 0xb7f1f313 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #96 0xb7f1f463 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0 #97 0xb7f3911b in ?? () from /usr/lib/libpython2.7.so.1.0 #98 0xb7f391e2 in PyRun_FileExFlags () from /usr/lib/libpython2.7.so.1.0 #99 0xb7f3a85c in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.7.so.1.0 ---Type <return> to continue, or q <return> to quit--- #100 0xb7f3b0f2 in PyRun_AnyFileExFlags () from /usr/lib/libpython2.7.so.1.0 #101 0xb7f4c67e in Py_Main () from /usr/lib/libpython2.7.so.1.0 #102 0x08048833 in main ()

Change History (10)

comment:1 Changed 10 years ago by nis

  • Milestone changed from Future to 1.3.x

comment:2 Changed 10 years ago by andar

  • Resolution set to invalid
  • Status changed from new to closed

This is a bug in glibc. See: http://bugs.gentoo.org/353224 for reference. I recently dealt with this myself as I also run Gentoo.

comment:3 Changed 10 years ago by nis

  • Resolution invalid deleted
  • Status changed from closed to reopened

This wrong. I tried various version of glibc, and that had not result. I think that problem in boost, python or deluge.

comment:4 Changed 10 years ago by nis

Yet deluged, deluge-web worked is right.

comment:5 Changed 10 years ago by andar

  • Resolution set to invalid
  • Status changed from reopened to closed

It's not wrong. deluged and deluge-web don't import pygtk.

comment:6 Changed 10 years ago by nis

Deluge crached then when *.torrent appender and begin downloading. Hence deluge crached in torrent function in gui. Not what very strange. I compiling glibc oldest versions, new versions and new versions with patch. Result same to. That I can do?

comment:7 Changed 10 years ago by nis

  • Resolution invalid deleted
  • Status changed from closed to reopened

comment:8 Changed 10 years ago by nis

  • Priority changed from minor to major

I'm updated all system, and cleared deluge's configs.

End of strace logs

gettimeofday({1307706775, 730349}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC, {6500, 733809388}) = 0
clock_gettime(CLOCK_MONOTONIC, {6500, 734501669}) = 0
poll([{fd=7, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=3, events=POLLIN}, {fd=28, events=POLLIN}, {fd=4, events=POLLIN}], 6, 0) = 1 ([{fd=4, revents=POLLIN}])
ioctl(4, FIONREAD, [32])                = 0
clock_gettime(CLOCK_MONOTONIC, {6500, 734703501}) = 0
clock_gettime(CLOCK_MONOTONIC, {6500, 734908752}) = 0
gettimeofday({1307706775, 731599}, NULL) = 0
gettimeofday({1307706775, 731777}, NULL) = 0
gettimeofday({1307706775, 731838}, NULL) = 0
gettimeofday({1307706775, 731947}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC, {6500, 735423024}) = 0
clock_gettime(CLOCK_MONOTONIC, {6500, 735476983}) = 0
poll([{fd=7, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=3, events=POLLIN}, {fd=28, events=POLLIN}], 5, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {6500, 735722185}) = 0
poll([{fd=7, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=3, events=POLLIN}, {fd=28, events=POLLIN}], 5, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {6500, 735951757}) = 0
clock_gettime(CLOCK_MONOTONIC, {6500, 736000175}) = 0
poll([{fd=7, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=3, events=POLLIN}, {fd=28, events=POLLIN}], 5, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {6500, 736198821}) = 0
poll([{fd=7, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=3, events=POLLIN}, {fd=28, events=POLLIN}], 5, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {6500, 736380000}) = 0
clock_gettime(CLOCK_MONOTONIC, {6500, 736427637}) = 0
poll([{fd=7, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=3, events=POLLIN}, {fd=28, events=POLLIN}], 5, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {6500, 736624202}) = 0
poll([{fd=7, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=3, events=POLLIN}, {fd=28, events=POLLIN}], 5, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {6500, 736834425}) = 0
clock_gettime(CLOCK_MONOTONIC, {6500, 736882605}) = 0
poll([{fd=7, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=3, events=POLLIN}, {fd=28, events=POLLIN}], 5, 0) = 0 (Timeout)
gettimeofday({1307706775, 733626}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC, {6500, 737311928}) = 0
poll([{fd=7, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=3, events=POLLIN}, {fd=28, events=POLLIN}], 5, 0) = 0 (Timeout)
poll([{fd=10, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=10, revents=POLLOUT}])
writev(10, [{"\2\30\4\0@\1\340\2\0@\0\0\0\0\0\0\2\4\4\0@\1\340\2\0@\0\0\0\0\0\0"..., 104}, {NULL, 0}, {"", 0}], 3) = 104
poll([{fd=10, events=POLLIN}], 1, -1)   = 1 ([{fd=10, revents=POLLIN}])
read(10, "\34\0Y}@\1\340\2G\1\0\0\2011c\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 64
read(10, 0x8e743c8, 4096)               = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=10, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=10, revents=POLLOUT}])
writev(10, [{"&\30\2\0\27@`\1", 8}, {NULL, 0}, {"", 0}], 3) = 8
poll([{fd=10, events=POLLIN}], 1, -1)   = 1 ([{fd=10, revents=POLLIN}])
read(10, "\1\1\\}\0\0\0\0\215\1\0\0\30@`\1;\4\\\2\346\2\344\1\0\0\0\0\0\0\0\0", 4096) = 32
read(10, 0x8e743c8, 4096)               = -1 EAGAIN (Resource temporarily unavailable)
read(10, 0x8e743c8, 4096)               = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=10, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=10, revents=POLLOUT}])
writev(10, [{"&\30\2\0\30@`\1", 8}, {NULL, 0}, {"", 0}], 3) = 8
poll([{fd=10, events=POLLIN}], 1, -1)   = 1 ([{fd=10, revents=POLLIN}])
read(10, "\1\1]}\0\0\0\0\215\1\0\0@\1\340\2;\4\\\2\343\2\315\1\0\0\0\0\0\0\0\0", 4096) = 32
read(10, 0x8e743c8, 4096)               = -1 EAGAIN (Resource temporarily unavailable)
read(10, 0x8e743c8, 4096)               = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=10, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=10, revents=POLLOUT}])
writev(10, [{"&\30\2\0@\1\340\2", 8}, {NULL, 0}, {"", 0}], 3) = 8
poll([{fd=10, events=POLLIN}], 1, -1)   = 1 ([{fd=10, revents=POLLIN}])
read(10, "\1\1^}\0\0\0\0\215\1\0\0\0\0\0\0;\4\\\2\343\2\315\1\0\0\0\0\0\0\0\0", 4096) = 32
read(10, 0x8e743c8, 4096)               = -1 EAGAIN (Resource temporarily unavailable)
read(10, 0x8e743c8, 4096)               = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=10, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=10, revents=POLLOUT}])
writev(10, [{"%\30\1\0", 4}, {NULL, 0}, {"", 0}], 3) = 4
read(10, 0x8e743c8, 4096)               = -1 EAGAIN (Resource temporarily unavailable)
getcwd("/home/no111u3", 32)             = 14
futex(0x95c11b0, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 0x95c1194, 4) = 1
futex(0x95c1194, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x95c117c, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x95c0e6c, FUTEX_WAKE_PRIVATE, 1) = 1
gettimeofday({1307706775, 744315}, NULL) = 0
gettimeofday({1307706775, 744456}, NULL) = 0
gettimeofday({1307706775, 744528}, NULL) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

comment:9 Changed 10 years ago by Cas

  • Resolution set to invalid
  • Status changed from reopened to closed

Please report to Gentoo bug tracker as there is nothing we do to solve this.

comment:10 Changed 5 years ago by Cas

  • Milestone 1.3.x deleted

Milestone deleted

Note: See TracTickets for help on using tickets.