Bug 287988 - Muon crashes on initialization errors
Summary: Muon crashes on initialization errors
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: Updates (interactive) (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Jonathan Thomas
URL:
Keywords:
: 286130 289981 291048 294908 295426 297885 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-01 14:35 UTC by mgolden
Modified: 2016-03-02 13:30 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.3.0


Attachments
New crash information added by DrKonqi (7.34 KB, text/plain)
2012-03-12 20:05 UTC, Loïc Grobol
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mgolden 2011-12-01 14:35:58 UTC
Application: muon-updater (1.2.65 "Daring Dalek")
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-13-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:
I had just had an error about broken packages, and was exiting.  Then this crash occurred

-- Backtrace:
Application: Muon Update Manager (muon-updater), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fd4da46f780 (LWP 2701))]

Thread 3 (Thread 0x7fd4c7157700 (LWP 2702)):
#0  0x00007fd4d263ffb7 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fd4d2640dfd in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fd4d2641429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fd4d8844f3e in QEventDispatcherGlib::processEvents (this=0x15b3f80, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fd4d8818cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fd4d8818ef7 in QEventLoop::exec (this=0x7fd4c7156dd0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fd4d873027f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007fd4d87fbcbf in QInotifyFileSystemWatcherEngine::run (this=0x158f640) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fd4d8732d05 in QThreadPrivate::start (arg=0x158f640) at thread/qthread_unix.cpp:331
#9  0x00007fd4d310eefc in start_thread (arg=0x7fd4c7157700) at pthread_create.c:304
#10 0x00007fd4d740989d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd4bffff700 (LWP 2703)):
#0  0x00007fd4d73fd773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fd4d2640f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fd4d2641429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fd4d8844f3e in QEventDispatcherGlib::processEvents (this=0x152f840, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fd4d8818cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fd4d8818ef7 in QEventLoop::exec (this=0x7fd4bfffedd0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fd4d873027f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007fd4d87fbcbf in QInotifyFileSystemWatcherEngine::run (this=0x16bdb50) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fd4d8732d05 in QThreadPrivate::start (arg=0x16bdb50) at thread/qthread_unix.cpp:331
#9  0x00007fd4d310eefc in start_thread (arg=0x7fd4bffff700) at pthread_create.c:304
#10 0x00007fd4d740989d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd4da46f780 (LWP 2701)):
[KCrash Handler]
#6  CurrentVer (this=<optimized out>) at /usr/include/apt-pkg/cacheiterators.h:420
#7  QApt::Package::state (this=0x170fdc0) at /build/buildd/qapt-1.2.65/src/package.cpp:720
#8  0x00007fd4d9693354 in QApt::Backend::upgradeablePackages (this=<optimized out>) at /build/buildd/qapt-1.2.65/src/backend.cpp:488
#9  0x00000000004132b5 in UpdaterWidget::populateUpdateModel (this=0x1545510) at /build/buildd/muon-1.2.65/updater/UpdaterWidget.cpp:104
#10 0x0000000000410464 in MainWindow::reload (this=0x1573790) at /build/buildd/muon-1.2.65/updater/MainWindow.cpp:217
#11 0x0000000000410900 in MainWindow::workerEvent (this=0x1573790, event=QApt::CommitChangesFinished) at /build/buildd/muon-1.2.65/updater/MainWindow.cpp:161
#12 0x000000000040e728 in MainWindow::qt_metacall (this=0x1573790, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffafca04c0) at /build/buildd/muon-1.2.65/obj-x86_64-linux-gnu/updater/moc_MainWindow.cpp:99
#13 0x00007fd4d882ceba in QMetaObject::activate (sender=0x1573d00, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffafca04c0) at kernel/qobject.cpp:3278
#14 0x00007fd4d96b56a1 in QApt::Backend::workerEvent (this=<optimized out>, _t1=QApt::CommitChangesFinished) at /build/buildd/qapt-1.2.65/obj-x86_64-linux-gnu/src/moc_backend.cxx:251
#15 0x00007fd4d96b58fc in QApt::Backend::qt_metacall (this=0x1573d00, _c=QMetaObject::InvokeMetaMethod, _id=42, _a=0x7fffafca05d0) at /build/buildd/qapt-1.2.65/obj-x86_64-linux-gnu/src/moc_backend.cxx:211
#16 0x00007fd4d882ceba in QMetaObject::activate (sender=0x15b0910, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffafca05d0) at kernel/qobject.cpp:3278
#17 0x00007fd4d96b6271 in OrgKubuntuQaptworkerInterface::workerEvent (this=<optimized out>, _t1=6) at /build/buildd/qapt-1.2.65/obj-x86_64-linux-gnu/src/workerdbus.moc:228
#18 0x00007fd4d96b6675 in OrgKubuntuQaptworkerInterface::qt_metacall (this=0x15b0910, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x7fffafca0ab0) at /build/buildd/qapt-1.2.65/obj-x86_64-linux-gnu/src/workerdbus.moc:131
#19 0x00007fd4d68c90e9 in QDBusConnectionPrivate::deliverCall (this=0x15ace50, object=0x15b0910, msg=..., metaTypes=..., slotIdx=13) at qdbusintegrator.cpp:942
#20 0x00007fd4d68d238f in QDBusCallDeliveryEvent::placeMetaCall (this=<optimized out>, object=<optimized out>) at qdbusintegrator_p.h:103
#21 0x00007fd4d8830a5e in QObject::event (this=0x15b0910, e=<optimized out>) at kernel/qobject.cpp:1217
#22 0x00007fd4d7bca424 in notify_helper (e=0x2db36a0, receiver=0x15b0910, this=0x1405a00) at kernel/qapplication.cpp:4486
#23 QApplicationPrivate::notify_helper (this=0x1405a00, receiver=0x15b0910, e=0x2db36a0) at kernel/qapplication.cpp:4458
#24 0x00007fd4d7bcf291 in QApplication::notify (this=0x7fffafca1340, receiver=0x15b0910, e=0x2db36a0) at kernel/qapplication.cpp:4365
#25 0x00007fd4d924f126 in KApplication::notify (this=0x7fffafca1340, receiver=0x15b0910, event=0x2db36a0) at ../../kdeui/kernel/kapplication.cpp:311
#26 0x00007fd4d8819afc in QCoreApplication::notifyInternal (this=0x7fffafca1340, receiver=0x15b0910, event=0x2db36a0) at kernel/qcoreapplication.cpp:787
#27 0x00007fd4d881d51f in sendEvent (event=0x2db36a0, receiver=0x15b0910) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#28 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x13deac0) at kernel/qcoreapplication.cpp:1428
#29 0x00007fd4d8844a73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#30 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#31 0x00007fd4d2640a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007fd4d2641258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007fd4d2641429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007fd4d8844ed6 in QEventDispatcherGlib::processEvents (this=0x13e05d0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#35 0x00007fd4d7c7207e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007fd4d8818cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007fd4d8818ef7 in QEventLoop::exec (this=0x7fffafca12d0, flags=...) at kernel/qeventloop.cpp:201
#38 0x00007fd4d881d789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#39 0x000000000040e307 in main (argc=1, argv=0x7fffafca15b8) at /build/buildd/muon-1.2.65/updater/main.cpp:61

