Bug 182833 - Crash on accepting meeting invitation by clicking Accept in mail viewer
Summary: Crash on accepting meeting invitation by clicking Accept in mail viewer
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: KResource compat bridges (show other bugs)
Version: 1.0.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Kevin Krammer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-02 09:06 UTC by René Krell
Modified: 2009-02-08 14:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description René Krell 2009-02-02 09:06:31 UTC
Version:           1.11.0 (using 4.2.00 (KDE 4.2.0) "release 83.1", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.7-9-default

I get frequent crashes on clicking "Accept" of meeting invitations in KMail (within Kontact).
Backtrace:
This backtrace appears to be of no use.
This is probably because your packages are built in a way which prevents creation of proper backtraces, or the stack frame was seriously corrupted in the crash.

[?1034h[Thread debugging using libthread_db enabled]
[New Thread 0xafec2b90 (LWP 12015)]
0xb5abe54c in nanosleep () from /lib/libc.so.6
[Current thread is 1 (Thread 0xb4a4f920 (LWP 11986))]

Thread 2 (Thread 0xafec2b90 (LWP 12015)):
#0  0xb5aee7e7 in select () from /lib/libc.so.6
#1  0xb6810dc7 in QProcessManager::run (this=0x8068570) at io/qprocess_unix.cpp:301
#2  0xb674185e in QThreadPrivate::start (arg=0x8068570) at thread/qthread_unix.cpp:185
#3  0xb66e0030 in start_thread () from /lib/libpthread.so.0
#4  0xb5af566e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4a4f920 (LWP 11986)):
#0  0xb5abe54c in nanosleep () from /lib/libc.so.6
#1  0xb5abe34f in sleep () from /lib/libc.so.6
#2  0xb6e3dada in ?? () from /usr/lib/libkdeui.so.5
#3  0xb6e3e50c in KCrash::defaultCrashHandler(int) () from /usr/lib/libkdeui.so.5
#4  <signal handler called>
#5  0xb5a4e9d6 in raise () from /lib/libc.so.6
#6  0xb5a502d8 in abort () from /lib/libc.so.6
#7  0xb5a90a03 in ?? () from /lib/libc.so.6
#8  0xb5a9228b in free () from /lib/libc.so.6
#9  0xb5c71ec1 in operator delete(void*) () from /usr/lib/libstdc++.so.6
#10 0xb6830395 in ~QEventLoop (this=0xbf8dec80) at kernel/qeventloop.cpp:120
#11 0xb683fc1f in QObjectPrivate::deleteChildren (this=0x96a0720) at kernel/qobject.cpp:1884
#12 0xb6848763 in ~QObject (this=0x9723f88) at kernel/qobject.cpp:884
#13 0xb6a513c1 in KJob::~KJob() () from /usr/lib/libkdecore.so.5
#14 0xb6a501f8 in KCompositeJob::~KCompositeJob() () from /usr/lib/libkdecore.so.5
#15 0xb0007bdc in ~Job (this=0x9723f88) at /usr/src/debug/kdepimlibs-4.2.0/akonadi/job.cpp:169
#16 0xaffd8d3d in ~CollectionFetchJob (this=0x9723f88) at /usr/src/debug/kdepimlibs-4.2.0/akonadi/collectionfetchjob.cpp:100
#17 0xb683f90c in qDeleteInEventHandler (o=0x6) at kernel/qobject.cpp:3659
#18 0xb68412b3 in QObject::event (this=0x9723f88, e=0x97e4080) at kernel/qobject.cpp:1139
#19 0xb5dc78fc in QApplicationPrivate::notify_helper (this=0x8077c30, receiver=0x9723f88, e=0x97e4080) at kernel/qapplication.cpp:3803
#20 0xb5dcf75e in QApplication::notify (this=0xbf8e1478, receiver=0x9723f88, e=0x97e4080) at kernel/qapplication.cpp:3393
#21 0xb6dd191d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#22 0xb6831961 in QCoreApplication::notifyInternal (this=0xbf8e1478, receiver=0x9723f88, event=0x97e4080) at kernel/qcoreapplication.cpp:587
#23 0xb68325d5 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8050000) at kernel/qcoreapplication.h:209
#24 0xb68327cd in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1091
#25 0xb685c36f in postEventSourceDispatch (s=0x80797b8) at kernel/qcoreapplication.h:214
#26 0xb51dc9a8 in IA__g_main_context_dispatch (context=0x8079730) at gmain.c:2144
#27 0xb51e0063 in g_main_context_iterate (context=0x8079730, block=1, dispatch=1, self=0x806c5d8) at gmain.c:2778
#28 0xb51e0221 in IA__g_main_context_iteration (context=0x8079730, may_block=1) at gmain.c:2841
#29 0xb685bfb8 in QEventDispatcherGlib::processEvents (this=0x8066f60, flags={i = -1081223976}) at kernel/qeventdispatcher_glib.cpp:319
#30 0xb5e607c5 in QGuiEventDispatcherGlib::processEvents (this=0x8066f60, flags={i = -1081223928}) at kernel/qguieventdispatcher_glib.cpp:198
#31 0xb683001a in QEventLoop::processEvents (this=0x97a1e10, flags={i = -1081223864}) at kernel/qeventloop.cpp:143
#32 0xb68301da in QEventLoop::exec (this=0x97a1e10, flags={i = -1081223752}) at kernel/qeventloop.cpp:194
#33 0xb5e48c30 in QDragManager::drag (this=0x96a13a8, o=0x9765f50) at kernel/qdnd_x11.cpp:1944
#34 0xb5ddabe0 in QDrag::start (this=0x9765f50, request={i = -1081223248}) at kernel/qdrag.cpp:307
#35 0xb7b85c46 in KHTMLPart::handleMouseMoveEventDrag(khtml::MouseMoveEvent*) () from /usr/lib/libkhtml.so.5
#36 0xb7ba7e0c in KHTMLPart::khtmlMouseMoveEvent(khtml::MouseMoveEvent*) () from /usr/lib/libkhtml.so.5
#37 0xb7b76c37 in KHTMLPart::customEvent(QEvent*) () from /usr/lib/libkhtml.so.5
#38 0xb68412e7 in QObject::event (this=0x867e448, e=0xbf8ddc90) at kernel/qobject.cpp:1181
#39 0xb5dc78fc in QApplicationPrivate::notify_helper (this=0x8077c30, receiver=0x867e448, e=0xbf8ddc90) at kernel/qapplication.cpp:3803
#40 0xb5dcf75e in QApplication::notify (this=0xbf8e1478, receiver=0x867e448, e=0xbf8ddc90) at kernel/qapplication.cpp:3393
#41 0xb6dd191d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#42 0xb6831961 in QCoreApplication::notifyInternal (this=0xbf8e1478, receiver=0x867e448, event=0xbf8ddc90) at kernel/qcoreapplication.cpp:587
#43 0xb7b6d692 in KHTMLView::mouseMoveEvent(QMouseEvent*) () from /usr/lib/libkhtml.so.5
#44 0xb5e1f8db in QWidget::event (this=0x8681108, event=0xbf8de438) at kernel/qwidget.cpp:7148
#45 0xb6155b03 in QFrame::event (this=0x8681108, e=0xbf8de438) at widgets/qframe.cpp:651
#46 0xb7b69f9f in KHTMLView::widgetEvent(QEvent*) () from /usr/lib/libkhtml.so.5
#47 0xb7b6a20d in KHTMLView::eventFilter(QObject*, QEvent*) () from /usr/lib/libkhtml.so.5
#48 0xb6830b3a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8077c30, receiver=0x8293270, event=0xbf8de438) at kernel/qcoreapplication.cpp:694
#49 0xb5dc78da in QApplicationPrivate::notify_helper (this=0x8077c30, receiver=0x8293270, e=0xbf8de438) at kernel/qapplication.cpp:3799
#50 0xb5dd0111 in QApplication::notify (this=0xbf8e1478, receiver=0x8293270, e=0xbf8de438) at kernel/qapplication.cpp:3528
#51 0xb6dd191d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#52 0xb6831961 in QCoreApplication::notifyInternal (this=0xbf8e1478, receiver=0x8293270, event=0xbf8de438) at kernel/qcoreapplication.cpp:587
#53 0xb5dcf39e in QApplicationPrivate::sendMouseEvent (receiver=0x8293270, event=0xbf8de438, alienWidget=0x8293270, nativeWidget=0x814f008, buttonDown=0xb6593cb0, lastMouseReceiver=@0xb6593cb4)
    at ../../src/corelib/kernel/qcoreapplication.h:212
#54 0xb5e39756 in QETWidget::translateMouseEvent (this=0x814f008, event=0xbf8dea1c) at kernel/qapplication_x11.cpp:4042
#55 0xb5e37edb in QApplication::x11ProcessEvent (this=0xbf8e1478, event=0xbf8dea1c) at kernel/qapplication_x11.cpp:3160
#56 0xb5e610ca in x11EventSourceDispatch (s=0x8067fa8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#57 0xb51dc9a8 in IA__g_main_context_dispatch (context=0x8079730) at gmain.c:2144
#58 0xb51e0063 in g_main_context_iterate (context=0x8079730, block=1, dispatch=1, self=0x806c5d8) at gmain.c:2778
#59 0xb51e0221 in IA__g_main_context_iteration (context=0x8079730, may_block=1) at gmain.c:2841
#60 0xb685bfb8 in QEventDispatcherGlib::processEvents (this=0x8066f60, flags={i = -1081218088}) at kernel/qeventdispatcher_glib.cpp:319
#61 0xb5e607c5 in QGuiEventDispatcherGlib::processEvents (this=0x8066f60, flags={i = -1081218040}) at kernel/qguieventdispatcher_glib.cpp:198
#62 0xb683001a in QEventLoop::processEvents (this=0xbf8dec80, flags={i = -1081217976}) at kernel/qeventloop.cpp:143
#63 0xb68301da in QEventLoop::exec (this=0xbf8dec80, flags={i = -1081217912}) at kernel/qeventloop.cpp:194
#64 0xb6a51251 in KJob::exec() () from /usr/lib/libkdecore.so.5
#65 0xb09607ed in KCal::ResourceAkonadi::doLoad (this=0x972e6c8, syncCache=false) at /usr/src/debug/kdepim-4.2.0/kresources/akonadi/kcal/resourceakonadi.cpp:675
#66 0xb74452ed in KCal::ResourceCalendar::load (this=0x972e6c8) at /usr/src/debug/kdepimlibs-4.2.0/kcal/resourcecalendar.cpp:168
#67 0xb74575d1 in KCal::CalendarResources::load (this=0x899d338) at /usr/src/debug/kdepimlibs-4.2.0/kcal/calendarresources.cpp:272
#68 0xb0936913 in KOrganizerPart (this=0x96e3828, parentWidget=0x814f008, parent=0x814f008) at /usr/src/debug/kdepim-4.2.0/korganizer/korganizer_part.cpp:88
#69 0xb09373e2 in KPluginFactory::createPartInstance<KOrganizerPart> (parentWidget=0x814f008, parent=0x814f008, args=@0xbf8df000) at /usr/include/kpluginfactory.h:467
#70 0xb6b4e34f in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib/libkdecore.so.5
#71 0xb7971c72 in Kontact::Core::createPart (this=0x814f008, libname=0x8292850 "korganizerpart") at /usr/include/kpluginfactory.h:491
#72 0xb7973237 in Kontact::Plugin::loadPart (this=0x827d968) at /usr/src/debug/kdepim-4.2.0/kontactinterfaces/plugin.cpp:148
#73 0xb1a553b5 in JournalPlugin::createPart (this=0x827d968) at /usr/src/debug/kdepim-4.2.0/kontact/plugins/korganizer/journalplugin.cpp:71
#74 0xb7973192 in Kontact::Plugin::part (this=0x827d968) at /usr/src/debug/kdepim-4.2.0/kontactinterfaces/plugin.cpp:187
#75 0xb79750d2 in Kontact::UniqueAppHandler::load (this=0x82779b8) at /usr/src/debug/kdepim-4.2.0/kontactinterfaces/uniqueapphandler.cpp:154
#76 0xb7975293 in Kontact::UniqueAppHandler::qt_metacall (this=0x82779b8, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf8df25c)
    at /usr/src/debug/kdepim-4.2.0/build/kontactinterfaces/uniqueapphandler.moc:74
#77 0xb693be6f in QDBusConnectionPrivate::deliverCall (this=0x80603b0, object=0x82779b8, msg=@0xbf8df648, metaTypes=@0xbf8df318, slotIdx=5) at qdbusintegrator.cpp:849
#78 0xb693cf37 in QDBusConnectionPrivate::activateCall (this=0x80603b0, object=0x82779b8, flags=272, msg=@0xbf8df648) at qdbusintegrator.cpp:754
#79 0xb693d441 in QDBusConnectionPrivate::activateObject (this=0x80603b0, node=@0xbf8df480, msg=@0xbf8df648, pathStartPos=26) at qdbusintegrator.cpp:1306
#80 0xb693dfb7 in QDBusConnectionPrivate::handleObjectCall (this=0x80603b0, msg=@0xbf8df648) at qdbusintegrator.cpp:1379
#81 0xb693e5da in QDBusConnectionPrivate::handleMessage (this=0x80603b0, amsg=@0xbf8df648) at qdbusintegrator.cpp:493
#82 0xb693e899 in QDBusConnectionPrivate::sendWithReplyLocal (this=0x80603b0, message=@0xbf8df8e8) at qdbusintegrator.cpp:1707
#83 0xb694003f in QDBusConnectionPrivate::sendWithReply (this=0x80603b0, message=@0xbf8df8e8, sendMode=1, timeout=-1) at qdbusintegrator.cpp:1656
#84 0xb692ba81 in QDBusConnection::call (this=0x97652a4, message=@0xbf8df8e8, mode=QDBus::Block, timeout=-1) at qdbusconnection.cpp:512
#85 0xb6948a2b in QDBusAbstractInterface::callWithArgumentList (this=0xbf8dfb34, mode=QDBus::Block, method=@0xbf8dfb64, args=@0xbf8df9c8) at qdbusabstractinterface.cpp:397
#86 0xb694a8dd in QDBusAbstractInterface::call (this=0xbf8dfb34, mode=QDBus::AutoDetect, method=@0xbf8dfb64, arg1=@0xbf8dfb28, arg2=@0xbf8dfb1c, arg3=@0xbf8dfb10, arg4=@0xbf8dfb04, arg5=@0xbf8dfaf8, 
    arg6=@0xbf8dfaec, arg7=@0xbf8dfae0, arg8=@0xbf8dfad4) at qdbusabstractinterface.cpp:630
#87 0xb694ab3c in QDBusAbstractInterface::call (this=0xbf8dfb34, method=@0xbf8dfb64, arg1=@0xbf8dfb28, arg2=@0xbf8dfb1c, arg3=@0xbf8dfb10, arg4=@0xbf8dfb04, arg5=@0xbf8dfaf8, arg6=@0xbf8dfaec, 
    arg7=@0xbf8dfae0, arg8=@0xbf8dfad4) at qdbusabstractinterface.cpp:572
