[php-maint] Failed to upgrade from deb7u2 to deb7u3
Clement Wong
mail at clement.hk
Fri Dec 13 23:45:55 UTC 2013
Hi guys,
Please review this patch for wheezy branch or tell me who to talk to, it has been a problem for us every time when we do upgrade.
--- php5.orig/ext/pdo_dblib/dblib_stmt.c 2013-12-10 21:43:59.969271857 +0000
+++ php5/ext/pdo_dblib/dblib_stmt.c 2013-12-10 21:59:58.832769418 +0000
@@ -98,6 +98,9 @@
{
pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data;
+ efree(stmt->columns);
+ stmt->columns = NULL;
+
efree(S);
return 1;
Clement
On Dec 11, 2013, at 12:24 AM, Clement Wong <mail at clement.hk> wrote:
> Hi list,
>
> Please review & push to wheezy.
>
> BR,
> Clement Wong
>
>
>
> On Tue, Dec 10, 2013 at 3:24 AM, Clement Wong <mail at clement.hk> wrote:
> Hi list,
>
> The problem seem to be from the changes in ./ext/pdo_dblib/dblib_stmt.c.
> I reverted the changes in this file and everything works again.
> Note that this problem still occurs under 5.4.4-14+deb7u5.
> I could take a deeper look tomorrow if require.
>
> Clement
>
> On Jul 24, 2013, at 9:19 AM, Ondřej Surý <ondrej at debian.org> wrote:
>
>> Hi Clement,
>>
>> there was a change introduced in sybase part to fix #711980 (bugs.debian.org/711980).
>>
>> And this patch:
>> http://anonscm.debian.org/gitweb/?p=pkg-php/php.git;a=blob;f=debian/patches/fix-segfault-when-using-passwords-longer-than-30-chars.patch;h=2d7adbb42d468d124bf7a133429682b2f376cfe3;hb=refs/heads/master-wheezy
>>
>> was introduced to fix the problem.
>>
>> I don't see any obvious problem in the patch, but you find it.
>>
>> I would rather fix both problems than drop the patch.
>>
>> Ondrej
>>
>> On Fri, Jul 19, 2013 at 10:33 PM, Clement Wong <mail at clement.hk> wrote:
>> Hi guys,
>>
>> After I upgraded from deb7u2 to deb7u3, our web servers went down for almost a day, the problem seem to come from PDO or php5-sybase, we are using PDO to connect to MSSQL server, and any query will try to allocate crazy amount of memory even if it is a tiny query.
>> I have pages of these log, and I've replaced our domain to test. :)
>>
>> [Fri Jul 19 10:30:01 2013] [error] [client 87.119.183.106] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140221246707320 bytes) in Unknown on line 0, referer: https://order.test.com/fi/orders.php
>> [Fri Jul 19 10:30:01 2013] [error] [client 87.119.183.106] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140221246629864 bytes) in Unknown on line 0, referer: https://order.test.com/fi/orders.php
>> [Fri Jul 19 10:30:02 2013] [error] [client 87.119.183.106] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140221246694264 bytes) in Unknown on line 0, referer: https://order.test.com/fi/orders.php
>> [Fri Jul 19 10:30:07 2013] [error] [client 83.30.84.94] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140221247174360 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php?action=status
>> [Fri Jul 19 10:30:15 2013] [error] [client 95.40.136.82] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140221246764120 bytes) in Unknown on line 0
>> [Fri Jul 19 10:30:25 2013] [error] [client 10.1.4.17] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140221246756744 bytes) in Unknown on line 0, referer: https://order.test.com/fi/orders.php
>> [Fri Jul 19 10:30:35 2013] [error] [client 10.1.4.17] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140221246630056 bytes) in Unknown on line 0, referer: https://order.test.com/fi/orders.php
>> [Fri Jul 19 10:30:58 2013] [error] [client 83.30.84.94] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140221247460344 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php?action=status
>> [Fri Jul 19 10:31:04 2013] [error] [client 83.30.84.94] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140221246542728 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>> [Fri Jul 19 10:31:22 2013] [error] [client 10.1.4.17] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687102539624 bytes) in Unknown on line 0, referer: https://order.test.com/fi/orders.php
>> [Fri Jul 19 10:31:23 2013] [error] [client 164.126.105.188] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687102539096 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>> [Fri Jul 19 10:31:23 2013] [error] [client 164.126.105.188] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687102538936 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>> [Fri Jul 19 10:31:24 2013] [error] [client 164.126.105.188] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687102539224 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>> [Fri Jul 19 10:31:24 2013] [error] [client 164.126.105.188] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687102531608 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>> [Fri Jul 19 10:31:24 2013] [error] [client 164.126.105.188] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687102531608 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>> [Fri Jul 19 10:31:58 2013] [error] [client 77.253.200.58] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687102514104 bytes) in Unknown on line 0
>> [Fri Jul 19 10:32:54 2013] [error] [client 164.126.105.188] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687102577800 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>> [Fri Jul 19 10:32:59 2013] [error] [client 164.126.105.188] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687103209832 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>> [Fri Jul 19 10:33:13 2013] [error] [client 164.126.105.188] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687100397736 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>> [Fri Jul 19 10:33:22 2013] [error] [client 164.126.105.188] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687102813736 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>> [Fri Jul 19 10:33:29 2013] [error] [client 164.126.105.188] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687102890712 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>> [Fri Jul 19 10:34:16 2013] [error] [client 10.1.4.17] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687103088264 bytes) in Unknown on line 0, referer: https://order.test.com/fi/orders.php
>> [Fri Jul 19 10:34:20 2013] [error] [client 164.126.105.188] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 139687102814152 bytes) in Unknown on line 0, referer: https://order.test.com/en/orders.php
>>
>>
>> Thanks,
>> Clement Wong
>>
>> _______________________________________________
>> pkg-php-maint mailing list
>> pkg-php-maint at lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
>>
>>
>>
>> --
>> Ondřej Surý <ondrej at sury.org>
>
>
> <fix-sybase-oversize-memory-allocation.patch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20131214/e97718e7/attachment-0001.html>
More information about the pkg-php-maint
mailing list