Bug 221174 - plasmoidviewer crashing with python + multiple qthreads
Summary: plasmoidviewer crashing with python + multiple qthreads
Status: RESOLVED WORKSFORME
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-03 23:12 UTC by Thomas Müller
Modified: 2018-11-28 04:51 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Müller 2010-01-03 23:12:45 UTC
Application that crashed: plasmoidviewer
Version of the application: 1.0
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.3
Operating System: Linux 2.6.30-2-686-bigmem i686
Distribution: Debian GNU/Linux testing-proposed-updates (sid)

What I was doing when the application crashed:
the plasmoid starts threads, which shall execute ping using subprocess.call.

this leads to the crash.

Code can be delivered if neccessary.


 -- Backtrace:
Application: Plasma-Miniprogramm-Anzeige (plasmoidviewer), signal: Segmentation fault
[Current thread is 1 (Thread 0xb3da6730 (LWP 13253))]

Thread 4 (Thread 0xa62dcb70 (LWP 13254)):
#0  0xb7fa1424 in __kernel_vsyscall ()
#1  0xb5196285 in sem_wait@@GLIBC_2.1 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/sem_wait.S:80
#2  0xa88c7ac0 in PyThread_acquire_lock (lock=0x9611408, waitflag=1) at ../Python/thread_pthread.h:349
#3  0xa8899bd7 in PyEval_RestoreThread (tstate=0x99ea930) at ../Python/ceval.c:332
#4  0xa88d191b in posix_waitpid (self=0x0, args=0xa73c424c) at ../Modules/posixmodule.c:5639
#5  0xa884df8d in PyCFunction_Call (func=0xa87e4f2c, arg=0xa73c424c, kw=0x0) at ../Objects/methodobject.c:73
#6  0xa889f2e1 in call_function (f=0x99ee464, throwflag=0) at ../Python/ceval.c:3612
#7  PyEval_EvalFrameEx (f=0x99ee464, throwflag=0) at ../Python/ceval.c:2304
#8  0xa88a01df in fast_function (f=0x99ee2fc, throwflag=0) at ../Python/ceval.c:3698
#9  call_function (f=0x99ee2fc, throwflag=0) at ../Python/ceval.c:3633
#10 PyEval_EvalFrameEx (f=0x99ee2fc, throwflag=0) at ../Python/ceval.c:2304
#11 0xa88a01df in fast_function (f=0x99eae0c, throwflag=0) at ../Python/ceval.c:3698
#12 call_function (f=0x99eae0c, throwflag=0) at ../Python/ceval.c:3633
#13 PyEval_EvalFrameEx (f=0x99eae0c, throwflag=0) at ../Python/ceval.c:2304
#14 0xa88a0c0d in PyEval_EvalCodeEx (co=0xa73df2f0, globals=0xa73caf0c, locals=0x0, args=0x99eac38, argcount=1, kws=0x99eac3c, kwcount=3, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2875
#15 0xa889f4bb in fast_function (f=0x99eaaf4, throwflag=0) at ../Python/ceval.c:3708
#16 call_function (f=0x99eaaf4, throwflag=0) at ../Python/ceval.c:3633
#17 PyEval_EvalFrameEx (f=0x99eaaf4, throwflag=0) at ../Python/ceval.c:2304
#18 0xa88a01df in fast_function (f=0x99ea994, throwflag=0) at ../Python/ceval.c:3698
#19 call_function (f=0x99ea994, throwflag=0) at ../Python/ceval.c:3633
#20 PyEval_EvalFrameEx (f=0x99ea994, throwflag=0) at ../Python/ceval.c:2304
#21 0xa88a0c0d in PyEval_EvalCodeEx (co=0xa7edecc8, globals=0xa73c124c, locals=0x0, args=0x99a52b8, argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2875
#22 0xa8838e4a in function_call (func=0x999e3e4, arg=0x99a52ac, kw=0x0) at ../Objects/funcobject.c:517
#23 0xa8815867 in PyObject_Call (func=0x80, arg=0x99a52ac, kw=0x0) at ../Objects/abstract.c:1861
#24 0xa881d4b5 in instancemethod_call (func=0x999e3e4, arg=0x99a52ac, kw=0x0) at ../Objects/classobject.c:2519
#25 0xa8815867 in PyObject_Call (func=0x80, arg=0xa87b302c, kw=0x0) at ../Objects/abstract.c:1861
#26 0xa889902c in PyEval_CallObjectWithKeywords (func=0xa877320c, arg=0xa87b302c, kw=0x0) at ../Python/ceval.c:3481
#27 0xa8ccb6c3 in ?? () from /usr/lib/pymodules/python2.5/sip.so
#28 0xa863bebc in ?? () from /usr/lib/pymodules/python2.5/PyQt4/QtCore.so
#29 0xa866436d in ?? () from /usr/lib/pymodules/python2.5/PyQt4/QtCore.so
#30 0xb75e65e2 in QThreadPrivate::start (arg=0x99e86b0) at thread/qthread_unix.cpp:188
#31 0xb5190585 in start_thread (arg=0xa62dcb70) at pthread_create.c:300
#32 0xb6a6b2be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xa59dab70 (LWP 13256)):
[KCrash Handler]
#6  call_function (f=0x99ee184, throwflag=0) at ../Python/ceval.c:3612
#7  PyEval_EvalFrameEx (f=0x99ee184, throwflag=0) at ../Python/ceval.c:2304
#8  0xa88a01df in fast_function (f=0x99edfa4, throwflag=0) at ../Python/ceval.c:3698
#9  call_function (f=0x99edfa4, throwflag=0) at ../Python/ceval.c:3633
#10 PyEval_EvalFrameEx (f=0x99edfa4, throwflag=0) at ../Python/ceval.c:2304
#11 0xa88a01df in fast_function (f=0x99edc34, throwflag=0) at ../Python/ceval.c:3698
#12 call_function (f=0x99edc34, throwflag=0) at ../Python/ceval.c:3633
#13 PyEval_EvalFrameEx (f=0x99edc34, throwflag=0) at ../Python/ceval.c:2304
#14 0xa88a0c0d in PyEval_EvalCodeEx (co=0xa73e6650, globals=0xa73caf0c, locals=0x0, args=0xa73e9a38, argcount=2, kws=0x99edc08, kwcount=3, defs=0x990a3f8, defcount=13, closure=0x0)
    at ../Python/ceval.c:2875
