Summary: | Korganizer crashes when editing calendar entry | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Thomas Rehn <kde> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | smartins |
Priority: | NOR | ||
Version First Reported In: | 4.2.3 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Unspecified | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Thomas Rehn
2009-06-08 11:29:33 UTC
As the backtrace stops at something attachment related I looked into the vCal file and found the following attachment there: ATTACH;FMTTYPE=application/html:http://univis.uni-magdeburg.de/prg?search=events&id=90392642 With debug symbols: #0 0xffffe424 in __kernel_vsyscall () #1 0x48252a2d in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:41 #2 0xb6dd4079 in KCrash::defaultCrashHandler (sig=11) at /home/serj/kde/src/KDE/kdelibs/kdeui/util/kcrash.cpp:258 #3 <signal handler called> #4 KMimeType::iconName (this=0x0, url=@0xbfaf834c) at /home/serj/kde/src/KDE/kdelibs/kdecore/services/kmimetype.h:48 #5 0xb1093c90 in AttachmentIconItem::readAttachment (this=0x8d80540) at /home/serj/kde/src/KDE/kdepim/korganizer/koeditorattachments.cpp:126 #6 0xb108bcf7 in KOEditorAttachments::addAttachment (this=0x8d36728, attachment=0x8a53578) at /home/serj/kde/src/KDE/kdepim/korganizer/koeditorattachments.cpp:75 #7 0xb108bdf1 in KOEditorAttachments::readIncidence (this=0x8d36728, i=0x8a63798) at /home/serj/kde/src/KDE/kdepim/korganizer/koeditorattachments.cpp:766 #8 0xb105cf1d in KOEditorGeneral::readIncidence (this=0x8c8d4a8, incidence=0x8a63798) at /home/serj/kde/src/KDE/kdepim/korganizer/koeditorgeneral.cpp:480 #9 0xb1062549 in KOEditorGeneralEvent::readEvent (this=0x8c8d4a8, event=0x8a63798, isTemplate=false) at /home/serj/kde/src/KDE/kdepim/korganizer/koeditorgeneralevent.cpp:462 #10 0xb105666e in KOEventEditor::readEvent (this=0x8c6c840, event=0x8a63798, tmpl=false) at /home/serj/kde/src/KDE/kdepim/korganizer/koeventeditor.cpp:383 #11 0xb1056fdf in KOEventEditor::editIncidence (this=0x8c6c840, incidence=0x8a63798, calendar=0x89ecef8) at /home/serj/kde/src/KDE/kdepim/korganizer/koeventeditor.cpp:249 #12 0xb103bf52 in CalendarView::editIncidence (this=0x86326c0, incidence=0x8a63798, isCounter=false) at /home/serj/kde/src/KDE/kdepim/korganizer/calendarview.cpp:2132 #13 0xb10470c4 in CalendarView::qt_metacall (this=0x86326c0, _c=QMetaObject::InvokeMetaMethod, _id=82, _a=0xbfaf875c) ---Type <return> to continue, or q <return> to quit--- at /home/serj/kde/build/KDE/kdepim/korganizer/calendarview.moc:441 #14 0xb67fd898 in QMetaObject::activate (sender=0x8a0a398, from_signal_index=<value optimized out>, to_signal_index=29, argv=<value optimized out>) at kernel/qobject.cpp:3117 #15 0xb67fdf04 in QMetaObject::activate (sender=0x8a0a398, m=0xb0ecac40, local_signal_index=2, argv=0xbfaf875c) at kernel/qobject.cpp:3194 #16 0xb0ec7a84 in KOrg::BaseView::editIncidenceSignal (this=0x8a0a398, _t1=0x8a63798) at /home/serj/kde/build/KDE/kdepim/korganizer/interfaces/korganizer/baseview.moc:174 #17 0xb0ec7e5d in KOrg::BaseView::qt_metacall (this=0x8a0a398, _c=QMetaObject::InvokeMetaMethod, _id=29, _a=0xbfaf88fc) at /home/serj/kde/build/KDE/kdepim/korganizer/interfaces/korganizer/baseview.moc:121 #18 0xb10a356a in KOEventView::qt_metacall (this=0x8a0a398, _c=QMetaObject::InvokeMetaMethod, _id=29, _a=0xbfaf88fc) at /home/serj/kde/build/KDE/kdepim/korganizer/koeventview.moc:78 #19 0xb0fdd81a in KOrg::AgendaView::qt_metacall (this=0x8a0a398, _c=QMetaObject::InvokeMetaMethod, _id=29, _a=0xbfaf88fc) at /home/serj/kde/build/KDE/kdepim/korganizer/agendaview.moc:61 #20 0xb0ff6b5a in KOAgendaView::qt_metacall (this=0x8a0a398, _c=QMetaObject::InvokeMetaMethod, _id=29, _a=0xbfaf88fc) at /home/serj/kde/build/KDE/kdepim/korganizer/koagendaview.moc:174 #21 0xb67fd898 in QMetaObject::activate (sender=0x8a06ca0, from_signal_index=<value optimized out>, to_signal_index=39, argv=<value optimized out>) at kernel/qobject.cpp:3117 #22 0xb67fdf04 in QMetaObject::activate (sender=0x8a06ca0, m=0xb1120c3c, local_signal_index=1, argv=0xbfaf88fc) at kernel/qobject.cpp:3194 #23 0xb1094494 in KOEventPopupMenu::editIncidenceSignal (this=0x8a06ca0, _t1=0x8a63798) at /home/serj/kde/build/KDE/kdepim/korganizer/koeventpopupmenu.moc:145 #24 0xb10944bc in KOEventPopupMenu::popupEdit (this=0x8d274a0) at /home/serj/kde/src/KDE/kdepim/korganizer/koeventpopupmenu.cpp:136 #25 0xb10950f0 in KOEventPopupMenu::qt_metacall (this=0x8a06ca0, _c=QMetaObject::InvokeMetaMethod, _id=50, _a=0xbfaf8a1c) at /home/serj/kde/build/KDE/kdepim/korganizer/koeventpopupmenu.moc:117 ---Type <return> to continue, or q <return> to quit--- #26 0xb67fd898 in QMetaObject::activate (sender=0x8a11010, from_signal_index=<value optimized out>, to_signal_index=6, argv=<value optimized out>) at kernel/qobject.cpp:3117 #27 0xb67fdcb2 in QMetaObject::activate (sender=0x8a11010, m=0xb6544928, from_local_signal_index=1, to_local_signal_index=2, argv=0xbfaf8a1c) at kernel/qobject.cpp:3214 #28 0xb5dceaa3 in QAction::triggered (this=0x8a11010, _t1=false) at .moc/debug-shared/moc_qaction.cpp:236 #29 0xb5dcff3d in QAction::activate (this=0x8a11010, event=QAction::Trigger) at kernel/qaction.cpp:1160 #30 0xb62436d0 in QMenuPrivate::activateCausedStack (this=0x8a10958, causedStack=@0xbfaf8b00, action=0x8a11010, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:967 #31 0xb624b838 in QMenuPrivate::activateAction (this=0x8a10958, action=0x8a11010, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1060 #32 0xb624c33a in QMenu::mouseReleaseEvent (this=0x8a06ca0, e=0xbfaf91f0) at widgets/qmenu.cpp:2254 #33 0xb5e2a11c in QWidget::event (this=0x8a06ca0, event=0xbfaf91f0) at kernel/qwidget.cpp:7521 #34 0xb624938f in QMenu::event (this=0x8a06ca0, e=0xbfaf91f0) at widgets/qmenu.cpp:2353 #35 0xb5dd593f in QApplicationPrivate::notify_helper (this=0x807e1e8, receiver=0x8a06ca0, e=0xbfaf91f0) at kernel/qapplication.cpp:4057 #36 0xb5ddccef in QApplication::notify (this=0xbfafa9c4, receiver=0x8a06ca0, e=0xbfaf91f0) at kernel/qapplication.cpp:3759 #37 0xb6d63aaa in KApplication::notify (this=0xbfafa9c4, receiver=0x8a06ca0, event=0xbfaf91f0) at /home/serj/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302 #38 0xb67e6f4a in QCoreApplication::notifyInternal (this=0xbfafa9c4, receiver=0x8a06ca0, event=0xbfaf91f0) at kernel/qcoreapplication.cpp:606 #39 0xb5ddc53a in QApplicationPrivate::sendMouseEvent (receiver=0x8a06ca0, event=0xbfaf91f0, alienWidget=0x0, nativeWidget=0x8a06ca0, buttonDown=0xb6563200, lastMouseReceiver=@0xb6563204) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216 #40 0xb5e453ff in QETWidget::translateMouseEvent (this=0x8a06ca0, event=0xbfafa6ac) at kernel/qapplication_x11.cpp:4382 ---Type <return> to continue, or q <return> to quit--- #41 0xb5e44866 in QApplication::x11ProcessEvent (this=0xbfafa9c4, event=0xbfafa6ac) at kernel/qapplication_x11.cpp:3444 #42 0xb5e6b8e4 in x11EventSourceDispatch (s=0x8079b00, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146 #43 0xb540523d in IA__g_main_context_dispatch (context=0x807e2a8) at gmain.c:1814 #44 0xb5408463 in g_main_context_iterate (context=0x807e2a8, block=1, dispatch=1, self=0x807d9e8) at gmain.c:2448 #45 0xb5408955 in IA__g_main_context_iteration (context=0x807e2a8, may_block=1) at gmain.c:2511 #46 0xb6812e08 in QEventDispatcherGlib::processEvents (this=0x8071540, flags=@0xbfafa8b8) at kernel/qeventdispatcher_glib.cpp:324 #47 0xb5e6b685 in QGuiEventDispatcherGlib::processEvents (this=0x8071540, flags=@0xbfafa8e8) at kernel/qguieventdispatcher_glib.cpp:202 #48 0xb67e604d in QEventLoop::processEvents (this=0xbfafa950, flags=@0xbfafa928) at kernel/qeventloop.cpp:149 #49 0xb67e61fa in QEventLoop::exec (this=0xbfafa950, flags=@0xbfafa958) at kernel/qeventloop.cpp:196 #50 0xb67e86aa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888 #51 0xb5dd4ee7 in QApplication::exec () at kernel/qapplication.cpp:3526 #52 0x0804baf4 in main (argc=1, argv=0xbfafabc4) at /home/serj/kde/src/KDE/kdepim/kontact/src/main.cpp:218 I reproduced it with the line in comment #1. Thomas, which application generated the original ics file? I've downloaded the vCal file from a subpage of http://univis.uni-magdeburg.de The web application, UnivIS, is a course planning/management tool used by some German universities. Valgrind Report: ==14328== Invalid read of size 4 ==14328== at 0x511120D: KMimeType::iconName(KUrl const&) const (kmimetype.h:48) ==14328== by 0x4867C8F: AttachmentIconItem::readAttachment() (koeditorattachments.cpp:126) ==14328== by 0x485FCF6: KOEditorAttachments::addAttachment(KCal::Attachment*) (koeditorattachments.cpp:75) ==14328== by 0x485FDF0: KOEditorAttachments::readIncidence(KCal::Incidence*) (koeditorattachments.cpp:766) ==14328== by 0x4830F1C: KOEditorGeneral::readIncidence(KCal::Incidence*) (koeditorgeneral.cpp:480) ==14328== by 0x4836548: KOEditorGeneralEvent::readEvent(KCal::Event*, bool) (koeditorgeneralevent.cpp:462) ==14328== by 0x482A66D: KOEventEditor::readEvent(KCal::Event*, bool) (koeventeditor.cpp:383) ==14328== by 0x482AFDE: KOEventEditor::editIncidence(KCal::Incidence*, KCal::Calendar*) (koeventeditor.cpp:249) ==14328== by 0x480FF51: CalendarView::editIncidence(KCal::Incidence*, bool) (calendarview.cpp:2132) ==14328== by 0x481B0C3: CalendarView::qt_metacall(QMetaObject::Call, int, void**) (calendarview.moc:441) ==14328== by 0x53FE897: QMetaObject::activate(QObject*, int, int, void**) (qobject.cpp:3117) ==14328== by 0x53FEF03: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3194) ==14328== Address 0x8 is not stack'd, malloc'd or (recently) free'd SVN commit 979039 by smartins: Don't always trust the attachment's mimeType, it can be invalid. BUG: 195654 M +3 -4 koeditorattachments.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=979039 SVN commit 979712 by tmcguire: Crossport r979039 by smartins from trunk to the enterprise4 branch: Don't always trust the attachment's mimeType, it can be invalid. CCBUG: 195654 M +3 -4 koeditorattachments.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=979712 |