[PHP-BUG] Bug #63844 [NEW]: php-gtk out of memory error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PHP-BUG] Bug #63844 [NEW]: php-gtk out of memory error

Guthrie at att dot net
From:             gianluca dot faieta at gmail dot com
Operating system: Windows
PHP version:      Irrelevant
Package:          PHP-GTK related
Bug Type:         Bug
Bug description:php-gtk out of memory error

Description:
------------
Test script crashes after "eating" over 1GB of RAM.
php-cli.ini has memory_limit = -1
The script was run on Windows Server 2008 SP2 and Windows XP SP2 with same

error. Multiple PHP binaries were tested, with same outcome:

- http://emsmith.net/gtk/php-5.3.15-nts-php-gtk-snapshot.zip
- http://emsmith.net/gtk/php-5.4.5-nts-php-gtk-snapshot.zip
- http://emsmith.net/gtk/php-gtk-2012-5.4-snapshot.zip
- php-gtk compiled from latest https://github.com/auroraeosrose/php-gtk-src
in
conjunction with PHP 5.4.10-nts binary package

The problem is not in strpos: simply accessing the data (ex.
$a=$item['descr'])
crashes the script.

Older php-gtk package works (http://gtk.php.net/do_download.php?
download_file=php-gtk-2.0.1-win32-nts.zip), even with 100k elements.

Reducing the number of elements to 5000 solves the bug, but my real
application
uses 100k elements.

Using connect_simple() on every button (instead of connect_signals())
solves the
bug in the test script but not in the complete application.

Test script:
---------------
http://www.faieta.net/wp/wp-content/uploads/2012/12/php_outofmem.phps


Expected result:
----------------
Press button "Foo" -> "Search OK"
 then
Press button "Bar" -> "Bar was clicked"
 then
Press button "Foo" -> "Search OK"


Actual result:
--------------
Press button "Foo" -> "Search OK"
 then
Press button "Bar" -> "Bar was clicked"
 then
Press button "Foo" -> Out of memory


--
Edit bug report at https://bugs.php.net/bug.php?id=63844&edit=1
--
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=63844&r=trysnapshot54
Try a snapshot (PHP 5.3):   https://bugs.php.net/fix.php?id=63844&r=trysnapshot53
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=63844&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=63844&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=63844&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=63844&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=63844&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=63844&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=63844&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=63844&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=63844&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=63844&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=63844&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63844&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=63844&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=63844&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=63844&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63844&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=63844&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63844&r=mysqlcfg


--
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply | Threaded
Open this post in threaded view
|

Bug #63844 [Opn->Sus]: php-gtk out of memory error

Kalle Sommer Nielsen
Edit report at https://bugs.php.net/bug.php?id=63844&edit=1

 ID:                 63844
 Updated by:         [hidden email]
 Reported by:        gianluca dot faieta at gmail dot com
 Summary:            php-gtk out of memory error
-Status:             Open
+Status:             Suspended
 Type:               Bug
 Package:            PHP-GTK related
 Operating System:   Windows
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

I'm gonna suspend this report as the PHP GTK project activity seems halted, if the activity picks backup for the project then this report should be re-opened.


Previous Comments:
------------------------------------------------------------------------
[2012-12-24 09:36:50] gianluca dot faieta at gmail dot com

Description:
------------
Test script crashes after "eating" over 1GB of RAM.
php-cli.ini has memory_limit = -1
The script was run on Windows Server 2008 SP2 and Windows XP SP2 with same
error. Multiple PHP binaries were tested, with same outcome:

- http://emsmith.net/gtk/php-5.3.15-nts-php-gtk-snapshot.zip
- http://emsmith.net/gtk/php-5.4.5-nts-php-gtk-snapshot.zip
- http://emsmith.net/gtk/php-gtk-2012-5.4-snapshot.zip
- php-gtk compiled from latest https://github.com/auroraeosrose/php-gtk-src in
conjunction with PHP 5.4.10-nts binary package

The problem is not in strpos: simply accessing the data (ex. $a=$item['descr'])
crashes the script.

Older php-gtk package works (http://gtk.php.net/do_download.php?
download_file=php-gtk-2.0.1-win32-nts.zip), even with 100k elements.

Reducing the number of elements to 5000 solves the bug, but my real application
uses 100k elements.

Using connect_simple() on every button (instead of connect_signals()) solves the
bug in the test script but not in the complete application.

Test script:
---------------
http://www.faieta.net/wp/wp-content/uploads/2012/12/php_outofmem.phps


Expected result:
----------------
Press button "Foo" -> "Search OK"
 then
Press button "Bar" -> "Bar was clicked"
 then
Press button "Foo" -> "Search OK"


Actual result:
--------------
Press button "Foo" -> "Search OK"
 then
Press button "Bar" -> "Bar was clicked"
 then
Press button "Foo" -> Out of memory



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=63844&edit=1

--
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php