[horde] Allowed memory size exhausted (line 130 of "/usr/share/php/Horde/ErrorHandler.php")
Daniel Bareiro
daniel-listas at gmx.net
Thu Feb 14 22:53:44 UTC 2019
Hi, Michael.
On 14/2/19 17:18, Michael J Rubinsky wrote:
>>>> Some time ago I am observing this error in the syslog:
>>>>
>>>> ----------
>>>> HORDE: Allowed memory size of 134217728 bytes exhausted (tried to
>>>> allocate 106430464 bytes) [pid 700 on line 130 of
>>>> "/usr/share/php/Horde/ErrorHandler.php"]
>>>> ----------
>>>>
>>>> As I see, the block referred to in the error is the following:
>>>>
>>>> ----------
>>>> 125 if (is_object($error)) {
>>>> 126 echo '<h3>' .
>>>> Horde_Core_Translation::t("Details") . '</h3>';
>>>> 127 echo '<h4>' . Horde_Core_Translation::t("The
>>>> full error message is logged in Horde's log file, and is shown below
>>>> only to administrators. Non-a dministrative users will not see error
>>>> details.") . '</h4>';
>>>> 128 ob_flush();
>>>> 129 flush();
>>>> 130 echo '<div id="details"><pre>' .
>>>> htmlspecialchars(print_r($error, true)) . '</pre></div>';
>>>> 131 }
>>>> ----------
>>>>
>>>> Any information to fix it would be appreciated, since this error
>>>> appears
>>>> approximately every 10 min in the syslog. If there is any way I can
>>>> provide more debug information, please let me know.
>>>>
>>>> I'm using Horde Groupware 5.2.22.
>>> Adjust the PHP memory_limit to a higher number. For example,
>>>
>>> memory_limit = 256M
>> I have tried increasing the memory_limit values to 256M and 512M, but it
>> also increases the memory used with the same error:
>>
>> With memory_limit = 256M:
>>
>> HORDE: Allowed memory size of 268435456 bytes exhausted (tried to
>> allocate 240648192 bytes) [pid 9533 on line 130 of
>> "/usr/share/php/Horde/ErrorHandler.php"]
>>
>> With memory_limit = 512M:
>>
>> HORDE: Allowed memory size of 536870912 bytes exhausted (tried to
>> allocate 510394368 bytes) [pid 10118 on line 130 of
>> "/usr/share/php/Horde/ErrorHandler.php"]
>>
>>
>> I'm not sure but could it be that the format of any specific email is
>> causing this problem?
> If it has a .DAT or .TNEF attachment you probably don't have the bcmath
> php extension installed and are instead using the Math_BigInteger
> package, which is buggy and exhausts memory.
Installing the php7.0-bcmath package should be enough?
So far I was using PHP5, which was the version that had been installed
since Debian Jessie. So I just migrated to PHP7 to be able to install
the php7.0-bcmath package provided in Debian Stretch.
Unfortunately this did not make any difference.
A few seconds before the memory allocation error, syslog displays an
error on line 143 of /usr/share/php/Sabre/VObject/Reader.php. This is
the involved block:
----------
139 if (!$result) {
140 if ($options & self::OPTION_IGNORE_INVALID_LINES) {
141 return null;
142 } else {
143 throw new ParseException('Invalid VObject, line ' .
($lineNr+1) . ' did not follow the icalendar/vcard format');
144 }
145 }
----------
Does this suggest anything to you?
Thanks for your time.
Kind regards,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <https://lists.horde.org/archives/horde/attachments/20190214/e7b96670/attachment-0001.bin>
More information about the horde
mailing list