Bug 316855

Summary: Application update
Product: [Applications] Discover Reporter: Tiago Silva <tiagomrdsilva>
Component: UpdatesAssignee: Jonathan Thomas <echidnaman>
Status: RESOLVED FIXED    
Severity: crash CC: klepik.u, maks201016
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 2.0.0
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description Tiago Silva 2013-03-16 18:05:41 UTC
Application: muon-updater (1.9.97)
KDE Platform Version: 4.10.1
Qt Version: 4.8.4
Operating System: Linux 3.8.0-12-generic x86_64
Distribution: Ubuntu Raring Ringtail (development branch)

-- Information about the crash:
Making an update in the Muon Application Manager. The system report a malfuntion.

-- Backtrace:
Application: Gestor de Actualizações Muon (muon-updater), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f6e54ddd7c0 (LWP 1994))]

Thread 2 (Thread 0x7f6e4065f700 (LWP 1995)):
#0  0x00007f6e51b5b3cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f6e4daaa15c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f6e4daaa284 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6e522e0026 in QEventDispatcherGlib::processEvents (this=0x7f6e380008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f6e522b037f in QEventLoop::processEvents (this=this@entry=0x7f6e4065ed90, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f6e522b0608 in QEventLoop::exec (this=0x7f6e4065ed90, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f6e521b2410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#7  0x00007f6e52291ecf in QInotifyFileSystemWatcherEngine::run (this=0x1ee0eb0) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007f6e521b4bec in QThreadPrivate::start (arg=0x1ee0eb0) at thread/qthread_unix.cpp:338
#9  0x00007f6e4df7cf8e in start_thread (arg=0x7f6e4065f700) at pthread_create.c:311
#10 0x00007f6e51b67e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f6e54ddd7c0 (LWP 1994)):
[KCrash Handler]
#6  QApt::Package::state (this=0x0) at /build/buildd/qapt-1.9.97/src/package.cpp:716
#7  0x00007f6e410f6321 in Application::state (this=<optimized out>) at /build/buildd/muon-1.9.97/libmuon/backends/ApplicationBackend/Application.cpp:474
#8  0x00007f6e549e290d in AbstractResource::canUpgrade (this=<optimized out>) at /build/buildd/muon-1.9.97/libmuon/resources/AbstractResource.cpp:44
#9  0x00007f6e410effc0 in ApplicationBackend::updatesCount (this=<optimized out>) at /build/buildd/muon-1.9.97/libmuon/backends/ApplicationBackend/ApplicationBackend.cpp:503
#10 0x00000000004149a1 in UpdaterWidget::populateUpdateModel (this=0x1eec900) at /build/buildd/muon-1.9.97/updater/UpdaterWidget.cpp:157
#11 0x000000000040ec25 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /build/buildd/muon-1.9.97/obj-x86_64-linux-gnu/updater/moc_UpdaterWidget.cpp:73
#12 UpdaterWidget::qt_static_metacall (_o=0x1eec900, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /build/buildd/muon-1.9.97/obj-x86_64-linux-gnu/updater/moc_UpdaterWidget.cpp:64
#13 0x00007f6e522c60df in QMetaObject::activate (sender=0x1db8200, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#14 0x00007f6e410efa67 in ApplicationBackend::reload (this=0x1db8200) at /build/buildd/muon-1.9.97/libmuon/backends/ApplicationBackend/ApplicationBackend.cpp:179
#15 0x00007f6e410ee335 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /build/buildd/muon-1.9.97/obj-x86_64-linux-gnu/libmuon/backends/ApplicationBackend/moc_ApplicationBackend.cpp:89
#16 ApplicationBackend::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /build/buildd/muon-1.9.97/obj-x86_64-linux-gnu/libmuon/backends/ApplicationBackend/moc_ApplicationBackend.cpp:79
#17 0x00007f6e522cb5ae in QObject::event (this=0x1db8200, e=<optimized out>) at kernel/qobject.cpp:1194
#18 0x00007f6e52c9a8ec in QApplicationPrivate::notify_helper (this=this@entry=0x1cbe7f0, receiver=receiver@entry=0x1db8200, e=e@entry=0x248e430) at kernel/qapplication.cpp:4567
#19 0x00007f6e52c9d25b in QApplication::notify (this=0x7fff1bd23100, receiver=0x1db8200, e=0x248e430) at kernel/qapplication.cpp:4428
#20 0x00007f6e539a7af6 in KApplication::notify (this=0x7fff1bd23100, receiver=0x1db8200, event=0x248e430) at ../../kdeui/kernel/kapplication.cpp:311
#21 0x00007f6e522b162e in QCoreApplication::notifyInternal (this=0x7fff1bd23100, receiver=receiver@entry=0x1db8200, event=event@entry=0x248e430) at kernel/qcoreapplication.cpp:946
#22 0x00007f6e522b5161 in sendEvent (event=0x248e430, receiver=0x1db8200) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1c86780) at kernel/qcoreapplication.cpp:1570
#24 0x00007f6e522dfe73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#25 postEventSourceDispatch (s=0x1cb37b0) at kernel/qeventdispatcher_glib.cpp:279
#26 0x00007f6e4daa9e85 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f6e4daaa1c8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f6e4daaa284 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f6e522e0006 in QEventDispatcherGlib::processEvents (this=0x1c880e0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#30 0x00007f6e52d401ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007f6e522b037f in QEventLoop::processEvents (this=this@entry=0x7fff1bd22fe0, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007f6e522b0608 in QEventLoop::exec (this=0x7fff1bd22fe0, flags=...) at kernel/qeventloop.cpp:204
#33 0x00007f6e522b5ce6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#34 0x000000000040e527 in main (argc=5, argv=0x7fff1bd23238) at /build/buildd/muon-1.9.97/updater/main.cpp:56