#15 0xa8838f39 in function_call (func=0x9902374, arg=0xa73e9a2c, kw=0x99a48ac) at ../Objects/funcobject.c:517
#16 0xa8815867 in PyObject_Call (func=0x2, arg=0xa73e9a2c, kw=0x99a48ac) at ../Objects/abstract.c:1861
#17 0xa881d4b5 in instancemethod_call (func=0x9902374, arg=0xa73e9a2c, kw=0x99a48ac) at ../Objects/classobject.c:2519
#18 0xa8815867 in PyObject_Call (func=0x2, arg=0x99a550c, kw=0x99a48ac) at ../Objects/abstract.c:1861
#19 0xa886ddd3 in slot_tp_init (self=0x99a552c, args=0x99a550c, kwds=0x99a48ac) at ../Objects/typeobject.c:4976
#20 0xa8864f25 in type_call (type=<value optimized out>, args=0x99a550c, kwds=0x99a48ac) at ../Objects/typeobject.c:436
#21 0xa8815867 in PyObject_Call (func=0x2, arg=0x99a550c, kw=0x99a48ac) at ../Objects/abstract.c:1861
#22 0xa889e0c4 in ext_do_call (f=0x99edab4, throwflag=0) at ../Python/ceval.c:3892
#23 PyEval_EvalFrameEx (f=0x99edab4, throwflag=0) at ../Python/ceval.c:2344
#24 0xa88a0c0d in PyEval_EvalCodeEx (co=0xa73df2f0, globals=0xa73caf0c, locals=0x0, args=0x99ed8f8, argcount=1, kws=0x99ed8fc, kwcount=3, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2875
#25 0xa889f4bb in fast_function (f=0x99ed7b4, throwflag=0) at ../Python/ceval.c:3708
#26 call_function (f=0x99ed7b4, throwflag=0) at ../Python/ceval.c:3633
#27 PyEval_EvalFrameEx (f=0x99ed7b4, throwflag=0) at ../Python/ceval.c:2304
#28 0xa88a01df in fast_function (f=0x99ed654, throwflag=0) at ../Python/ceval.c:3698
#29 call_function (f=0x99ed654, throwflag=0) at ../Python/ceval.c:3633
#30 PyEval_EvalFrameEx (f=0x99ed654, throwflag=0) at ../Python/ceval.c:2304
#31 0xa88a0c0d in PyEval_EvalCodeEx (co=0xa7edecc8, globals=0xa73c124c, locals=0x0, args=0x99a5498, argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2875
#32 0xa8838e4a in function_call (func=0x999e454, arg=0x99a548c, kw=0x0) at ../Objects/funcobject.c:517
#33 0xa8815867 in PyObject_Call (func=0x2, arg=0x99a548c, kw=0x0) at ../Objects/abstract.c:1861
#34 0xa881d4b5 in instancemethod_call (func=0x999e454, arg=0x99a548c, kw=0x0) at ../Objects/classobject.c:2519
#35 0xa8815867 in PyObject_Call (func=0x2, arg=0xa87b302c, kw=0x0) at ../Objects/abstract.c:1861
#36 0xa889902c in PyEval_CallObjectWithKeywords (func=0xa73cb784, arg=0xa87b302c, kw=0x0) at ../Python/ceval.c:3481
#37 0xa8ccb6c3 in ?? () from /usr/lib/pymodules/python2.5/sip.so
#38 0xa863bebc in ?? () from /usr/lib/pymodules/python2.5/PyQt4/QtCore.so
#39 0xa866436d in ?? () from /usr/lib/pymodules/python2.5/PyQt4/QtCore.so
#40 0xb75e65e2 in QThreadPrivate::start (arg=0x99ebe60) at thread/qthread_unix.cpp:188
#41 0xb5190585 in start_thread (arg=0xa59dab70) at pthread_create.c:300
#42 0xb6a6b2be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xa51d9b70 (LWP 13259)):
#0  0xb7fa1424 in __kernel_vsyscall ()
#1  0xb5196285 in sem_wait@@GLIBC_2.1 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/sem_wait.S:80
#2  0xa88c7ac0 in PyThread_acquire_lock (lock=0x9611408, waitflag=1) at ../Python/thread_pthread.h:349
#3  0xa8899bd7 in PyEval_RestoreThread (tstate=0x99f03f0) at ../Python/ceval.c:332
#4  0xa88d191b in posix_waitpid (self=0x0, args=0xa73e97cc) at ../Modules/posixmodule.c:5639
#5  0xa884df8d in PyCFunction_Call (func=0xa87e4f2c, arg=0xa73e97cc, kw=0x0) at ../Objects/methodobject.c:73
#6  0xa889f2e1 in call_function (f=0x99f0b9c, throwflag=0) at ../Python/ceval.c:3612
#7  PyEval_EvalFrameEx (f=0x99f0b9c, throwflag=0) at ../Python/ceval.c:2304
#8  0xa88a01df in fast_function (f=0x99eb5dc, throwflag=0) at ../Python/ceval.c:3698
#9  call_function (f=0x99eb5dc, throwflag=0) at ../Python/ceval.c:3633
#10 PyEval_EvalFrameEx (f=0x99eb5dc, throwflag=0) at ../Python/ceval.c:2304
#11 0xa88a01df in fast_function (f=0x99eaf6c, throwflag=0) at ../Python/ceval.c:3698
#12 call_function (f=0x99eaf6c, throwflag=0) at ../Python/ceval.c:3633
#13 PyEval_EvalFrameEx (f=0x99eaf6c, throwflag=0) at ../Python/ceval.c:2304
#14 0xa88a0c0d in PyEval_EvalCodeEx (co=0xa73e6650, globals=0xa73caf0c, locals=0x0, args=0xa73c94f8, argcount=2, kws=0x99eea20, kwcount=3, defs=0x990a3f8, defcount=13, closure=0x0)
    at ../Python/ceval.c:2875
