Closed
Bug 164907
Opened 24 years ago
Closed 21 years ago
Erroneous calendar files ( *.ics ) should not crash calendar
Categories
(Calendar :: Internal Components, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: mostafah, Assigned: mostafah)
References
Details
Attachments
(2 files)
Calendar should handle all erroneous files and should not crash when it's unable
to parse them. Feel free to attach any .ics file that is causing your calendar
to crash to this bug. I'll start with the first from libical's zoneinfo directory.
| Assignee | ||
Comment 1•24 years ago
|
||
This .ics file seems even to ba a valid one but it's currently causing calendar
to crash.
Comment 2•24 years ago
|
||
And here it comes:
1. NewServer
Name: GermanHolidays
File Location: http://www.mozilla.org/projects/calendar/GermanHolidays.ics (I
know that
the URL is wrong)
2. Hit OK
3. Check/Uncheck GermanHolidays
this causes the complete Mozilla to crash.
and here is the GDB output:
##############################################################################
oeICalImpl::GetServer()
oeICalContainerImpl::GetAllEvents()
oeICalImpl::GetAllEvents()
oeICalContainerImpl::GetEventsForMonth()
oeICalImpl::GetEventsForMonth()
oeICalContainerImpl::AddCalendar(/root/.mozilla/root/cbyxqucd.slt/RemoteCalendar2.ics)
oeICalImpl::oeICalImpl()
oeICalImpl::SetServer(/root/.mozilla/root/cbyxqucd.slt/RemoteCalendar2.ics)
icalerror.c:57: PARSE: Failed to parse a part of an iCal component
mozilla-bin: icalerror.c:58: icalerror_set_errno: Assertion `0' failed.
Program received signal SIGABRT, Aborted.
[Switching to Thread 1024 (LWP 24026)]
0x406d62d1 in kill () from /lib/libc.so.6
###################### BACKTRACE #############################################
#0 0x406d62d1 in kill () from /lib/libc.so.6
#1 0x404a113b in raise (sig=6) at signals.c:65
#2 0x406d7703 in abort () from /lib/libc.so.6
#3 0x406cf8bf in __assert_fail () from /lib/libc.so.6
#4 0x402adb66 in icalerror_set_errno (x=ICAL_PARSE_ERROR) at icalerror.c:58
#5 0x402de401 in icalfileset_read_file (cluster=0x9d1bde0, mode=436)
at icalfileset.c:196
#6 0x402de2fe in icalfileset_new_open (
path=0x9d50fa0 "/root/.mozilla/root/cbyxqucd.slt/RemoteCalendar2.ics",
flags=66, mode=436) at icalfileset.c:143
#7 0x402de1d5 in icalfileset_new (
path=0x9d50fa0 "/root/.mozilla/root/cbyxqucd.slt/RemoteCalendar2.ics")
at icalfileset.c:88
#8 0x08f5eb61 in oeICalImpl::SetServer ()
#9 0x08f626f8 in oeICalContainerImpl::AddCalendar ()
#10 0x4041d848 in XPTC_InvokeByIndex () from /usr/lib/mozilla/libxpcom.so
#11 0x0857a222 in XPCWrappedNative::CallMethod ()
#12 0x0857f225 in XPC_WN_CallMethod ()
#13 0x4031cefd in js_Invoke () from /usr/lib/mozilla/libmozjs.so
#14 0x40324605 in js_Interpret () from /usr/lib/mozilla/libmozjs.so
#15 0x4031cf50 in js_Invoke () from /usr/lib/mozilla/libmozjs.so
#16 0x4031d168 in js_InternalInvoke () from /usr/lib/mozilla/libmozjs.so
#17 0x402fc86e in JS_CallFunctionValue () from /usr/lib/mozilla/libmozjs.so
#18 0x08735fda in nsJSContext::CallEventHandler ()
#19 0x087601b9 in nsJSEventListener::HandleEvent ()
#20 0x08790af1 in nsEventListenerManager::HandleEventSubType ()
#21 0x0879116b in nsEventListenerManager::HandleEvent ()
#22 0x0883e190 in nsXULElement::HandleDOMEvent ()
#23 0x089905f5 in PresShell::HandleEventInternal ()
#24 0x08990534 in PresShell::HandleEventWithTarget ()
#25 0x08799b94 in nsEventStateManager::CheckForAndDispatchClick ()
#26 0x08797e87 in nsEventStateManager::PostHandleEvent ()
#27 0x089906c5 in PresShell::HandleEventInternal ()
#28 0x089904b7 in PresShell::HandleEvent ()
#29 0x0876caee in nsViewManager::HandleEvent ()
#30 0x087629ac in nsView::HandleEvent ()
#31 0x0876c191 in nsViewManager::DispatchEvent ()
#32 0x08762517 in nsFocusController::SetPopupNode ()
#33 0x0878858b in nsWidget::DispatchEvent ()
#34 0x087884a8 in nsWidget::DispatchWindowEvent ()
#35 0x087885fc in nsWidget::DispatchMouseEvent ()
#36 0x08788ee3 in nsWidget::OnButtonReleaseSignal ()
#37 0x087720ae in nsWindow::OnButtonReleaseSignal ()
#38 0x087722a0 in nsWindow::HandleGDKEvent ()
#39 0x087844ea in handle_gdk_event ()
#40 0x08784309 in handle_gdk_event ()
#41 0x405f6813 in gdk_wm_protocols_filter () from /usr/lib/libgdk-1.2.so.0
#42 0x40627030 in g_main_dispatch (dispatch_time=0xbffff640) at gmain.c:656
#43 0x4062766f in g_main_iterate (block=1, dispatch=1) at gmain.c:877
#44 0x4062810b in g_main_run (loop=0x95b5160) at gmain.c:935
#45 0x405433bb in gtk_main () from /usr/lib/libgtk-1.2.so.0
#46 0x0877d4bd in nsAppShell::Run ()
#47 0x08c2bc6b in nsAppShellService::Run ()
#48 0x0855db41 in getCountry ()
#49 0x0855e3e7 in main ()
#50 0x406c51f0 in __libc_start_main () from /lib/libc.so.6
Summary: Erroneous calendar files ( *.ics ) should not crash calendar → Erroneous calendar files ( *.ics ) should not crash calendar
Comment 3•24 years ago
|
||
*** Bug 156243 has been marked as a duplicate of this bug. ***
Comment 4•24 years ago
|
||
The last event caused the problem. Calander crashed just after I entered it.
Comment 5•21 years ago
|
||
This bug seems closely related to the newer bug 221073. Running the test
calendars attached/suggested on Calendar 2005011112 and Sunbird 20050203 yielded
the same results:
erroneous German Calendar link (comment #2): Calendar/Sunbird fail silently
(import no events)-See bug 221073
'An .ics file which crashes calendar': Sunbird js console shows
'Error: Error in parsing value for property 'background-color'. Declaration
dropped.
Source File: chrome://calendar/content/localCalDialog.xul
Line: 0
Error: Error in parsing value for property 'background-color'. Declaration dropped.
Source File: chrome://calendar/skin/calendar.css
Line: 0'
but does not crash. No events imported. (Calendar imports no events, js console
unavailable)
'ICS Data file': Sunbird shows same errors as in previous case, but imports many
events (including 2 alarms).
Importing these files, as opposed to opening them, was also performed without a
crash.
Due to the varied nature of these files/descriptions, I'm not sure under what
circumstances this bug could be closed, but I thought I should update the file
regardless.
Comment 6•21 years ago
|
||
Tested again, this time on Linux. (Previous test on WinXP.) None of the
calendars listed here crashed calendar for me. The bug is over two years old
and none of the reporters have responded. Marking worksforme. If anyone
disagrees, they should re-open this bug and attach the problematic calendar.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Comment 7•20 years ago
|
||
Mass move of libxpical bugs to the Internal Components, per ctalbert.
Component: libxpical → Internal Components
Comment 8•20 years ago
|
||
The bugspam monkeys have been set free and are feeding on Calendar :: Internal Components. Be afraid for your sanity!
QA Contact: colint → base
You need to log in
before you can comment on or make changes to this bug.
Description
•