#88 0xb0066ef8 in ensureKorganizerRunning (this=0x867faa0) at /usr/src/debug/kdepim-4.2.0/plugins/kmail/bodypartformatter/text_calendar.cpp:325
#89 0xb0067ed3 in saveFile (this=0x867faa0, receiver=@0xbf8dfd84, iCal=@0xbf8dfef4, type=@0xbf8dfd74) at /usr/src/debug/kdepim-4.2.0/plugins/kmail/bodypartformatter/text_calendar.cpp:355
#90 0xb0068ce7 in handleInvitation (this=0x867faa0, iCal=@0xbf8dfef4, status=KCal::Attendee::Accepted, callback=@0xbf8dff48)
    at /usr/src/debug/kdepim-4.2.0/plugins/kmail/bodypartformatter/text_calendar.cpp:392
#91 0xb006a64c in handleClick (this=0x867faa0, part=0xbf8dff38, path=@0xbf8dff58, c=@0xbf8dff48) at /usr/src/debug/kdepim-4.2.0/plugins/kmail/bodypartformatter/text_calendar.cpp:554
#92 0xb144d148 in KMail::URLHandlerManager::BodyPartURLHandlerManager::handleClick (this=0x86ce518, url=@0xbf8e0174, w=0x8633440) at /usr/src/debug/kdepim-4.2.0/kmail/urlhandlermanager.cpp:228
#93 0xb144a938 in KMail::URLHandlerManager::handleClick (this=0x873a808, url=@0xbf8e0174, w=0x8633440) at /usr/src/debug/kdepim-4.2.0/kmail/urlhandlermanager.cpp:308
#94 0xb1220589 in KMReaderWin::slotUrlOpen (this=0x8633440, aUrl=@0xbf8e0174) at /usr/src/debug/kdepim-4.2.0/kmail/kmreaderwin.cpp:1985
#95 0xb1220b62 in KMReaderWin::qt_metacall (this=0x8633440, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbf8e00d4) at /usr/src/debug/kdepim-4.2.0/build/kmail/kmreaderwin.moc:173
#96 0xb6846580 in QMetaObject::activate (sender=0x8685b80, from_signal_index=6, to_signal_index=8, argv=0xbf8e00d4) at kernel/qobject.cpp:3031
#97 0xb6846980 in QMetaObject::activate (sender=0x8685b80, m=0xb72729ec, from_local_signal_index=2, to_local_signal_index=4, argv=0xbf8e00d4) at kernel/qobject.cpp:3121
#98 0xb7259927 in KParts::BrowserExtension::openUrlRequest(KUrl const&, KParts::OpenUrlArguments const&, KParts::BrowserArguments const&) () from /usr/lib/libkparts.so.4
#99 0xb7b9dd0e in KHTMLPart::urlSelected(QString const&, int, int, QString const&, KParts::OpenUrlArguments const&, KParts::BrowserArguments const&) () from /usr/lib/libkhtml.so.5
#100 0xb7c54cd6 in ?? () from /usr/lib/libkhtml.so.5
#101 0xb7bfa92a in ?? () from /usr/lib/libkhtml.so.5
#102 0xb7bfab46 in ?? () from /usr/lib/libkhtml.so.5
#103 0xb7b5f57d in KHTMLView::dispatchMouseEvent(int, DOM::NodeImpl*, DOM::NodeImpl*, bool, int, QMouseEvent*, bool, int, int) () from /usr/lib/libkhtml.so.5
#104 0xb7b6bd86 in KHTMLView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkhtml.so.5
#105 0xb5e1fa72 in QWidget::event (this=0x8681108, event=0xbf8e0ba8) at kernel/qwidget.cpp:7163
#106 0xb6155b03 in QFrame::event (this=0x8681108, e=0xbf8e0ba8) at widgets/qframe.cpp:651
#107 0xb7b69f9f in KHTMLView::widgetEvent(QEvent*) () from /usr/lib/libkhtml.so.5
#108 0xb7b6a20d in KHTMLView::eventFilter(QObject*, QEvent*) () from /usr/lib/libkhtml.so.5
#109 0xb6830b3a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8077c30, receiver=0x8293270, event=0xbf8e0ba8) at kernel/qcoreapplication.cpp:694
#110 0xb5dc78da in QApplicationPrivate::notify_helper (this=0x8077c30, receiver=0x8293270, e=0xbf8e0ba8) at kernel/qapplication.cpp:3799
#111 0xb5dd0111 in QApplication::notify (this=0xbf8e1478, receiver=0x8293270, e=0xbf8e0ba8) at kernel/qapplication.cpp:3528
#112 0xb6dd191d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#113 0xb6831961 in QCoreApplication::notifyInternal (this=0xbf8e1478, receiver=0x8293270, event=0xbf8e0ba8) at kernel/qcoreapplication.cpp:587
#114 0xb5dcf39e in QApplicationPrivate::sendMouseEvent (receiver=0x8293270, event=0xbf8e0ba8, alienWidget=0x8293270, nativeWidget=0x814f008, buttonDown=0xb6593cb0, lastMouseReceiver=@0xb6593cb4)
    at ../../src/corelib/kernel/qcoreapplication.h:212
