[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-gtk-dev
Subject:    [PHP-GTK-DEV] [PHP-BUG] Bug #63844 [NEW]: php-gtk out of memory error
From:       "gianluca dot faieta at gmail dot com"<php-bugs () lists ! php ! net>
Date:       2012-12-24 9:36:50
Message-ID: bug-63844 () bugs ! php ! net
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic