Bug 270628

Summary: Crash when downloading online content [QString::operator=, QFile, null KNS3::Cache::writeRegistry, KNS3::Engine::~Engine, KNS3::DownloadWidgetPrivate::~DownloadWidgetPrivate]
Product: [Unmaintained] kdelibs Reporter: Ben Luberti <benhyper>
Component: knewstuffAssignee: Jeremy Whiting <jpwhiting>
Status: RESOLVED WORKSFORME    
Severity: crash CC: andresbajotierra, gian.kou, gladhorn, joabwilliamson, kde-games-bugs, markg85, nathan.passeron
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: KDevelop crash stacktrace

Description Ben Luberti 2011-04-10 22:45:39 UTC
Application: kpat (3.5.1)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic i686
Distribution: Ubuntu Natty (development branch)

-- Information about the crash:
- What I was doing when the application crashed: Starting up kpatience and trying to get an other back fr my cards.

The crash can be reproduced every time.

-- Backtrace:
Application: KPatience (kpat), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7778710 (LWP 2706))]

Thread 6 (Thread 0xb746ab70 (LWP 2708)):
#0  0x01f8162b in pthread_mutex_unlock () from /lib/i386-linux-gnu/libc.so.6
#1  0x01272dd6 in g_main_context_iterate (context=0x84815c0, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.5/./glib/gmain.c:3032
#2  0x0127392b in g_main_loop_run (loop=0x84815b0) at /build/buildd/glib2.0-2.28.5/./glib/gmain.c:3299
#3  0x016ac434 in gdbus_shared_thread_func (data=0x0) at /build/buildd/glib2.0-2.28.5/./gio/gdbusprivate.c:276
#4  0x0129c2df in g_thread_create_proxy (data=0x8481650) at /build/buildd/glib2.0-2.28.5/./glib/gthread.c:1897
#5  0x0121ee99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0x01f7373e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 5 (Thread 0xaf526b70 (LWP 2724)):
#0  0x00881416 in __kernel_vsyscall ()
#1  0x01223834 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x01f81454 in pthread_cond_timedwait () from /lib/i386-linux-gnu/libc.so.6
#3  0x01e15963 in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 4 (Thread 0xaed25b70 (LWP 2725)):
#0  0x03fdbd41 in clock_gettime () from /lib/i386-linux-gnu/librt.so.1
#1  0x00938dd8 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x00a054f2 in updateCurrentTime (this=0x86d6a3c, tm=...) at kernel/qeventdispatcher_unix.cpp:339
#4  QTimerInfoList::timerWait (this=0x86d6a3c, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x00a03d32 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xaed250ec) at kernel/qeventdispatcher_glib.cpp:136
#6  0x00a03dcd in timerSourcePrepare (source=0x86d6a08, timeout=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0x01271fd4 in g_main_context_prepare (context=<value optimized out>, priority=0xaed2515c) at /build/buildd/glib2.0-2.28.5/./glib/gmain.c:2761
#8  0x01272e63 in g_main_context_iterate (context=0x86d30d0, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.5/./glib/gmain.c:3071
#9  0x01273524 in g_main_context_iteration (context=0x86d30d0, may_block=1) at /build/buildd/glib2.0-2.28.5/./glib/gmain.c:3154
#10 0x00a04577 in QEventDispatcherGlib::processEvents (this=0x871b968, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0x009d6289 in QEventLoop::processEvents (this=0xaed252a0, flags=...) at kernel/qeventloop.cpp:149
#12 0x009d6522 in QEventLoop::exec (this=0xaed252a0, flags=...) at kernel/qeventloop.cpp:201
#13 0x008e02a0 in QThread::exec (this=0x86d6b98) at thread/qthread.cpp:492
#14 0x04d1b89a in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#15 0x008e2da2 in QThreadPrivate::start (arg=0x86d6b98) at thread/qthread_unix.cpp:320
#16 0x0121ee99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#17 0x01f7373e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0xae524b70 (LWP 2726)):
#0  0x00881416 in __kernel_vsyscall ()
#1  0x01f64f76 in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0x063ca4a2 in ?? () from /usr/lib/libpulse.so.0
#3  0x063b93a9 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#4  0x063b9b84 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#5  0x063b9c64 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#6  0x063ca443 in ?? () from /usr/lib/libpulse.so.0
#7  0x07506a75 in ?? () from /usr/lib/libpulsecommon-0.9.22.so
#8  0x0121ee99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#9  0x01f7373e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xa9d22b70 (LWP 2727)):
#0  0x00881416 in __kernel_vsyscall ()
#1  0x0122348c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x01f813fd in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0x01e28870 in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 1 (Thread 0xb7778710 (LWP 2706)):
[KCrash Handler]
#7  QString::operator= (this=0x89830c8, other=...) at tools/qstring.cpp:1357
#8  0x009680e9 in QFile::QFile (this=0xbfe782a0, name=...) at io/qfile.cpp:387
#9  0x007d8538 in KNS3::Cache::writeRegistry (this=0x0) at ../../../knewstuff/knewstuff3/core/cache.cpp:203
#10 0x007dd63a in KNS3::Engine::~Engine (this=0x8721ca0, __in_chrg=<value optimized out>) at ../../../knewstuff/knewstuff3/core/engine.cpp:87
#11 0x007dd772 in KNS3::Engine::~Engine (this=0x8721ca0, __in_chrg=<value optimized out>) at ../../../knewstuff/knewstuff3/core/engine.cpp:91
#12 0x007cf13b in KNS3::DownloadWidgetPrivate::~DownloadWidgetPrivate (this=0x8529798, __in_chrg=<value optimized out>) at ../../../knewstuff/knewstuff3/downloadwidget.cpp:103
#13 0x007cf25c in KNS3::DownloadWidget::~DownloadWidget (this=0x88ef220, __in_chrg=<value optimized out>) at ../../../knewstuff/knewstuff3/downloadwidget.cpp:65
#14 0x007cf2b2 in KNS3::DownloadWidget::~DownloadWidget (this=0x88ef220, __in_chrg=<value optimized out>) at ../../../knewstuff/knewstuff3/downloadwidget.cpp:66
#15 0x007ce818 in ~DownloadDialogPrivate (this=0xbfe7844c, __in_chrg=<value optimized out>) at ../../../knewstuff/knewstuff3/downloaddialog.cpp:46
#16 KNS3::DownloadDialog::~DownloadDialog (this=0xbfe7844c, __in_chrg=<value optimized out>) at ../../../knewstuff/knewstuff3/downloaddialog.cpp:102
#17 0x007b4d59 in ?? () from /usr/lib/libkcardgame.so
#18 0x007a04eb in ?? () from /usr/lib/libkcardgame.so
#19 0x009dd6ba in QMetaObject::metacall (object=0x88f39e0, cl=QMetaObject::InvokeMetaMethod, idx=6, argv=0xbfe785a8) at kernel/qmetaobject.cpp:237
#20 0x009ed4ff in QMetaObject::activate (sender=0x88f6b60, m=0x4b20884, local_signal_index=2, argv=0xbfe785a8) at kernel/qobject.cpp:3287
#21 0x048c5d39 in QAbstractButton::clicked (this=0x88f6b60, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#22 0x045dd896 in QAbstractButtonPrivate::emitClicked (this=0x88f71f8) at widgets/qabstractbutton.cpp:546
#23 0x045df104 in QAbstractButtonPrivate::click (this=0x88f71f8) at widgets/qabstractbutton.cpp:539
#24 0x045df3be in QAbstractButton::mouseReleaseEvent (this=0x88f6b60, e=0xbfe78d04) at widgets/qabstractbutton.cpp:1121
#25 0x0423513a in QWidget::event (this=0x88f6b60, event=0xbfe78d04) at kernel/qwidget.cpp:8259
#26 0x045de40e in QAbstractButton::event (this=0x88f6b60, e=0xbfe78d04) at widgets/qabstractbutton.cpp:1080
#27 0x0467c1c2 in QPushButton::event (this=0x88f6b60, e=0xbfe78d04) at widgets/qpushbutton.cpp:683
#28 0x041dcd24 in QApplicationPrivate::notify_helper (this=0x844c008, receiver=0x88f6b60, e=0xbfe78d04) at kernel/qapplication.cpp:4462
#29 0x041e2201 in QApplication::notify (this=0xbfe795d4, receiver=0x88f6b60, e=0xbfe78d04) at kernel/qapplication.cpp:4023
#30 0x00f353ca in KApplication::notify (this=0xbfe795d4, receiver=0x88f6b60, event=0xbfe78d04) at ../../kdeui/kernel/kapplication.cpp:311
#31 0x009d70bb in QCoreApplication::notifyInternal (this=0xbfe795d4, receiver=0x88f6b60, event=0xbfe78d04) at kernel/qcoreapplication.cpp:731
#32 0x041ddc3b in sendSpontaneousEvent (receiver=0x88f6b60, event=0xbfe78d04, alienWidget=0x88f6b60, nativeWidget=0x86bd330, buttonDown=0x4b29c60, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#33 QApplicationPrivate::sendMouseEvent (receiver=0x88f6b60, event=0xbfe78d04, alienWidget=0x88f6b60, nativeWidget=0x86bd330, buttonDown=0x4b29c60, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3120
#34 0x042672bc in QETWidget::translateMouseEvent (this=0x86bd330, event=0xbfe7922c) at kernel/qapplication_x11.cpp:4556
#35 0x04265746 in QApplication::x11ProcessEvent (this=0xbfe795d4, event=0xbfe7922c) at kernel/qapplication_x11.cpp:3678
#36 0x04290b84 in x11EventSourceDispatch (s=0x844e9f8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#37 0x01272aa8 in g_main_dispatch (context=0x844e240) at /build/buildd/glib2.0-2.28.5/./glib/gmain.c:2440
#38 g_main_context_dispatch (context=0x844e240) at /build/buildd/glib2.0-2.28.5/./glib/gmain.c:3013
#39 0x01273270 in g_main_context_iterate (context=0x844e240, block=19413024, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.5/./glib/gmain.c:3091
#40 0x01273524 in g_main_context_iteration (context=0x844e240, may_block=1) at /build/buildd/glib2.0-2.28.5/./glib/gmain.c:3154
#41 0x00a0453c in QEventDispatcherGlib::processEvents (this=0x83f7aa8, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#42 0x04290775 in QGuiEventDispatcherGlib::processEvents (this=0x83f7aa8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x009d6289 in QEventLoop::processEvents (this=0xbfe794f4, flags=...) at kernel/qeventloop.cpp:149
#44 0x009d6522 in QEventLoop::exec (this=0xbfe794f4, flags=...) at kernel/qeventloop.cpp:201
#45 0x009daecc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#46 0x041da8e7 in QApplication::exec () at kernel/qapplication.cpp:3736
#47 0x0805b6f6 in _start ()

