General discussion on installation and configuration of SOGo

Text archives Help


[SOGo] Problem with recurring events [was Re: stack smashing detected]


Chronological Thread 
  • From: Luca Olivetti < >
  • To:
  • Subject: [SOGo] Problem with recurring events [was Re: stack smashing detected]
  • Date: Mon, 30 Aug 2010 16:11:47 +0200

En/na Luca Olivetti ha escrit:
En/na Wolfgang Sourdeau ha escrit:

Any hint?

There is likely one particular event that causes the issue. What you might want to do is to extract the event in question. Since the crash occurs in the reccurence code, you need to search for an element in your boss's tables where the c_cycleinfo column is not null and where the c_creationdate column is recent enough.


There is a bunch of those, may I assume that, since the crash occurs in iCalMonthlyRecurrenceCalculator, that the event causing the problem is a monthly one?
The columns c_startdate and c_enddate are unix timestamps?
Finally, I don't think that the c_creationdate matters, after all it still works with the version of sogo that I'm running now, so it could be and old entry.

If you wish, you could send us a dump of your boss's tables so that we can debug this from here...

If I cannot debug it myself I'll ask for permission, thanks.

Been away from sogo for a while. Now I'm testing 1.3.1.

I took a backup with sogo-tool and restored it in a test server with
1.3.1 (using -F to use the same data).

There's no problem with the stack now (but note that the test server is i586 while the production server is x86_64) but I still have problems with recurring events.

While doing the restore, I see a bunch of these messages:

2010-08-30 15:19:25.843 sogo-tool[18846] restoring record '1073742958'
2010-08-30 15:19:25.850 sogo-tool[18846] File NSCalendarDate.m: 1440. In
[NSCalendarDate -initWithYear:month:day:hour:minute:second:timeZone:]
invalid month given - 4294967295

This is record 1073742958 in the backup file (the summary is not the
original one but it doesn't matter, I tested it both ways):

c_content = "BEGIN:VCALENDAR
VERSION:1.0
TZ:+0100
DAYLIGHT:TRUE;+0200;20090329T020000;20091025T030000;;
DAYLIGHT:TRUE;+0200;20100328T020000;20101031T030000;;
DAYLIGHT:TRUE;+0200;20110327T020000;20111030T030000;;
DAYLIGHT:TRUE;+0200;20120325T020000;20121028T030000;;
DAYLIGHT:TRUE;+0200;20130331T020000;20131027T030000;;
DAYLIGHT:TRUE;+0200;20140330T020000;20141026T030000;;
DAYLIGHT:TRUE;+0200;20150329T020000;20151025T030000;;
BEGIN:VEVENT
UID:1073742958
X-FUNAMBOL-ALLDAY:1
DTSTART:20090522
DTEND:20090523
X-MICROSOFT-CDO-BUSYSTATUS:0
CATEGORIES:
DESCRIPTION:
LOCATION:
STATUS:0
SUMMARY:XXXXXX
CLASS:PUBLIC
RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=22;COUNT=0
EXDATE:2009-11-22;2010-05-22
RDATE:
X-FUNAMBOL-AALARMOPTIONS:4
END:VEVENT
END:VCALENDAR
";
c_name = 1073742958;
},



When I try to edit the event in the web interface, it opens the window
where the confirmation message should appear ("edit this instance",
"edit all instances"), but it either times out or it shows that the object doesn't exist right away. This is an example of a time out:

