[horde] [Tickets #14550] Re: Active sync via outlook resulting in memory exhausted

Michael J Rubinsky mrubinsk at horde.org
Wed Feb 1 20:03:44 UTC 2017


Quoting Michael Klein <Michael.Klein at hypaerion.net>:

> Isn’t there a possibility to have biginteger call out something like  
> subject or a mailnumber?

No. The only place that code is used is when decoding MAPI structures  
such as TNEF attachments. I think there might be some PGP related code  
that uses it, but that wouldn't be called from ActiveSync.


> From: Porter Rawls [mailto:prrawls at bastmail.net]
> Sent: Mittwoch, 1. Februar 2017 20:43
> To: Michael J Rubinsky <mrubinsk at horde.org>
> Cc: Michael Klein <Michael.Klein at hypaerion.net>; horde at lists.horde.org
> Subject: Re: [horde] [Tickets #14550] Re: Active sync via outlook  
> resulting in memory exhausted
>
>
>
> Thanks for that explaination!
>
> My error looks to the same.
> HORDE[21601]: Allowed memory size of 536870912 bytes exhausted  
> (tried to allocate 603979776 bytes) [pid 21601 on line 1090 of  
> "/usr/share/php/Math/BigInteger.php"]
>
> This is just opening that mailbox mind you all others are fine in outlook.
>
>
>
> Quoting Michael J Rubinsky <mrubinsk at horde.org <mailto:mrubinsk at horde.org> >:
>
> Quoting Porter Rawls <prrawls at bastmail.net <mailto:prrawls at bastmail.net> >:
>
>
>
> For what its worth i have this same issue on one of my email boxes  
> with 10880 messages in it.  I;ve tried to increase the php memory in  
> the php.ini file, (up to 1GB) but no avail all the memory is  
> consumed.  I just have to use the web client to use that mailbox.   
> It seems (i think) that outlooks tries and enumerate all the emails  
> in the mailbox before a sync and this causes a out of memory  
> condition on the server.  Don't know if this is a "bug" or outlook  
> just being outlook...
>
> Thanks for the feedback.
>
> This isn't how EAS works though. The only time EVERY email message  
> in a mailbox is listed is during the first few syncs (and we split  
> this up in ordder to avoid exactly the type of issue you describe).
>
> However, depending on the IMAP server capabilities we must store in  
> the database backend either the list of email UIDs OR a list of UIDs  
> together with flag information for every message. Perhaps in your  
> case loading this data is what the server is hitting up against.
>
> The original report indicates a code path that is only reached for  
> certain types of attachments (TNEF or DAT).
>
>
>
>
> Quoting Michael J Rubinsky <mrubinsk at horde.org <mailto:mrubinsk at horde.org> >:
>
>
>
> Quoting Michael Klein <Michael.Klein at hypaerion.net  
> <mailto:Michael.Klein at hypaerion.net> >:
>
>
>
> Hmm,
>
> I think it is related to some old mails I have send that include  
> attachments...
>
> Here is an example.. The attachment is bigger than 10 MB. I know  
> that active sync always had issues with sending these big files.  
> What is interesting is that now I also have issues with syncing  
> these mails.
>
> This email syncs perfectly fine on all my test devices.
>
> Additionally, there is nothing in this email that would have  
> triggered the code where the memory exhaustion was logged in your  
> original report.
>
>
>
> Hope this is finally the mail that is causing the issue..
>
> <SNIP link to email file>
>
>
>
> -----Original Message-----
> From: noreply at bugs.horde.org <mailto:noreply at bugs.horde.org>   
> [mailto:noreply at bugs.horde.org <mailto:noreply at bugs.horde.org> ]
> Sent: Montag, 23. Januar 2017 22:24
> To: michael.klein at hypaerion.net <mailto:michael.klein at hypaerion.net>
> Subject: [Tickets #14550] Re: Active sync via outlook resulting in  
> memory exhausted
>
> DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
>
> Ticket URL: https://bugs.horde.org/ticket/14550
> ------------------------------------------------------------------------------
> Ticket             | 14550
> Updated By         | Michael Rubinsky <mrubinsk at horde.org  
> <mailto:mrubinsk at horde.org> >
> Summary            | Active sync via outlook resulting in memory exhausted
> Queue              | Horde Framework Packages
> Type               | Bug
> State              | No Feedback
> Priority           | 2. Medium
> Milestone          |
> Patch              |
> Owners             | Michael Rubinsky
> ------------------------------------------------------------------------------
>
> Michael Rubinsky <mrubinsk at horde.org <mailto:mrubinsk at horde.org> >  
> (2017-01-23 21:23) wrote:
>
>
>
> I think i nailed it down... Looks like a whole bunch of mails which
> ran throu a yahoo group some very long time ago were the rootcause..
>
> i send you one example via mail.
>
> The sample email is sync'd with no issues to all of my test clients  
> - including Outlook. No display issues and no out of memory issues.
> Additionaly, the email you sent me did not contain any TNEF or DAT  
> attachments, which is the ONLY way the code where the memory  
> exhaustion occurred would have been called.
>
>
>
> I have removed the mail from the trash.. Still the error occurres. I
> have pulled a new report under the same address as before. As this
> mail was related to a calendar entry, do you think it might be
> related to the entry in the calendar?
>
> Yes, meeting requests are sometimes sent as TNEF or DAT file
> attachments from Outlook.
>
>
>
> I have setup a new sync with a new device. But the only thing i
> see until the
>
> HORDE[5838]: Allowed memory size of 134217728 bytes exhausted
> (tried to allocate 150994944 bytes) [pid 5838 on line 1090 of
> "/usr/share/php/Math/BigInteger.php"]
>
> You should be looking at the sync log, not the horde log and should
> see a LOT more than this.
>
>
>
> Can i send you the log file so you can have a look? I really can
> not find anything :-(
>
> You can send me the sync log, yes but I will also probably need an
> email that triggers this. As I said, it's most likely an email with
> a TNEF or *.DAT file attachment.
>
> --
> mike
> The Horde Project
> http://www.horde.org
> https://www.facebook.com/hordeprojecthttps://www.twitter.com/hordeproject  
> <https://www.facebook.com/hordeprojecthttps:/www.twitter.com/hordeproject>
>
> --
> - Porter
>
> --
> mike
> The Horde Project
> http://www.horde.org
> https://www.facebook.com/hordeprojecthttps://www.twitter.com/hordeproject  
> <https://www.facebook.com/hordeprojecthttps:/www.twitter.com/hordeproject>
>
>
>
> - Porter



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3282 bytes
Desc: S/MIME Signature
URL: <https://lists.horde.org/archives/horde/attachments/20170201/a312bbd2/attachment.bin>


More information about the horde mailing list