[Bug 182783] New: Crash on summary if knotes has a duplicate resource (mJournals.value( uid ) == journal)

Christophe Giboudeaux cgiboudeaux at gmail.com
Sun Feb 1 19:52:28 GMT 2009


http://bugs.kde.org/show_bug.cgi?id=182783

           Summary: Crash on summary if knotes has a duplicate resource
                    (mJournals.value( uid ) == journal)
           Product: kontact
           Version: 1.4.90
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: cgiboudeaux at gmail.com


Version:           1.4.90 (using Devel)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.7-9-pae
Installed from:    Compiled sources

svn rev. 919845

Testcase :

1/ Add two knotes resources that point on the same file
2/ Launch kontact, Create a note.
3/ Click on summary, Kontact will crash : 


Application: Kontact (kontact), signal SIGABRT
[?1034h[Thread debugging using libthread_db enabled]
[Current thread is 1 (Thread 0xb477c9f0 (LWP 15172))]

Thread 3 (Thread 0xafdcdb90 (LWP 15213)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb589a3e1 in select () from /lib/libc.so.6
#2  0xb669f827 in QProcessManager::run (this=0x8068408) at
io/qprocess_unix.cpp:300
#3  0xb65cd4de in QThreadPrivate::start (arg=0x8068408) at
thread/qthread_unix.cpp:184
#4  0xb656c1b5 in start_thread () from /lib/libpthread.so.0
#5  0xb58a138e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xaf5ccb90 (LWP 15236)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb656ff62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb65ce60c in QWaitCondition::wait (this=0x8afb208, mutex=0x8afb204,
time=30000) at thread/qwaitcondition_unix.cpp:80
#3  0xb65c3c36 in QThreadPoolThread::run (this=0x8afb2a8) at
concurrent/qthreadpool.cpp:135
#4  0xb65cd4de in QThreadPrivate::start (arg=0x8afb2a8) at
thread/qthread_unix.cpp:184
#5  0xb656c1b5 in start_thread () from /lib/libpthread.so.0
#6  0xb58a138e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb477c9f0 (LWP 15172)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb57fa990 in raise () from /lib/libc.so.6
#8  0xb57fc2c8 in abort () from /lib/libc.so.6
#9  0xb65c5355 in qt_message_output (msgType=QtFatalMsg, buf=0x8c5ae10 "ASSERT:
\"mJournals.value( uid ) == journal\" in file
/home/krop/kde/src/KDE/kdepimlibs/kcal/calendarlocal.cpp, line 580")
    at global/qglobal.cpp:2001
#10 0xb65c5441 in qFatal (msg=0xb6712d18 "ASSERT: \"%s\" in file %s, line %d")
at global/qglobal.cpp:2196
#11 0xb65c5535 in qt_assert (assertion=0xb7365068 "mJournals.value( uid ) ==
journal", file=0xb7364ff8
"/home/krop/kde/src/KDE/kdepimlibs/kcal/calendarlocal.cpp", line=580) at
global/qglobal.cpp:1772
#12 0xb7300524 in KCal::CalendarLocal::Private::insertJournal (this=0x8c8e908,
journal=0x8ca7958) at
/home/krop/kde/src/KDE/kdepimlibs/kcal/calendarlocal.cpp:580
#13 0xb730056f in KCal::CalendarLocal::addJournal (this=0x8c8faf0,
journal=0x8ca7958) at
/home/krop/kde/src/KDE/kdepimlibs/kcal/calendarlocal.cpp:558
#14 0xb166dc45 in KNotesSummaryWidget::addNote (this=0x8c6b820, j=0x8ca7958) at
/home/krop/kde/src/KDE/kdepim/kontact/plugins/knotes/summarywidget.cpp:161
#15 0xb166dd09 in KNotesSummaryWidget::qt_metacall (this=0x8c6b820,
_c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfdd001c)
    at