#115 0xb5e39756 in QETWidget::translateMouseEvent (this=0x814f008, event=0xbf8e118c) at kernel/qapplication_x11.cpp:4042
#116 0xb5e38b05 in QApplication::x11ProcessEvent (this=0xbf8e1478, event=0xbf8e118c) at kernel/qapplication_x11.cpp:3038
#117 0xb5e610ca in x11EventSourceDispatch (s=0x8067fa8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#118 0xb51dc9a8 in IA__g_main_context_dispatch (context=0x8079730) at gmain.c:2144
#119 0xb51e0063 in g_main_context_iterate (context=0x8079730, block=1, dispatch=1, self=0x806c5d8) at gmain.c:2778
#120 0xb51e0221 in IA__g_main_context_iteration (context=0x8079730, may_block=1) at gmain.c:2841
#121 0xb685bfb8 in QEventDispatcherGlib::processEvents (this=0x8066f60, flags={i = -1081207992}) at kernel/qeventdispatcher_glib.cpp:319
#122 0xb5e607c5 in QGuiEventDispatcherGlib::processEvents (this=0x8066f60, flags={i = -1081207944}) at kernel/qguieventdispatcher_glib.cpp:198
#123 0xb683001a in QEventLoop::processEvents (this=0xbf8e13f0, flags={i = -1081207880}) at kernel/qeventloop.cpp:143
#124 0xb68301da in QEventLoop::exec (this=0xbf8e13f0, flags={i = -1081207816}) at kernel/qeventloop.cpp:194
#125 0xb6832895 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#126 0xb5dc7777 in QApplication::exec () at kernel/qapplication.cpp:3331
#127 0x0804bf8f in main (argc=1, argv=0xbf8e1774) at /usr/src/debug/kdepim-4.2.0/kontact/src/main.cpp:218
Comment 1 Dario Andres 2009-02-02 10:56:25 UTC
Akonadi event loops
Comment 2 Kevin Krammer 2009-02-08 14:40:57 UTC
SVN commit 923208 by krake:

Using nested event loops to achieve synchronous call behavior while doing Akonadi jobs has created way to many issues due to unexpected re-entrancy.

This is basically backport of a series of changes in trunk which replace this form of blocking with real blocking of the caller and delegating the Akonadi job execution to a worker thread.

This should fix all the bugs this is sent to. If they remain with 4.2.1 once it is released, please re-open.

Darío, in case I missed some of the eventloop related bugs, please feel free to close them as well.

BUG: 177294
BUG: 158129
BUG: 182475
BUG: 178869
BUG: 179577
BUG: 179838
BUG: 180384
BUG: 181153
BUG: 181966
BUG: 182833
BUG: 182956
BUG: 183187


 M  +210 -55   kabc/resourceakonadi.cpp  
 M  +202 -54   kcal/resourceakonadi.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=923208