Bug 140211 - Memory eaten up and crash while ics parsing
Summary: Memory eaten up and crash while ics parsing
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-17 22:31 UTC by Henning Mersch
Modified: 2009-04-27 01:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Test file (412 bytes, text/calendar)
2009-01-07 12:18 UTC, Dr. Heiko Münkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henning Mersch 2007-01-17 22:31:46 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
OS:                Linux

While reading an ics file containing the following VEVENT,
korganizer eats up all memory of the machine and crashes.
!! Notice the invalid DTEND date, causing this !!
Another bug was posted (#140022) about failures during writing.
This bad entry was generated by korganizer one day.

BEGIN:VEVENT
DTSTAMP:20070113T195519Z
ORGANIZER;CN=Reminder:MAILTO:xxx@yyy.zz
CREATED:20061212T202358Z
UID:libkcal-260858263.762
SEQUENCE:0
LAST-MODIFIED:20061220T171038Z
SUMMARY:Meeting
CLASS:PUBLIC
PRIORITY:5
DTSTART;VALUE=DATE:20061220
DTEND;VALUE=DATE:20067221
TRANSP:OPAQUE
END:VEVENT
Comment 1 Reinhold Kainhofer 2007-01-17 23:00:15 UTC
Am Mit J
Comment 2 Allen Winter 2007-01-18 00:16:37 UTC
I tested in the soon-to-be-released 3.5.6

KOrganizer didn't crash.  but it did cause all the dates in the date navigator to become bold, from 2006-12-20 forward in time.

KOrganizer also took a few seconds to load a 1 event .ics file.. so it was definitely thinking hard about something :)

Comment 3 Tim Holy 2007-02-26 03:22:30 UTC
It may not be exactly the same problem, but this one is related: an ics file entry that causes korganizer to fail to launch on starting up.  Ironically, this item was marked as "done".  Deleting this one entry from the std.ics file fixed the problem.  This entry must have been corrupted by korganizer, as no other program was being used to edit the file.

Kubuntu Edgy Eft, korganizer 3.5.5

BEGIN:VTODO
DTSTAMP:20070225T204641Z
ORGANIZER;CN=Ieva Swanson:MAILTO:i-swan@earthlink.net
COMMENT:NoStartDate
CREATED:20070210T203547Z
UID:libkcal-1527311587.656
SEQUENCE:3
LAST-MODIFIED:20070225T202145Z
DESCRIPTION:Registration day is 2/20.  Plan to get up extra early!!
SUMMARY:web: register C.A. camps
CLASS:PUBLIC
PRIORITY:5
RRULE:FREQ=DAILY;UNTIL=20070220
DUE;VALUE=DATE:20070219
DTSTART;VALUE=DATE:29350930228
COMPLETED:20070225T202145Z
PERCENT-COMPLETE:100
RECURRENCE-ID:20070220T060000Z
END:VTODO
Comment 4 Allen Winter 2007-04-16 16:13:57 UTC
For the record,  I tested with the Henning's bad event and when I went from agenda into month view my system completely hung.  We must be missing a check for an invalid end date someplace.

Tim Holy's bad to-do works ok in KDE 3.5.6 and above.
Comment 5 FiNeX 2008-11-19 20:24:32 UTC
Changed severity to "crash". I hope to have selected only the right bugs (>100) :-)
Comment 6 Dr. Heiko Münkel 2009-01-07 12:18:51 UTC
Created attachment 30003 [details]
Test file

I've the same problem with korganizer 3.5.9 with the attached ics file. If the DTEND date is wrong, korganizer eats all memory, until the linux system is frozen.
Comment 7 Sergio Martins 2009-02-28 15:41:26 UTC
This is working well with KOrganizer 4.2 and libical-0.42, I couldn't reproduce any hang, and the event is properly shown (with end=start).

Anyone wants to retest or should we close this?
Comment 8 Sergio Martins 2009-04-27 01:14:45 UTC
Closg(In reply to comment #7)
> This is working well with KOrganizer 4.2 and libical-0.42, I couldn't reproduce
> any hang, and the event is properly shown (with end=start).
> 
> Anyone wants to retest or should we close this?

Closing then, the problem is gone.