Bug 98808 - Inport of calendar events causes korganizer to crash if line breaks occur in middle of words
Summary: Inport of calendar events causes korganizer to crash if line breaks occur in ...
Status: RESOLVED WORKSFORME
Alias: None
Product: korganizer
Classification: Applications
Component: import/export (show other bugs)
Version: SVN trunk (KDE 4)
Platform: RedHat Enterprise Linux Linux
: HI crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2005-02-07 22:33 UTC by Alex Tabisz
Modified: 2008-12-03 23:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
ical file with line-broken keywords (515 bytes, text/plain)
2006-01-13 14:08 UTC, Jan van Lieshout
Details
backtrace of crash on debian sarge with korganizer 3.5.0 (1.38 KB, text/plain)
2006-01-13 14:13 UTC, Jan van Lieshout
Details
previous attached demo ical file with the keywords not broken across lines (515 bytes, text/plain)
2006-01-13 14:16 UTC, Jan van Lieshout
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Tabisz 2005-02-07 22:33:07 UTC
Version:           3.3.2 (using KDE KDE 3.3.2)
Installed from:    RedHat RPMs
OS:                Linux

If the vcs file contains breaks in between words eg:
ATTENDEE;ROLE=CHAIR;CN=Lisa Anne Hills;PARTSTAT=ACCEPTED:MAILTO:lhills@au1.
 ibm.com
ATTENDEE;RSVP=TRUE;ROLE=REQ-PARTICIPANT;CN=Alex Tabisz;PARTSTAT=NEEDS-ACTIO
 N:MAILTO:altabisz@au1.ibm.com

Korganizer crashes.  If the breaks occur after the word, import works ok.


Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1218607392 (LWP 2908)]
[KCrash handler]
#3  0x00577758 in uStrLen () from /usr/lib/libkcal.so.2
#4  0x0057778e in fakeCString () from /usr/lib/libkcal.so.2
#5  0x0053826a in KCal::VCalFormat::VEventToEvent ()
   from /usr/lib/libkcal.so.2
#6  0x0053cc82 in KCal::VCalFormat::populate () from /usr/lib/libkcal.so.2
#7  0x00531efb in KCal::VCalFormat::load () from /usr/lib/libkcal.so.2
#8  0x0055321c in KCal::FileStorage::load () from /usr/lib/libkcal.so.2
#9  0x009cd270 in CalendarView::openCalendar ()
   from /usr/lib/libkorganizer.so.1
#10 0x00a4997c in ActionManager::openURL () from /usr/lib/libkorganizer.so.1
#11 0x00a49267 in ActionManager::file_merge ()
   from /usr/lib/libkorganizer.so.1
#12 0x00a4d94c in ActionManager::qt_invoke () from /usr/lib/libkorganizer.so.1
#13 0x015781e0 in QObject::activate_signal ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#14 0x01578014 in QObject::activate_signal ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#15 0x0496e60b in KAction::activated () from /usr/lib/libkdeui.so.4
#16 0x0496dfaf in KAction::slotActivated () from /usr/lib/libkdeui.so.4
#17 0x0496e811 in KAction::qt_invoke () from /usr/lib/libkdeui.so.4
#18 0x015781e0 in QObject::activate_signal ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#19 0x018a87b2 in QSignal::signal () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#20 0x0159225f in QSignal::activate () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#21 0x016793bf in QPopupMenu::mouseReleaseEvent ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#22 0x015ad05c in QWidget::event () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#23 0x0151cd55 in QApplication::internalNotify ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#24 0x0151c4f2 in QApplication::notify ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#25 0x08660736 in KApplication::notify () from /usr/lib/libkdecore.so.4
#26 0x014b1b8d in QETWidget::translateMouseEvent ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#27 0x014afacf in QApplication::x11ProcessEvent ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#28 0x014c6fd7 in QEventLoop::processEvents ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#29 0x0152ebb6 in QEventLoop::enterLoop ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#30 0x0152ea58 in QEventLoop::exec () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#31 0x0151cfa1 in QApplication::exec () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#32 0x0805039f in ?? ()
#33 0xbfffada0 in ?? ()
#34 0xbfffad90 in ?? ()
#35 0x00000000 in ?? ()
Comment 1 Jan van Lieshout 2006-01-13 14:05:05 UTC
Yes I can confirm this awfull behavior (it seems to go wrong in the versit routines..).
I tried it on Korganizer 3.3.2, 3.4.2 and 3.5.0 and they all simply crash on import of an .ics file with lines with broken keywords.
(using debian sarge and kubuntu (breezy) systems.

below attached another example of a broken and an unbroken demo ics file and a (relevant parts only) bugtrace

A more gracefull errorhandling would be nice.... :-)
Comment 2 Jan van Lieshout 2006-01-13 14:08:43 UTC
Created attachment 14238 [details]
ical file with line-broken keywords 

