Summary | Horde_Mapi winmail.dat file of 800kB produces memory leak |
Queue | IMP |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | admin (at) layertec (dot) de |
Created | 12/01/2017 (2812 days ago) |
Due | |
Updated | 03/15/2018 (2708 days ago) |
Assigned | 12/08/2017 (2805 days ago) |
Resolved | 12/24/2017 (2789 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
same issue. It says it is not a bug in IMP or Horde_Mapi but the
BigInteger-Implementation of PEAR. I just tried to install
php-bcmath (7.0.19-1) and it seems to work fine now.
State ⇒ Resolved
State ⇒ Assigned
Assigned to Michael Rubinsky
Sure. It was originally written that way to begin with, but was
changed to Math_BigInteger (which will use bcmath if available) at the
request of Slusarz.
State ⇒ Feedback
Horde_Mapi? IIRC we use it from HAS only, and that is optional anyway.
I'd really like to get rid of Math_BigInteger, or fall back to using
phpsec's version.
In the meantime, I found another ticket that seems to mention the same
issue. It says it is not a bug in IMP or Horde_Mapi but the
BigInteger-Implementation of PEAR. I just tried to install php-bcmath
(7.0.19-1) and it seems to work fine now.
It's just a bit hard to figure out the behaviour when there are
multiple possible implementations.
I learned to get rid of PEAR implementations wherever possible.
The issue is solved for me now.
Can you provide an example message?
2017-12-01T15:48:36+01:00 EMERG: HORDE [imp] Allowed memory size of
11610612736 bytes exhausted (tried to allocate 1207959552 bytes)
[pid 15047 on line 1090 of "/usr/share/php/Math/BigInteger.php"]
triggers this behaviour ;-)
instead of PEAR math, if it is installed?
Can you provide an example message?
2017-12-01T15:48:36+01:00 EMERG: HORDE [imp] Allowed memory size of
11610612736 bytes exhausted (tried to allocate 1207959552 bytes) [pid
15047 on line 1090 of "/usr/share/php/Math/BigInteger.php"]
I wonder, if imap or the Horde_Mapi extension might use php_bcmath
instead of PEAR math, if it is installed?
State ⇒ Feedback
Priority ⇒ 1. Low
Can you provide an example message?
Priority ⇒ 3. High
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Horde_Mapi winmail.dat file of 800kB produces memory leak
Type ⇒ Bug
winmail.dat file with a size of approx. 800kB leads to a memory leak.
The PHP instance used by horde may use up to 1.5GB memory.
2017-12-01T15:48:36+01:00 EMERG: HORDE [imp] Allowed memory size of
1610612736 bytes exhausted (tried to allocate 1207959552 bytes) [pid
15047 on line 1090 of "/usr/share/php/Math/BigInteger.php"]