Reported using DrKonqi
Comment 1 Parker Coates 2011-04-11 23:23:59 UTC
*** Bug 270707 has been marked as a duplicate of this bug. ***
Comment 2 Dario Andres 2011-05-01 14:46:33 UTC
[Comment from a bug triager]
From bug 272013 (KDE SC 4.6.2):
- What I was doing when the application crashed:
Start SystemSetting----->themes
settings ------>desktop theme ------>download theme =pop up window report
"plasma-themes.knsrc" do not find -------->close(X)=crash
Comment 3 Dario Andres 2011-05-01 14:46:41 UTC
*** Bug 272013 has been marked as a duplicate of this bug. ***
Comment 4 Ben Luberti 2011-05-01 18:54:35 UTC
Solved, thanks, Ben.
Comment 5 Christoph Feck 2011-06-17 00:34:10 UTC
*** Bug 275864 has been marked as a duplicate of this bug. ***
Comment 6 Nikita Krupenko 2011-08-21 20:39:31 UTC
Created attachment 63029 [details]
KDevelop crash stacktrace

Has the same problem with KDevelop 4.2.2. When I try to get new snippets, I see error with following text:

> Configuration file not found: "ktexteditor_codesnippets_core.knsrc"

After I press "Close", application crashes. Stacktrace in the attachment.
Comment 7 Mark 2012-06-26 21:30:47 UTC
Could you verify that this crash still occurs? If i look in the cache code from knewstuff i'm seeing different function calls then you have in the stacktrace :)

(In reply to comment #6)
> Created attachment 63029 [details]
> KDevelop crash stacktrace
> 
> Has the same problem with KDevelop 4.2.2. When I try to get new snippets, I
> see error with following text:
> 
> > Configuration file not found: "ktexteditor_codesnippets_core.knsrc"
> 
> After I press "Close", application crashes. Stacktrace in the attachment.
Thank you for that, but please do have debugging symbols installed. The KDevelop stacktrace isn't very useful since it misses the symbols in the places where the actual bug is likely to be... Just a "minor" inconvenience ;)
Comment 8 Andrew Crouthamel 2018-10-29 22:30:35 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 9 Bug Janitor Service 2018-11-13 14:32:07 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 10 Bug Janitor Service 2018-11-29 04:50:31 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!