this one crashes korganizer (at least) 3.3.2 3.4.2 and 3.5.0
Comment 3 Jan van Lieshout 2006-01-13 14:13:25 UTC
Created attachment 14239 [details]
backtrace of crash on debian sarge with korganizer 3.5.0

here is the crash backtrace for importing the demoical-with-line-broken
keywords on debian-sarge (with kde 3.5.0 backported and Korganizer 3.5.0) But
no matter: it also crashes alike on standard sarge and kubuntu with many
korganizer versions..
Comment 4 Jan van Lieshout 2006-01-13 14:16:09 UTC
Created attachment 14240 [details]
previous attached demo ical file with the keywords not broken across lines

Oke just to show that it is the keywords broken across the lines...
Comment 5 Reinhold Kainhofer 2006-11-02 18:56:32 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 6 Christophe Marin 2008-11-17 14:54:54 UTC
Backtrace in KDE4.1 (4.1.73) :

Application: Kontact (kontact), signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
0xb55ac56c in nanosleep () from /lib/libc.so.6
[Current thread is 1 (Thread 0xb49c3700 (LWP 28258))]

Thread 2 (Thread 0xb071bb90 (LWP 31162)):
#0  0xb55dc627 in select () from /lib/libc.so.6
#1  0xb58d0dc7 in ?? () from /usr/lib/libQtCore.so.4
#2  0xb580185e in ?? () from /usr/lib/libQtCore.so.4
#3  0xb57a0030 in start_thread () from /lib/libpthread.so.0
#4  0xb55e348e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb49c3700 (LWP 28258)):
[KCrash Handler]
#5  uStrLen (u=0x0) at /usr/src/debug/kdepimlibs-4.1.73/kcal/versit/vobject.c:1408
#6  0xb720077e in fakeCString (u=0x0) at /usr/src/debug/kdepimlibs-4.1.73/kcal/versit/vobject.c:1415
#7  0xb723b261 in KCal::VCalFormat::VEventToEvent (this=0xbfd384d4, vevent=0xae1e638) at /usr/src/debug/kdepimlibs-4.1.73/kcal/vcalformat.cpp:949
#8  0xb723fcf7 in KCal::VCalFormat::populate (this=0xbfd384d4, vcal=0xae0b4b8) at /usr/src/debug/kdepimlibs-4.1.73/kcal/vcalformat.cpp:1531
#9  0xb723ff0d in KCal::VCalFormat::load (this=0xbfd384d4, calendar=0x880b7f8, fileName=@0xc4fcca8) at /usr/src/debug/kdepimlibs-4.1.73/kcal/vcalformat.cpp:100
#10 0xb726ea1c in KCal::FileStorage::load (this=0xbfd38524) at /usr/src/debug/kdepimlibs-4.1.73/kcal/filestorage.cpp:127
#11 0xb094ed2d in CalendarView::openCalendar (this=0x872e450, filename=@0x880b18c, merge=true) at /usr/src/debug/kdepim-4.1.73/korganizer/calendarview.cpp:387
#12 0xb09bd5b2 in ActionManager::openURL (this=0x880b178, url=@0xc513a90, merge=true) at /usr/src/debug/kdepim-4.1.73/korganizer/actionmanager.cpp:927
#13 0xb09c95b7 in ActionManager::qt_metacall (this=0x880b178, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbfd386f8) at /usr/src/debug/kdepim-4.1.73/build/korganizer/actionmanager.moc:190
#14 0xb5906580 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#15 0xb5907302 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#16 0xb09da71f in ImportDialog::openURL (this=0xc513a78, _t1=@0xc513a90, _t2=true) at /usr/src/debug/kdepim-4.1.73/build/korganizer/importdialog.moc:95
#17 0xb09daa37 in ImportDialog::slotOk (this=0xc513a78) at /usr/src/debug/kdepim-4.1.73/korganizer/importdialog.cpp:97
#18 0xb09dabab in ImportDialog::qt_metacall (this=0xc513a78, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfd387f8) at /usr/src/debug/kdepim-4.1.73/build/korganizer/importdialog.moc:77
#19 0xb5906580 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#20 0xb5907302 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#21 0xb675e4a7 in KDialog::okClicked() () from /usr/lib/libkdeui.so.5
#22 0xb6760f58 in KDialog::slotButtonClicked(int) () from /usr/lib/libkdeui.so.5
#23 0xb67622c4 in KDialog::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeui.so.5
#24 0xb09dab6a in ImportDialog::qt_metacall (this=0xc513a78, _c=QMetaObject::InvokeMetaMethod, _id=68, _a=0xbfd389bc) at /usr/src/debug/kdepim-4.1.73/build/korganizer/importdialog.moc:68
#25 0xb5906580 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#26 0xb5907302 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#27 0xb590a393 in QSignalMapper::mapped(int) () from /usr/lib/libQtCore.so.4
#28 0xb590ac1d in QSignalMapper::map(QObject*) () from /usr/lib/libQtCore.so.4
#29 0xb590ae0e in QSignalMapper::map() () from /usr/lib/libQtCore.so.4
#30 0xb590b74b in QSignalMapper::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#31 0xb5906580 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#32 0xb5906980 in QMetaObject::activate(QObject*, QMetaObject const*, int, int, void**) () from /usr/lib/libQtCore.so.4
#33 0xb63fd631 in QAbstractButton::clicked(bool) () from /usr/lib/libQtGui.so.4
#34 0xb6150d39 in ?? () from /usr/lib/libQtGui.so.4
#35 0xb61528b4 in ?? () from /usr/lib/libQtGui.so.4
#36 0xb6152b46 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#37 0xb5e68a62 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#38 0xb6150bde in QAbstractButton::event(QEvent*) () from /usr/lib/libQtGui.so.4
#39 0xb61f7290 in QPushButton::event(QEvent*) () from /usr/lib/libQtGui.so.4
#40 0xb5e108fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#41 0xb5e19111 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#42 0xb67f0fdd in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#43 0xb58f1961 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#44 0xb5e1839e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&) () from /usr/lib/libQtGui.so.4
#45 0xb5e82716 in ?? () from /usr/lib/libQtGui.so.4
#46 0xb5e81ac5 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#47 0xb5eaa08a in ?? () from /usr/lib/libQtGui.so.4
#48 0xb4f3d9a8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#49 0xb4f41063 in ?? () from /usr/lib/libglib-2.0.so.0
#50 0xb4f41221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#51 0xb591bfb8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#52 0xb5ea9785 in ?? () from /usr/lib/libQtGui.so.4
#53 0xb58f001a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#54 0xb58f01da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#55 0xb58f2895 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#56 0xb5e10777 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#57 0x0804c00f in main (argc=1, argv=0xbfd39ce4) at /usr/src/debug/kdepim-4.1.73/kontact/src/main.cpp:218

Comment 7 Sergio Martins 2008-12-03 22:25:36 UTC
This seems to be fixed in trunk 892126, it doesn't crash. :)

In 4.1.3 it still crashes.
Comment 8 Christophe Marin 2008-12-03 23:21:59 UTC
Confirmed, the crash can not be reproduced. Closing.