#20853 [Opn]: getting objectarray with 90 or more objects back from java produces a crash

From: Date: Mon, 09 Dec 2002 07:59:46 +0000
Subject: #20853 [Opn]: getting objectarray with 90 or more objects back from java produces a crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-27134@lists.php.net to get a copy of this message
ID: 20853 User updated by: andreas@billmann.de Reported By: andreas@billmann.de Status: Open Bug Type: Java related Operating System: Linux PHP Version: 4.4.0-dev New Comment: With version php4-200212090630 I could create an array with more than 300.000 objects or strings (I didn' t test more because this is enough for my application), but the array with the more complex FileInfo class fails again. I will try future snapshots and report the status of this problem but I will do a work around for my application with wrappers and simple objects. Previous Comments: ------------------------------------------------------------------------ [2002-12-09 01:04:49] andreas@billmann.de In php4-200212060830 the error that happens with the more complex ojbect is the same error described before. There are some bugs in the memory management. -------------------------------------------------- Dec 9 08:06:18 abi httpd: zend nIndex : 0 Dec 9 08:06:18 abi httpd: zend tablesize : 8 Dec 9 08:06:18 abi httpd: zend elementnr : 0 -------------------------------------------------- Dec 9 08:06:18 abi httpd: zend nIndex : 1 Dec 9 08:06:18 abi httpd: zend tablesize : 8 Dec 9 08:06:18 abi httpd: zend elementnr : 1 -------------------------------------------------- Dec 9 08:06:18 abi httpd: zend nIndex : 13 Dec 9 08:06:18 abi httpd: zend tablesize : 16 Dec 9 08:06:18 abi httpd: zend elementnr : 11 -------------------------------------------------- Dec 9 08:06:18 abi httpd: zend nIndex : 0 Dec 9 08:06:18 abi httpd: zend tablesize : 13 Dec 9 08:06:18 abi httpd: zend elementnr : 137413676 Bye, Andi PS: I download the current php packages and try them. ------------------------------------------------------------------------ [2002-12-06 06:24:40] sniper@php.net updated the PHP version info. ------------------------------------------------------------------------ [2002-12-06 04:44:56] andreas@billmann.de I'm sorry, my the example works now fine, but with a more complex class (FileInfo extends java.io.File and implements Serializable) it fails with an array of the size 15. I don't have added the logs this time, so I don' t know if this is the same error or not, but I can't test this until monday, so I update this on monday. Thx for your help and have a nice weekend. Regards, Andi ------------------------------------------------------------------------ [2002-12-06 04:38:13] andreas@billmann.de Ok, now the values are about 190.000 for the object array that is a value I can live with and 200 (it works for 199 and crashes with 200) for the string array. So when I need a big array with strings I wrap them in an object. Thx for your help. Andi PS: I have jdk 1.4.1 on a P4 1500 with 768MB and Suse Linux 8.1 ------------------------------------------------------------------------ [2002-12-06 04:16:33] edink@php.net I've tried it now with 50.000 and it worked. It took about 3.6 seconds on my P3 600. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20853 -- Edit this bug report at http://bugs.php.net/?id=20853&edit=1

« previous php.bugs (#27134) next »