Bug 286130 - Muon Package Manager crashes when APT fails to initialize [toInstallCount(), areChangesMarked(), updateStatus()]
Summary: Muon Package Manager crashes when APT fails to initialize [toInstallCount(), ...
Status: RESOLVED DUPLICATE of bug 287988
Alias: None
Product: muon
Classification: Applications
Component: muon (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Jonathan Thomas
URL:
Keywords:
: 278458 286290 287606 289116 289846 291025 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-08 19:55 UTC by Joynson
Modified: 2012-02-21 16:56 UTC (History)
7 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 Joynson 2011-11-08 19:55:59 UTC
Application: muon (1.2.1 "Caustic Carrionite")
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-12-generic i686
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:I was installing a number of programs having to do with the gnome desktop. I had been having trouble and getting messages that another package handler was open even though none was and I had run sudo dpkg --configure -a
in the terminal. I also cannot get Synaptic Package Manager to initiate - to even appear on the screen.

The crash can be reproduced every time.

-- Backtrace:
Application: Muon Package Manager (muon), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7891710 (LWP 3342))]

Thread 3 (Thread 0xb6bffb70 (LWP 3344)):
#0  0x01abfb85 in g_main_context_query (context=0x977c920, max_priority=2147483647, timeout=0xb6bff27c, fds=0x97875c0, n_fds=3) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2831
#1  0x01ac0664 in g_main_context_iterate (context=0x977c920, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3071
#2  0x01ac0f9b in g_main_loop_run (loop=0x977c8f8) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3297
#3  0x01f8acea in gdbus_shared_thread_func (user_data=0x977c908) at /build/buildd/glib2.0-2.30.0/./gio/gdbusprivate.c:276
#4  0x01ae75f4 in g_thread_create_proxy (data=0x977c9b0) at /build/buildd/glib2.0-2.30.0/./glib/gthread.c:1962
#5  0x01d68d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0x07bb80ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 2 (Thread 0xb2ee6b70 (LWP 3354)):
#0  0x00dd7d10 in clock_gettime () from /lib/i386-linux-gnu/librt.so.1
#1  0x00ae37d5 in do_gettime (frac=0xb2ee6020, sec=0xb2ee6018) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x00bb64b6 in QTimerInfoList::updateCurrentTime (this=0x997f2e4) at kernel/qeventdispatcher_unix.cpp:339
#4  0x00bb680a in QTimerInfoList::timerWait (this=0x997f2e4, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x00bb5053 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xb2ee612c) at kernel/qeventdispatcher_glib.cpp:136
#6  0x00bb50ed in timerSourcePrepare (source=0x997f2b0, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0x01abf88c in g_main_context_prepare (context=0x997f9f8, priority=0xb2ee6188) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2762
#8  0x01ac0637 in g_main_context_iterate (context=0x997f9f8, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3069
#9  0x01ac0c2a in g_main_context_iteration (context=0x997f9f8, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#10 0x00bb5b37 in QEventDispatcherGlib::processEvents (this=0x997f338, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0x00b861dd in QEventLoop::processEvents (this=0xb2ee62b0, flags=...) at kernel/qeventloop.cpp:149
#12 0x00b86421 in QEventLoop::exec (this=0xb2ee62b0, flags=...) at kernel/qeventloop.cpp:201
#13 0x00a8990b in QThread::exec (this=0x998a628) at thread/qthread.cpp:498
#14 0x00b66e2d in QInotifyFileSystemWatcherEngine::run (this=0x998a628) at io/qfilesystemwatcher_inotify.cpp:248
#15 0x00a8c7b3 in QThreadPrivate::start (arg=0x998a628) at thread/qthread_unix.cpp:331
#16 0x01d68d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#17 0x07bb80ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb7891710 (LWP 3342)):
[KCrash Handler]
#7  0x009eae41 in QApt::Backend::toInstallCount (this=0x98b72e0) at /build/buildd/qapt-1.2.1/src/backend.cpp:430
#8  0x009eb016 in QApt::Backend::areChangesMarked (this=0x98b72e0) at /build/buildd/qapt-1.2.1/src/backend.cpp:620
#9  0x00f57093 in StatusWidget::updateStatus (this=0x993dd48) at /build/buildd/muon-1.2.1/libmuon/StatusWidget.cpp:85
#10 0x08051484 in MainWindow::reload (this=0x9823e20) at /build/buildd/muon-1.2.1/muon/MainWindow.cpp:443
#11 0x00f4a870 in MuonMainWindow::revertChanges (this=0x9823e20) at /build/buildd/muon-1.2.1/libmuon/MuonMainWindow.cpp:609
#12 0x08051020 in MainWindow::revertChanges (this=0x9823e20) at /build/buildd/muon-1.2.1/muon/MainWindow.cpp:549
#13 0x0805398e in MainWindow::qt_metacall (this=0x9823e20, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xbf98b718) at /build/buildd/muon-1.2.1/obj-i686-linux-gnu/muon/MainWindow.moc:132
#14 0x00b8db7d in metacall (argv=0xbf98b718, idx=97, cl=QMetaObject::InvokeMetaMethod, object=0x9823e20) at kernel/qmetaobject.cpp:237
#15 QMetaObject::metacall (object=0x9823e20, cl=QMetaObject::InvokeMetaMethod, idx=97, argv=0xbf98b718) at kernel/qmetaobject.cpp:232
#16 0x00b9ca6a in QMetaObject::activate (sender=0x9885d80, m=0x1a20458, local_signal_index=1, argv=0xbf98b718) at kernel/qobject.cpp:3278
#17 0x010d083d in QAction::triggered (this=0x9885d80, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#18 0x010d0adb in QAction::activate (this=0x9885d80, event=QAction::Trigger) at kernel/qaction.cpp:1257
#19 0x015c4170 in trigger (this=<optimized out>) at ../../include/QtGui/../../src/gui/kernel/qaction.h:218
#20 QToolButton::nextCheckState (this=0x9940b68) at widgets/qtoolbutton.cpp:1147
#21 0x014ecbb7 in QAbstractButtonPrivate::click (this=0x9940510) at widgets/qabstractbutton.cpp:528
#22 0x014eceb6 in QAbstractButton::mouseReleaseEvent (this=0x9940b68, e=0xbf98bcfc) at widgets/qabstractbutton.cpp:1121
#23 0x015c420d in QToolButton::mouseReleaseEvent (this=0x9940b68, e=0xbf98bcfc) at widgets/qtoolbutton.cpp:721
#24 0x01131f98 in QWidget::event (this=0x9940b68, event=0xbf98bcfc) at kernel/qwidget.cpp:8295
#25 0x014ec159 in QAbstractButton::event (this=0x9940b68, e=0xbf98bcfc) at widgets/qabstractbutton.cpp:1080
#26 0x015c594c in QToolButton::event (this=0x9940b68, event=0xbf98bcfc) at widgets/qtoolbutton.cpp:1163
#27 0x010d7d54 in notify_helper (e=0xbf98bcfc, receiver=0x9940b68, this=0x96ba610) at kernel/qapplication.cpp:4486
#28 QApplicationPrivate::notify_helper (this=0x96ba610, receiver=0x9940b68, e=0xbf98bcfc) at kernel/qapplication.cpp:4458
#29 0x010dddbb in QApplication::notify (this=0x96ba610, receiver=0x9940b68, e=0xbf98bcfc) at kernel/qapplication.cpp:4047
#30 0x002f7681 in KApplication::notify (this=0xbf98c52c, receiver=0x9940b68, event=0xbf98bcfc) at ../../kdeui/kernel/kapplication.cpp:311
#31 0x00b8719e in QCoreApplication::notifyInternal (this=0xbf98c52c, receiver=0x9940b68, event=0xbf98bcfc) at kernel/qcoreapplication.cpp:787
#32 0x010d8d15 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#33 QApplicationPrivate::sendMouseEvent (receiver=0x9940b68, event=0xbf98bcfc, alienWidget=0x9940b68, nativeWidget=0x99400a0, buttonDown=0x1a42eb4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#34 0x011652c4 in QETWidget::translateMouseEvent (this=0x99400a0, event=0xbf98c17c) at kernel/qapplication_x11.cpp:4568
#35 0x01163e4d in QApplication::x11ProcessEvent (this=0xbf98c52c, event=0xbf98c17c) at kernel/qapplication_x11.cpp:3690
#36 0x0119024c in x11EventSourceDispatch (s=0x96be140, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#37 0x01ac025f in g_main_dispatch (context=0x96bd270) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2441
#38 g_main_context_dispatch (context=0x96bd270) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3011
#39 0x01ac0990 in g_main_context_iterate (context=0x96bd270, block=28111648, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3089
#40 0x01ac0c2a in g_main_context_iteration (context=0x96bd270, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#41 0x00bb5ada in QEventDispatcherGlib::processEvents (this=0x969b3a0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#42 0x0118fe3a in QGuiEventDispatcherGlib::processEvents (this=0x969b3a0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00b861dd in QEventLoop::processEvents (this=0xbf98c484, flags=...) at kernel/qeventloop.cpp:149
#44 0x00b86421 in QEventLoop::exec (this=0xbf98c484, flags=...) at kernel/qeventloop.cpp:201
#45 0x00b8b19d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#46 0x010d58f4 in QApplication::exec () at kernel/qapplication.cpp:3760
#47 0x080508be in main (argc=) at /build/buildd/muon-1.2.1/muon/main.cpp:56