/home/krop/kde/build/KDE/kdepim/kontact/plugins/knotes/summarywidget.moc:75
#16 0xb66d7fa8 in QMetaObject::activate (sender=0x8c3e990, from_signal_index=4,
to_signal_index=4, argv=0xbfdd001c) at kernel/qobject.cpp:3064
#17 0xb66d9722 in QMetaObject::activate (sender=0x8c3e990, m=0xafe7a980,
local_signal_index=0, argv=0xbfdd001c) at kernel/qobject.cpp:3136
#18 0xafe6e570 in KNotesResourceManager::sigRegisteredNote (this=0x8c3e990,
_t1=0x8ca7958) at /home/krop/kde/build/KDE/kdepim/knotes/resourcemanager.moc:84
#19 0xafe6eb5c in KNotesResourceManager::registerNote (this=0x8c3e990,
resource=0x8c62338, journal=0x8ca7958) at
/home/krop/kde/src/KDE/kdepim/knotes/resourcemanager.cpp:101
#20 0xafe71503 in ResourceLocal::load (this=0x8c62338) at
/home/krop/kde/src/KDE/kdepim/knotes/resourcelocal.cpp:87
#21 0xb165b262 in KNotesResourceManager::load (this=0x8c3e990) at
/home/krop/kde/src/KDE/kdepim/knotes/resourcemanager.cpp:69
#22 0xb166e002 in KNotesSummaryWidget (this=0x8c6b820, plugin=0x8304060,
parent=0x8a924d0) at
/home/krop/kde/src/KDE/kdepim/kontact/plugins/knotes/summarywidget.cpp:72
#23 0xb16661b7 in KNotesPlugin::createSummaryWidget (this=0x8304060,
parentWidget=0x8a924d0) at
/home/krop/kde/src/KDE/kdepim/kontact/plugins/knotes/knotes_plugin.cpp:87
#24 0xb16124e5 in SummaryViewPart::updateWidgets (this=0x8afe4e8) at
/home/krop/kde/src/KDE/kdepim/kontact/plugins/summary/summaryview_part.cpp:164
#25 0xb1613407 in SummaryViewPart::initGUI (this=0x8afe4e8, core=0x818ade0) at
/home/krop/kde/src/KDE/kdepim/kontact/plugins/summary/summaryview_part.cpp:485
#26 0xb16137e8 in SummaryViewPart (this=0x8afe4e8, core=0x818ade0,
aboutData=0x8bc3500, parent=0x829cc48) at
/home/krop/kde/src/KDE/kdepim/kontact/plugins/summary/summaryview_part.cpp:74
#27 0xb160e2c8 in SummaryView::createPart (this=0x829cc48) at
/home/krop/kde/src/KDE/kdepim/kontact/plugins/summary/summaryview_plugin.cpp:114
#28 0xb783f004 in Kontact::Plugin::part (this=0x829cc48) at
/home/krop/kde/src/KDE/kdepim/kontactinterfaces/plugin.cpp:187
#29 0xb785a267 in Kontact::MainWindow::selectPlugin (this=0x818ade0,
plugin=0x829cc48) at
/home/krop/kde/src/KDE/kdepim/kontact/src/mainwindow.cpp:758
#30 0xb785f531 in Kontact::MainWindow::qt_metacall (this=0x818ade0,
_c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfdd062c) at
/home/krop/kde/build/KDE/kdepim/kontact/src/mainwindow.moc:107
#31 0xb66d7fa8 in QMetaObject::activate (sender=0x816fb00,
from_signal_index=27, to_signal_index=27, argv=0xbfdd062c) at
kernel/qobject.cpp:3064
#32 0xb66d9722 in QMetaObject::activate (sender=0x816fb00, m=0xb7873544,
local_signal_index=0, argv=0xbfdd062c) at kernel/qobject.cpp:3136
#33 0xb7865b40 in Kontact::SidePaneBase::pluginSelected (this=0x816fb00,
_t1=0x829cc48) at
/home/krop/kde/build/KDE/kdepim/kontact/src/sidepanebase.moc:84
#34 0xb7865bbc in Kontact::SidePaneBase::qt_metacall (this=0x816fb00,
_c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfdd074c) at
/home/krop/kde/build/KDE/kdepim/kontact/src/sidepanebase.moc:71
#35 0xb7865e5a in Kontact::IconSidePane::qt_metacall (this=0x816fb00,
_c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbfdd074c) at
/home/krop/kde/build/KDE/kdepim/kontact/src/iconsidepane.moc:133
#36 0xb66d7fa8 in QMetaObject::activate (sender=0x814ca20,
from_signal_index=70, to_signal_index=70, argv=0xbfdd074c) at
kernel/qobject.cpp:3064
#37 0xb66d9722 in QMetaObject::activate (sender=0x814ca20, m=0xb7873670,
local_signal_index=0, argv=0xbfdd074c) at kernel/qobject.cpp:3136
#38 0xb7865f4a in Kontact::Navigator::pluginActivated (this=0x814ca20,
_t1=0x829cc48) at
/home/krop/kde/build/KDE/kdepim/kontact/src/iconsidepane.moc:90
#39 0xb7866028 in Kontact::Navigator::slotCurrentChanged (this=0x814ca20,
current=@0x8b10630) at
/home/krop/kde/src/KDE/kdepim/kontact/src/iconsidepane.cpp:436
#40 0xb7866566 in Kontact::Navigator::qt_metacall (this=0x814ca20,
_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfdd0888) at
/home/krop/kde/build/KDE/kdepim/kontact/src/iconsidepane.moc:76
#41 0xb66d7fa8 in QMetaObject::activate (sender=0x8155578, from_signal_index=5,
to_signal_index=5, argv=0xbfdd0888) at kernel/qobject.cpp:3064
#42 0xb66d9722 in QMetaObject::activate (sender=0x8155578, m=0xb63f7770,
local_signal_index=1, argv=0xbfdd0888) at kernel/qobject.cpp:3136
#43 0xb6124c69 in QItemSelectionModel::currentChanged (this=0x8155578,
_t1=@0x8b10630, _t2=@0x8a557d0) at
.moc/release-shared/moc_qitemselectionmodel.cpp:153
#44 0xb6124e0d in QItemSelectionModel::setCurrentIndex (this=0x8155578,
index=@0x8b10630, command={i = -1076033072}) at
itemviews/qitemselectionmodel.cpp:1118
#45 0xb60d6aa6 in QAbstractItemView::mousePressEvent (this=0x814ca20,
event=0xbfdd1188) at itemviews/qabstractitemview.cpp:1503
#46 0xb5bce7b6 in QWidget::event (this=0x814ca20, event=0xbfdd1188) at
kernel/qwidget.cpp:7490
#47 0xb5f891c3 in QFrame::event (this=0x814ca20, e=0xbfdd1188) at
widgets/qframe.cpp:554
#48 0xb602920f in QAbstractScrollArea::viewportEvent (this=0x814ca20, e=0x6) at
widgets/qabstractscrollarea.cpp:957
#49 0xb60dae07 in QAbstractItemView::viewportEvent (this=0x814ca20,
event=0xbfdd1188) at itemviews/qabstractitemview.cpp:1461
#50 0xb602b815 in QAbstractScrollAreaFilter::eventFilter (this=0x8184d08,
o=0x80655a0, e=0xbfdd1188) at widgets/qabstractscrollarea_p.h:95
#51 0xb66c0fca in QCoreApplicationPrivate::sendThroughObjectEventFilters
(this=0x8085640, receiver=0x80655a0, event=0xbfdd1188) at
kernel/qcoreapplication.cpp:710
#52 0xb5b77aaa in QApplicationPrivate::notify_helper (this=0x8085640,
receiver=0x80655a0, e=0xbfdd1188) at kernel/qapplication.cpp:4043
#53 0xb5b80701 in QApplication::notify (this=0xbfdd1944, receiver=0x80655a0,
e=0xbfdd1188) at kernel/qapplication.cpp:3749
#54 0xb6c913fd in KApplication::notify(QObject*, QEvent*) () from
/usr/share/qt4/lib/libkdeui.so.5
#55 0xb66c1dbb in QCoreApplication::notifyInternal (this=0xbfdd1944,
receiver=0x80655a0, event=0xbfdd1188) at kernel/qcoreapplication.cpp:594
#56 0xb5b7f75e in QApplicationPrivate::sendMouseEvent (receiver=0x80655a0,
event=0xbfdd1188, alienWidget=0x80655a0, nativeWidget=0x818ade0,
buttonDown=0xb6403a00, lastMouseReceiver=@0xb6403a04)
    at ../../src/corelib/kernel/qcoreapplication.h:211
#57 0xb5bef3c6 in QETWidget::translateMouseEvent (this=0x818ade0,
event=0xbfdd17cc) at kernel/qapplication_x11.cpp:4409
#58 0xb5bee6ff in QApplication::x11ProcessEvent (this=0xbfdd1944,
event=0xbfdd17cc) at kernel/qapplication_x11.cpp:3405
#59 0xb5c179f9 in QEventDispatcherX11::processEvents (this=0x8069298, flags={i
= -1076029336}) at kernel/qeventdispatcher_x11.cpp:127
#60 0xb66c03da in QEventLoop::processEvents (this=0xbfdd18e0, flags={i =
-1076029272}) at kernel/qeventloop.cpp:144
#61 0xb66c081a in QEventLoop::exec (this=0xbfdd18e0, flags={i = -1076029208})
at kernel/qeventloop.cpp:195
#62 0xb66c2c19 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:872
#63 0xb5b77947 in QApplication::exec () at kernel/qapplication.cpp:3522
#64 0x0804baeb in main (argc=50331758, argv=0x31) at
/home/krop/kde/src/KDE/kdepim/kontact/src/main.cpp:218


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list