Possible duplicates by query: bug 316805, bug 316711, bug 316131, bug 315222, bug 314823.

Reported using DrKonqi
Comment 1 ura 2013-03-16 22:52:01 UTC
Created attachment 78122 [details]
New crash information added by DrKonqi

muon-updater (1.9.97) on KDE Platform 4.10.1 using Qt 4.8.4

- Custom settings of the application:
 virtual box 4.2.10

start, search of updatings and at completion of search fell

-- Backtrace (Reduced):
#6  QApt::Package::state (this=0x0) at /build/buildd/qapt-1.9.97/src/package.cpp:716
#7  0x00007fea96586321 in Application::state (this=<optimized out>) at /build/buildd/muon-1.9.97/libmuon/backends/ApplicationBackend/Application.cpp:474
#8  0x00007feaaa46c90d in AbstractResource::canUpgrade (this=<optimized out>) at /build/buildd/muon-1.9.97/libmuon/resources/AbstractResource.cpp:44
#9  0x00007fea9657ffc0 in ApplicationBackend::updatesCount (this=<optimized out>) at /build/buildd/muon-1.9.97/libmuon/backends/ApplicationBackend/ApplicationBackend.cpp:503
#10 0x00000000004149a1 in UpdaterWidget::populateUpdateModel (this=0xbf9420) at /build/buildd/muon-1.9.97/updater/UpdaterWidget.cpp:157
Comment 2 maks 2013-03-18 11:55:46 UTC
Created attachment 78171 [details]
New crash information added by DrKonqi

muon-updater (1.9.97) on KDE Platform 4.10.1 using Qt 4.8.3

- What I was doing when the application crashed:

the mistake arose after button pressing search of updatings

-- Backtrace (Reduced):
#6  QApt::Package::state (this=0x0) at /build/buildd/qapt-1.9.97/src/package.cpp:716
#7  0x00007f4a5822ed61 in Application::state (this=<optimized out>) at /build/buildd/muon-1.9.97/libmuon/backends/ApplicationBackend/Application.cpp:474
#8  0x00007f4a6c15791d in AbstractResource::canUpgrade (this=<optimized out>) at /build/buildd/muon-1.9.97/libmuon/resources/AbstractResource.cpp:44
#9  0x00007f4a58228ee0 in ApplicationBackend::updatesCount (this=<optimized out>) at /build/buildd/muon-1.9.97/libmuon/backends/ApplicationBackend/ApplicationBackend.cpp:503
#10 0x0000000000414731 in UpdaterWidget::populateUpdateModel (this=0x1355780) at /build/buildd/muon-1.9.97/updater/UpdaterWidget.cpp:157
Comment 3 Jonathan Thomas 2013-03-26 16:47:26 UTC

*** This bug has been marked as a duplicate of bug 316805 ***
Comment 4 Jonathan Thomas 2013-03-26 16:48:24 UTC
Git commit 790eef55d1a909da08b8ead08f6e1cb71b60eb0d by Jonathan Thomas.
Committed on 26/03/2013 at 17:47.
Pushed by jmthomas into branch 'master'.

Add a null pointer check to prevent a crash.
FIXED-IN:2.0.0

M  +2    -0    libmuon/backends/ApplicationBackend/ApplicationBackend.cpp

http://commits.kde.org/muon/790eef55d1a909da08b8ead08f6e1cb71b60eb0d
Comment 5 Jonathan Thomas 2013-03-26 16:48:31 UTC
Git commit 001ede294d9e1fdd9dce83212eb39835bfcc5155 by Jonathan Thomas.
Committed on 26/03/2013 at 17:47.
Pushed by jmthomas into branch '2.0'.

Add a null pointer check to prevent a crash.
FIXED-IN:2.0.0

M  +2    -0    libmuon/backends/ApplicationBackend/ApplicationBackend.cpp

http://commits.kde.org/muon/001ede294d9e1fdd9dce83212eb39835bfcc5155
Comment 6 Jonathan Thomas 2013-03-26 17:00:02 UTC
Git commit 8a329fe2953e0f9da62f09e31dc980f666700fc1 by Jonathan Thomas.
Committed on 26/03/2013 at 17:59.
Pushed by jmthomas into branch '2.0'.

Actually, check the app's package pointer for null, not the app pointer itself...

M  +1    -1    libmuon/backends/ApplicationBackend/ApplicationBackend.cpp

http://commits.kde.org/muon/8a329fe2953e0f9da62f09e31dc980f666700fc1
Comment 7 Jonathan Thomas 2013-03-26 17:00:27 UTC
Git commit 766f2d85917453707a5019a090beadde5d05a531 by Jonathan Thomas.
Committed on 26/03/2013 at 17:59.
Pushed by jmthomas into branch 'master'.

Actually, check the app's package pointer for null, not the app pointer itself...

M  +1    -1    libmuon/backends/ApplicationBackend/ApplicationBackend.cpp

http://commits.kde.org/muon/766f2d85917453707a5019a090beadde5d05a531