#15 0xa8838f39 in function_call (func=0x9902374, arg=0xa73c94ec, kw=0x99a4acc) at ../Objects/funcobject.c:517
#16 0xa8815867 in PyObject_Call (func=0x80, arg=0xa73c94ec, kw=0x99a4acc) at ../Objects/abstract.c:1861
#17 0xa881d4b5 in instancemethod_call (func=0x9902374, arg=0xa73c94ec, kw=0x99a4acc) at ../Objects/classobject.c:2519
#18 0xa8815867 in PyObject_Call (func=0x80, arg=0x99a556c, kw=0x99a4acc) at ../Objects/abstract.c:1861
#19 0xa886ddd3 in slot_tp_init (self=0x99a560c, args=0x99a556c, kwds=0x99a4acc) at ../Objects/typeobject.c:4976
#20 0xa8864f25 in type_call (type=<value optimized out>, args=0x99a556c, kwds=0x99a4acc) at ../Objects/typeobject.c:436
#21 0xa8815867 in PyObject_Call (func=0x80, arg=0x99a556c, kw=0x99a4acc) at ../Objects/abstract.c:1861
#22 0xa889e0c4 in ext_do_call (f=0x99f08b4, throwflag=0) at ../Python/ceval.c:3892
#23 PyEval_EvalFrameEx (f=0x99f08b4, throwflag=0) at ../Python/ceval.c:2344
#24 0xa88a0c0d in PyEval_EvalCodeEx (co=0xa73df2f0, globals=0xa73caf0c, locals=0x0, args=0x99f06f8, argcount=1, kws=0x99f06fc, kwcount=3, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2875
#25 0xa889f4bb in fast_function (f=0x99f05b4, throwflag=0) at ../Python/ceval.c:3708
#26 call_function (f=0x99f05b4, throwflag=0) at ../Python/ceval.c:3633
#27 PyEval_EvalFrameEx (f=0x99f05b4, throwflag=0) at ../Python/ceval.c:2304
#28 0xa88a01df in fast_function (f=0x99f0454, throwflag=0) at ../Python/ceval.c:3698
#29 call_function (f=0x99f0454, throwflag=0) at ../Python/ceval.c:3633
#30 PyEval_EvalFrameEx (f=0x99f0454, throwflag=0) at ../Python/ceval.c:2304
#31 0xa88a0c0d in PyEval_EvalCodeEx (co=0xa7edecc8, globals=0xa73c124c, locals=0x0, args=0x99a5598, argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2875
#32 0xa8838e4a in function_call (func=0x999e4c4, arg=0x99a558c, kw=0x0) at ../Objects/funcobject.c:517
#33 0xa8815867 in PyObject_Call (func=0x80, arg=0x99a558c, kw=0x0) at ../Objects/abstract.c:1861
#34 0xa881d4b5 in instancemethod_call (func=0x999e4c4, arg=0x99a558c, kw=0x0) at ../Objects/classobject.c:2519
#35 0xa8815867 in PyObject_Call (func=0x80, arg=0xa87b302c, kw=0x0) at ../Objects/abstract.c:1861
#36 0xa889902c in PyEval_CallObjectWithKeywords (func=0xa73c5734, arg=0xa87b302c, kw=0x0) at ../Python/ceval.c:3481
#37 0xa8ccb6c3 in ?? () from /usr/lib/pymodules/python2.5/sip.so
#38 0xa863bebc in ?? () from /usr/lib/pymodules/python2.5/PyQt4/QtCore.so
#39 0xa866436d in ?? () from /usr/lib/pymodules/python2.5/PyQt4/QtCore.so
#40 0xb75e65e2 in QThreadPrivate::start (arg=0x99eea48) at thread/qthread_unix.cpp:188
#41 0xb5190585 in start_thread (arg=0xa51d9b70) at pthread_create.c:300
#42 0xb6a6b2be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb3da6730 (LWP 13253)):
#0  0xb7fa1424 in __kernel_vsyscall ()
#1  0xb6a5db47 in *__GI___poll (fds=0xbfda2854, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb50480cb in ?? () from /usr/lib/libxcb.so.1
#3  0xb50486ee in ?? () from /usr/lib/libxcb.so.1
#4  0xb5048a97 in xcb_writev () from /usr/lib/libxcb.so.1
#5  0xb684f432 in _XSend (dpy=0x9555ed8, data=0x0, size=0) at ../../src/xcb_io.c:339
#6  0xb684f603 in _XReply (dpy=0x9555ed8, rep=0xbfda29c0, extra=0, discard=1) at ../../src/xcb_io.c:457
#7  0xb6831f2e in XInternAtom (dpy=0x9555ed8, name=0xb68bc67c "WM_LOCALE_NAME", onlyIfExists=0) at ../../src/IntAtom.c:184
#8  0xb6845dbe in XSetWMProperties (dpy=0x9555ed8, w=69206081, windowName=0x0, iconName=0x0, argv=0x9542e40, argc=1, sizeHints=0xbfda2dc8, wmHints=0xbfda2e4c, classHints=0xbfda2eb4)
    at ../../src/WMProps.c:145