Reported using DrKonqi
Comment 1 Blagovest Zlatev 2011-12-01 16:20:10 UTC
I couldn't reproduce this bug and I didn't find any duplicates.
Comment 2 mgolden 2011-12-01 16:27:43 UTC
I am not exactly sure what happened right before the crash.  I was 
applying today's update, and it said there was an error about broken 
packages.  I was quitting so I could use the command-line apt-get to 
figure out what was going on, and then I got this crash.

Oddly, apt-get does not report any problems.
Comment 3 mgolden 2011-12-01 16:29:32 UTC
One further point: one reason you may see no duplicates is that I am 
running the beta of the latest version.
Comment 4 Christoph Feck 2011-12-28 13:00:37 UTC
*** Bug 289981 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2012-01-09 14:43:14 UTC
*** Bug 291048 has been marked as a duplicate of this bug. ***
Comment 6 Jonathan Thomas 2012-02-12 03:35:23 UTC
Git commit 0a6b3a90c1c877af9469dcd7b8f36dc74bf99013 by Jonathan Thomas.
Committed on 12/02/2012 at 04:33.
Pushed by jmthomas into branch 'master'.

Exit synchronously in the case of a backend initialization error.

The way that the asynchronous error reporting currently works will not close the
application "quick" enough when QApplication::exit is called. In the future, the smart
thing to do would to make QApt::Backend::reloadCache return a bool, but that would
break ABI and will have to wait for QApt2.
FIXED-IN:1.3.0

M  +1    -1    libmuon/MuonMainWindow.cpp

http://commits.kde.org/muon/0a6b3a90c1c877af9469dcd7b8f36dc74bf99013
Comment 7 Jonathan Thomas 2012-02-21 16:56:14 UTC
*** Bug 286130 has been marked as a duplicate of this bug. ***
Comment 8 Jonathan Thomas 2012-02-28 15:14:24 UTC
*** Bug 294908 has been marked as a duplicate of this bug. ***
Comment 9 Jonathan Thomas 2012-03-06 17:21:02 UTC
*** Bug 295426 has been marked as a duplicate of this bug. ***
Comment 10 Loïc Grobol 2012-03-12 20:05:03 UTC
Created attachment 69553 [details]
New crash information added by DrKonqi

muon-updater (1.2.95 "Daring Dalek") on KDE Platform 4.8.1 (4.8.1) using Qt 4.8.0

- What I was doing when the application crashed:
Updating some non-critical (Dia diagram editor) packages.

-- Backtrace (Reduced):
#6  CurrentVer (this=<optimized out>) at /usr/include/apt-pkg/cacheiterators.h:420
#7  QApt::Package::state (this=0xe5cc90) at /build/buildd/qapt-1.2.95/src/package.cpp:725
#8  0x00007f0f9fa81384 in QApt::Backend::upgradeablePackages (this=<optimized out>) at /build/buildd/qapt-1.2.95/src/backend.cpp:488
#9  0x0000000000415905 in UpdaterWidget::populateUpdateModel (this=0xe99db0) at /build/buildd/muon-1.2.95/updater/UpdaterWidget.cpp:135
#10 0x00000000004116e4 in MainWindow::reload (this=0xe099c0) at /build/buildd/muon-1.2.95/updater/MainWindow.cpp:236
Comment 11 Jonathan Thomas 2012-04-14 01:45:39 UTC
*** Bug 297885 has been marked as a duplicate of this bug. ***