Uncaught ArithmeticError: Bit shift by negative number

We’ve hit another snag in our transition from Zarafa to Kopano. This time its a Z-Push error in the log. There doesn’t seem to be any big negative effects aside from the loop detection.

The user has ‘Short Ids’ enabled.

09/08/2017 12:41:04 [14407] [ERROR] [user] LoopDetection->ProcessLoopDetectionPreviousConnectionFailed(): Command 'Sync' at 09/08/2017 12:38:06 with pid '32482' terminated unexpectedly or is still running.
09/08/2017 12:41:04 [14407] [ERROR] [user] Please check your logs for this PID and errors like PHP-Fatals or Apache segmentation faults and report your results to the Z-Push dev team.
09/08/2017 12:41:05 [14407] [FATAL] [user] Fatal error: /usr/share/z-push/backend/kopano/mapi/class.baserecurrence.php:841 - Uncaught ArithmeticError: Bit shift by negative number in /usr/share/z-push/backe
nd/kopano/mapi/class.baserecurrence.php:841
Stack trace:
#0 /usr/share/z-push/backend/kopano/mapi/class.recurrence.php(423): BaseRecurrence->saveRecurrence()
#1 /usr/share/z-push/backend/kopano/mapiprovider.php(1387): Recurrence->setRecurrence(Array, Array)
#2 /usr/share/z-push/backend/kopano/mapiprovider.php(1096): MAPIProvider->setAppointment(Resource id #27, Object(SyncAppointment))
#3 /usr/share/z-push/backend/kopano/importer.php(433): MAPIProvider->SetMessage(Resource id #27, Object(SyncAppointment))
#4 /usr/share/z-push/backend/kopano/kopanochangeswrapper.php(357): ImportChangesICS->ImportMessageChange('U684eb:2a133d19...', Object(SyncAppointment))
#5 /usr/share/z-push/lib/request/sync.php(1434): KopanoChangesWrapper->ImportMessageChange('U684eb:2a133d19...', Object(SyncAppointment))
#6 /usr/share/z-push/lib/request/sync.php(508): Sync->importMessage(Object(SyncParameters), Array, 'Modify', Object(SyncAppointment), false, ' (1)

versions:
kopano-server/stable,now 8.3.2.15-9.1 amd64 [installed,automatic]
z-push-kopano/stable,now 2.3.7+0 all [installed]

Extra info
UserAgent: Outlook/15.0 (15.0.4937.1000; C2R; x86)

WBXML fragment


[WBXML] [user] [08e...b35] I        <POOMCAL:StartTime>
[WBXML] [user] [08e...b35] I         20170425T070000Z
[WBXML] [user] [08e...b35] I        </POOMCAL:StartTime>
[WBXML] [user] [08e...b35] I        <POOMCAL:Subject>
[WBXML] [user] [08e...b35] I         [redacted]
[WBXML] [user] [08e...b35] I        </POOMCAL:Subject>
[WBXML] [user] [08e...b35] I        <POOMCAL:UID>
[WBXML] [user] [08e...b35] I          ...
[WBXML] [user] [08e...b35] I        </POOMCAL:UID>
[WBXML] [user] [08e...b35] I        <POOMCAL:EndTime>
[WBXML] [user] [08e...b35] I         20170425T073000Z
[WBXML] [user] [08e...b35] I        </POOMCAL:EndTime>
[WBXML] [user] [08e...b35] I        <POOMCAL:Recurrence>
[WBXML] [user] [08e...b35] I         <POOMCAL:Type>
[WBXML] [user] [08e...b35] I          3
[WBXML] [user] [08e...b35] I         </POOMCAL:Type>
[WBXML] [user] [08e...b35] I         <POOMCAL:Interval>
[WBXML] [user] [08e...b35] I          1
[WBXML] [user] [08e...b35] I         </POOMCAL:Interval>
[WBXML] [user] [08e...b35] I         <POOMCAL:DayOfWeek>
[WBXML] [user] [08e...b35] I          4
[WBXML] [user] [08e...b35] I         </POOMCAL:DayOfWeek>
[WBXML] [user] [08e...b35] I         <POOMCAL:WeekOfMonth>
[WBXML] [user] [08e...b35] I          5
[WBXML] [user] [08e...b35] I         </POOMCAL:WeekOfMonth>
[WBXML] [user] [08e...b35] I         <POOMCAL:Until>
[WBXML] [user] [08e...b35] I          20180101T083000Z
[WBXML] [user] [08e...b35] I         </POOMCAL:Until>
[WBXML] [user] [08e...b35] I         <POOMCAL:CalendarType>
[WBXML] [user] [08e...b35] I          1
[WBXML] [user] [08e...b35] I         </POOMCAL:CalendarType>
[WBXML] [user] [08e...b35] I        </POOMCAL:Recurrence>

Hi talle,

I wasn’t able to reproduce it. Did it happen for this one particular appointment only? Was it created with Outlook with KOE?

Manfred