[imp] Support question/possible bug report on ActiveSync

Wolfgang Borgsmüller wb at smartware.pt
Wed Dec 13 12:03:32 UTC 2017


Hello,

I am running a mail server with horde and have ActiveSync enabled. 
Clients connecting to ActiveSync are MS Outlook 2016 clients. I think I 
am running into a bug for various reasons:

- Horde is running fine, all but one mailboxes work perfectly over 
ActiveSync
- Only one Mailbox does not work over ActiveSync
- On a fresh client (Outlook 2016) mailbox, sync will start and than 
hang after a few messages being synced
- CPU usage spikes to 99% and I get this error message in apache log: 
Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to 
allocate 72 bytes) in /usr/share/php/Math/BigInteger.php on line 1089 
(full stack trace below)

So my guess is: there must be an offending message which causes 
ActiveSync to hang on that line. What do you think? Should I submit a 
bug report?

Another question: I'd like to apply a quick fix in order to get the 
customer's Outlook up and running. My idea is to var_dump some 
information into a temporary file, identify that message and move that 
message out of the way in order to be able to proceed. So where should I 
hook into this chain (see call stack below)?

Any help would be highly appreciated. I am running the latest version of 
Horde on a fully updated ubuntu 16 with apache.

Thank you for your attention
Wolfgang


Full stack trace of error:

[Wed Dec 13 11:04:24.161110 2017] [fcgid:warn] [pid 20479] [client 
87.103.95.246:54120] mod_fcgid: stderr: PHP
(omitting prefix in further lines)
Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to 
allocate 72 bytes) in /usr/share/php/Math/BigInteger.php on line 1089
Stack trace:
1. {main}() /usr/share/horde/rpc.php:0
2. Horde_Rpc_ActiveSync->getResponse() /usr/share/horde/rpc.php:160
3. Horde_ActiveSync->handleRequest() 
/usr/share/php/Horde/Rpc/ActiveSync.php:143
4. Horde_ActiveSync_Request_Base->handle() 
/usr/share/php/Horde/ActiveSync.php:839
5. Horde_ActiveSync_Request_Sync->_handle() 
/usr/share/php/Horde/ActiveSync/Request/Base.php:249
6. Horde_ActiveSync_Connector_Exporter_Sync->sendNextChange() 
/usr/share/php/Horde/ActiveSync/Request/Sync.php:470
7. Horde_ActiveSync_Connector_Exporter_Sync->_sendNextChange() 
/usr/share/php/Horde/ActiveSync/Connector/Exporter/Sync.php:68
8. Horde_Core_ActiveSync_Driver->getMessage() 
/usr/share/php/Horde/ActiveSync/Connector/Exporter/Sync.php:491
9. Horde_ActiveSync_Imap_Adapter->getMessages() 
/usr/share/php/Horde/Core/ActiveSync/Driver.php:1434
10. Horde_ActiveSync_Imap_Adapter->_buildMailMessage() 
/usr/share/php/Horde/ActiveSync/Imap/Adapter.php:410
11. Horde_ActiveSync_Imap_EasMessageBuilder->getMessageObject() 
/usr/share/php/Horde/ActiveSync/Imap/Adapter.php:811
12. Horde_ActiveSync_Imap_EasMessageBuilder_Mime->_buildBody() 
/usr/share/php/Horde/ActiveSync/Imap/EasMessageBuilder.php:114
13. Horde_ActiveSync_Imap_EasMessageBuilder_Mime->_buildMessage() 
/usr/share/php/Horde/ActiveSync/Imap/EasMessageBuilder/Mime.php:50
14. 
Horde_ActiveSync_Imap_EasMessageBuilder_Mime->_buildMultipartWrapper() 
/usr/share/php/Horde/ActiveSync/Imap/EasMessageBuilder/Mime.php:94
15. Horde_ActiveSync_Imap_Message->getAttachmentsMimeParts() 
/usr/share/php/Horde/ActiveSync/Imap/EasMessageBuilder/Mime.php:186
16. Horde_ActiveSync_Imap_Message->_decodeTnefData() 
/usr/share/php/Horde/ActiveSync/Imap/Message.php:415
17. Horde_Compress_Tnef->decompress() 
/usr/share/php/Horde/ActiveSync/Imap/Message.php:374
18. Horde_Compress_Tnef->_decodeAttachment() 
/usr/share/php/Horde/Compress/Tnef.php:300
19. Horde_Compress_Tnef->_extractMapiAttributes() 
/usr/share/php/Horde/Compress/Tnef.php:593
20. Horde_Compress_Tnef->decompress() 
/usr/share/php/Horde/Compress/Tnef.php:532
21. Horde_Compress_Tnef->_decodeMessageProperty() 
/usr/share/php/Horde/Compress/Tnef.php:295
22. Horde_Mapi::filetimeToUnixtime() 
/usr/share/php/Horde/Compress/Tnef.php:673
23. Horde_Mapi::_win64ToUnix() /usr/share/php/Horde/Mapi.php:145
24. Math_BigInteger->subtract() /usr/share/php/Horde/Mapi.php:193
25. Math_BigInteger->_subtract() /usr/share/php/Math/BigInteger.php:1002



More information about the imp mailing list