Reported using DrKonqi
Comment 1 Christoph Feck 2011-11-08 21:55:27 UTC
Related to bug 278458.
Comment 2 Jonathan Thomas 2011-11-08 23:51:30 UTC
*** Bug 278458 has been marked as a duplicate of this bug. ***
Comment 3 Jonathan Thomas 2011-11-09 00:00:46 UTC
So if I understand correctly, when you tried to install some packages Muon was saying that another package manager had the lock (This seems to be a bug where Muon misdiagnoses why the package cache couldn't be opened.), and when you hit the "Unmark All Packages" button, it crashed?

My guess is that something is wrong with APT, preventing Muon or Synaptic from acquiring a lock on the package system. (Synaptic acquires the lock when it starts up, explaining why it won't even start. Muon only tries to get a lock when actually installing stuff.)

Obviously, Muon shouldn't crash when something goes wrong with APT. I'll have to see what I can do to improve checking if APT initialized correctly.
Comment 4 Joynson 2011-11-09 15:05:15 UTC
I am running Ubuntu 11.10 on a Systemax desktop with dual Celeron 3400 processors and 2 gigs of ram.
I can't get Synaptic to appear.
I ran "sudo dpkg --configure -a" which usually clears issues with package managers, but Synaptic still did not appear.
However, this did enable me to begin to install gnome desktop packages, including gnome-common, which I did not have with Kubuntu. But as soon as the installation began, Muon crashed.
I wanted to run Synaptic, because I am very familiar with it. I have actually reinstalled 11.10 twice due to unrelated issues with alsa and pulse, and found that Muon sometimes hung in mid-installation, so I wanted to use Synaptic, which did not have this issue for me.
Not having Synaptic, I used Muon, but now am stuck with having no manager for particular packages that I know of. I am not yet real command line savvy.
Feel free to communicate with me anytime here or at oakenhelix@gmail.com.
I thank you much for volunteering to look into this!
Comment 5 Christoph Feck 2011-11-10 20:40:35 UTC
*** Bug 286290 has been marked as a duplicate of this bug. ***
Comment 6 Joynson 2011-11-10 22:40:07 UTC
Thank you Chris, for keeping me informed.
Happy Veteran's Day!
Lance, USAF vet

On Thu, Nov 10, 2011 at 3:40 PM, Christoph Feck <christoph@maxiom.de> wrote:

> https://bugs.kde.org/show_bug.cgi?id=286130
>
>
> Christoph Feck <christoph@maxiom.de> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                 CC|                            |servicios.alexis@ymail.com
>
>
>
>
> --- Comment #5 from Christoph Feck <christoph maxiom de>  2011-11-10
> 20:40:35 ---
> *** Bug 286290 has been marked as a duplicate of this bug. ***
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
> You reported the bug.
>
Comment 7 Jekyll Wu 2011-11-27 12:20:35 UTC
*** Bug 287606 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Feck 2011-12-16 18:05:55 UTC
*** Bug 289116 has been marked as a duplicate of this bug. ***
Comment 9 Christoph Feck 2011-12-26 12:21:18 UTC
*** Bug 289846 has been marked as a duplicate of this bug. ***
Comment 10 Jekyll Wu 2012-01-09 06:16:14 UTC
*** Bug 291025 has been marked as a duplicate of this bug. ***
Comment 11 pmartin 2012-01-26 05:41:24 UTC
can't finish the update, also can't install firefox or any other app.
Comment 12 Jonathan Thomas 2012-02-21 16:56:14 UTC

*** This bug has been marked as a duplicate of bug 287988 ***