Bug 446025 - Importing .ics file causing Korganizer to crash
Summary: Importing .ics file causing Korganizer to crash
Status: RESOLVED UPSTREAM
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
: 446394 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-24 10:58 UTC by Paul Ezvan
Modified: 2021-12-07 17:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Ezvan 2021-11-24 10:58:04 UTC
Application: korganizer (5.17.3 (21.04.3))

Qt Version: 5.15.2
Frameworks Version: 5.88.0
Operating System: Linux 5.14.18-300.fc35.x86_64 x86_64
Windowing System: X11
Distribution: Fedora Linux 35 (KDE Plasma)
DrKonqi: 5.23.3 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
* Import ICS file from Firefox using Korganizer
* Select "merge into existing calendar"
* Korganizer crashes

The crash can be reproduced every time.

-- Backtrace:
Application: KOrganizer (korganizer), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = {<No data fields>}}
[KCrash Handler]
#6  0x00007f6b8aa05758 in cleanVObject (o=0x564633f031c0) at /usr/src/debug/libical-3.0.11-1.fc35.x86_64/src/libicalvcal/vobject.c:591
#7  0x00007f6b8aa08e94 in finiLex () at /usr/src/debug/libical-3.0.11-1.fc35.x86_64/src/libicalvcal/vcc.c:855
#8  Parse_MIMEHelper () at /usr/src/debug/libical-3.0.11-1.fc35.x86_64/src/libicalvcal/vcc.c:1171
#9  0x00007f6b8aa09e96 in Parse_MIME_FromFile (file=file@entry=0x56463401aea0) at /usr/src/debug/libical-3.0.11-1.fc35.x86_64/src/libicalvcal/vcc.c:1209
#10 0x00007f6b8aa09f11 in Parse_MIME_FromFileName (fname=0x564633f062f8 "/tmp/mozilla_paul0/cal.ics") at /usr/src/debug/libical-3.0.11-1.fc35.x86_64/src/libicalvcal/vcc.c:1220
#11 0x00007f6b8dc101fb in KCalendarCore::VCalFormat::load (this=0x7ffd46eb2120, calendar=..., fileName=...) at /usr/src/debug/kf5-kcalendarcore-5.88.0-1.fc35.x86_64/src/vcalformat.cpp:92
#12 0x00007f6b8dbd33ea in KCalendarCore::FileStorage::load (this=this@entry=0x7ffd46eb2230) at /usr/src/debug/kf5-kcalendarcore-5.88.0-1.fc35.x86_64/src/filestorage.cpp:117
#13 0x00007f6b8b8dc8cd in Akonadi::ICalImporter::importIntoExistingResource (this=this@entry=0x564633efbaf0, url=..., collection=...) at /usr/src/debug/kf5-akonadi-calendar-21.04.3-1.fc35.x86_64/src/icalimporter.cpp:184
#14 0x00007f6b8dedf434 in ActionManager::importURL (this=0x564633bbd9e0, url=..., merge=<optimized out>) at /usr/src/debug/korganizer-21.04.3-1.fc35.x86_64/src/actionmanager.cpp:859
#15 0x00007f6b8dee3f6d in ActionManager::importCalendar (this=0x564633bbd9e0, url=...) at /usr/src/debug/korganizer-21.04.3-1.fc35.x86_64/src/actionmanager.cpp:1587
#16 0x00005646329108be in KOrganizerApp::activate (this=0x7ffd46eb2670, args=..., workingDir=...) at /usr/src/debug/korganizer-21.04.3-1.fc35.x86_64/src/koapp.cpp:110
#17 0x00007f6b8dfa10db in KontactInterface::PimUniqueApplication::start (arguments=...) at /usr/src/debug/kf5-kontactinterface-21.04.3-1.fc35.x86_64/src/pimuniqueapplication.cpp:144
#18 0x000056463290ce1b in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/korganizer-21.04.3-1.fc35.x86_64/src/main.cpp:49
[Inferior 1 (process 7082) detached]

Reported using DrKonqi
Comment 1 Allen Winter 2021-11-24 17:48:15 UTC
This looks like a bug in libical library , which I reported to https://github.com/libical/libical/issues/528

Paul Ezvan: would you attach (or send me) the .ics file that caused this crash?
Comment 2 Paul Ezvan 2021-11-25 16:38:07 UTC
Hello Allen, I've sent you the ics file by email.

Thanks!
Comment 3 Allen Winter 2021-11-27 16:06:39 UTC
I can't duplicate the crash here with the cal.ics you emailed.

maybe I misunderstand how to "Import ICS file from Firefox".  All I did was save your ical.ics file to my Downloads directory and then use KOrganizer's Import->Import Calendar menu
Comment 4 Paul Ezvan 2021-11-27 16:11:06 UTC
The crash open with the following:

- Open link https://www.aa-esiee.com/shortUrl/tM5-798129 in Firefox
- Choose "open with Korganize"
- Then Korganizer pops-up, select "Merge into existing calendar"
- Korganizer then crashes
Comment 5 Allen Winter 2021-12-07 17:45:51 UTC
This should be fixed upstream in libical commit 9246dc6317bcccba8661515820f77980bae1a4fe

You'll need to wait for the libical 3.0.12 release (coming soon) to be updated with your distribution.
Comment 6 Allen Winter 2021-12-07 17:47:41 UTC
*** Bug 446394 has been marked as a duplicate of this bug. ***