2010-08-30 16:04:52.371 sogod[19835] File NSCalendarDate.m: 1440. In [NSCalendarDate -initWithYear:month:day:hour:minute:second:timeZone:] invalid month given - 4294967295
2010-08-30 16:04:52.420 sogod[19836] File NSCalendarDate.m: 1440. In [NSCalendarDate -initWithYear:month:day:hour:minute:second:timeZone:] invalid month given - 4294967295
2010-08-30 16:05:16.283 sogod[18146] File NSCalendarDate.m: 1440. In [NSCalendarDate -initWithYear:month:day:hour:minute:second:timeZone:] invalid month given - 4294967295
2010-08-30 16:05:17.936 sogod[18152] File NSCalendarDate.m: 1440. In [NSCalendarDate -initWithYear:month:day:hour:minute:second:timeZone:] invalid month given - 4294967295
127.0.0.1 - - [30/Aug/2010:16:05:47 GMT] "POST /SOGo/so/luca/Calendar/personal/1073742958/occurence1285106400/view HTTP/1.1" 404 208/0 288.824 - - 0
Aug 30 16:05:48 sogod: SOGo watchdog [18145]: <0x0x8281900[WOWatchDogChild]> child 18147 exited
127.0.0.1 - - [30/Aug/2010:16:05:51 GMT] "GET /SOGo/so/luca/Calendar/personal/1073742958/occurence1285106400/confirmEditing HTTP/1.1" 404 208/0 291.575 - - 0
Aug 30 16:05:52 sogod: SOGo watchdog [18145]: <0x0x82818d0[WOWatchDogChild]> child 18148 exited
2010-08-30 16:07:52.647 sogod[19836] File NSCalendarDate.m: 1440. In [NSCalendarDate -initWithYear:month:day:hour:minute:second:timeZone:] invalid month given - 4294967295
2010-08-30 16:07:52.754 sogod[19835] File NSCalendarDate.m: 1440. In [NSCalendarDate -initWithYear:month:day:hour:minute:second:timeZone:] invalid month given - 4294967295
<0x0xa1eae30[WOHttpTransaction]> client disconnected during delivery of response for <WORequest[0x0xa1ba760]: method=POST uri=/SOGo/so/luca/Calendar/personal/1073742958/occurence1285106400/view app=SOGo rqKey=so rqPath=luca/Calendar/personal/1073742958/occurence1285106400/view> (len=208): the socket was shutdown
127.0.0.1 - - [30/Aug/2010:16:08:07 GMT] "POST /SOGo/so/luca/Calendar/personal/1073742958/occurence1285106400/view HTTP/1.1" 404 208/0 358.782 - - 0
Aug 30 16:08:08 sogod: SOGo watchdog [18145]: <0x0x8281930[WOWatchDogChild]> child 18146 exited
<0x0x9994458[WOHttpTransaction]> client disconnected during delivery of response for <WORequest[0x0x9412ef8]: method=GET uri=/SOGo/so/luca/Calendar/personal/1073742958/occurence1285106400/confirmEditing app=SOGo rqKey=so rqPath=luca/Calendar/personal/1073742958/occurence1285106400/confirmEditing> (len=208): the socket was shutdown
127.0.0.1 - - [30/Aug/2010:16:08:08 GMT] "GET /SOGo/so/luca/Calendar/personal/1073742958/occurence1285106400/confirmEditing HTTP/1.1" 404 208/0 358.819 - - 0
Aug 30 16:08:09 sogod: SOGo watchdog [18145]: <0x0x82818a0[WOWatchDogChild]> child 18152 exited
Aug 30 16:08:09 sogod: SOGo watchdog [18145]: <0x0x8264f20[WOWatchDog]> all children exited. We now terminate.


Now, if I try to edit it with lightning (still using 0.9.9), I can edit
it but still no joy in the web interface, *unless* I change the
recurrence from custom to monthly, then I can edit it from the web again.


Other (I think unrelated) messages I see in sogo.log when I load the calendar (monthly) view:

SOGo watchdog [18148]: [ERROR] <0x0xb7e1bf00[iCalRecurrenceCalculator]>
unsupported rrule frequency: <0x983b4c8[iCalRecurrenceRule]:rrule

1 values: {
W1 TU #0
}>
SOGo watchdog [18148]: [ERROR] <0x0xb7e1bf00[iCalRecurrenceCalculator]>
unsupported rrule frequency: <0x8ecc2f0[iCalRecurrenceRule]:rrule

1 values: {
W1 FR #0
}>



Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007




Archive powered by MHonArc 2.6.16.

Top of page