#9  0xb6da9711 in QWidgetPrivate::create_sys (this=0x95e9820, window=0, initializeWindow=true, destroyOldWindow=true) at kernel/qwidget_x11.cpp:756
#10 0xb6d6ec91 in QWidget::create (this=0xbfda329c, window=0, initializeWindow=true, destroyOldWindow=<value optimized out>) at kernel/qwidget.cpp:1253
#11 0xb6d69fbb in QWidgetPrivate::createWinId (this=0x95e9820, winid=0) at kernel/qwidget.cpp:2187
#12 0xb6d6e64b in QWidgetPrivate::setWindowTitle_helper (this=0x95e9820, title=...) at kernel/qwidget.cpp:5375
#13 0xb6d6ea92 in QWidget::setWindowTitle (this=0xbfda329c, title=...) at kernel/qwidget.cpp:5406
#14 0x0804cf2a in FullView::addApplet (this=0xbfda329c, name=..., containment=..., wallpaper=..., args=...) at ../../../../plasma/shells/plasmoidviewer/fullview.cpp:121
#15 0x0804f852 in main (argc=2, argv=0xbfda35a4) at ../../../../plasma/shells/plasmoidviewer/main.cpp:158

Reported using DrKonqi
Comment 1 Dario Andres 2010-01-05 00:02:31 UTC
There are some other crashes also related to the python bindings and threading: bug 221049 and bug 217492 (but the crash moment and the backtraces are different)
Thanks
Comment 2 Andrew Crouthamel 2018-10-29 22:30:04 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2018-11-13 14:23:24 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2018-11-28 04:51:53 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!