ID: 27608 User updated by: david dot danier at team23 dot de Reported By: david dot danier at team23 dot de -Status: Feedback +Status: Open Bug Type: MySQL related Operating System: Gentoo Linux 1.4 PHP Version: 5CVS-2004-03-15 (dev) New Comment:
I think this "latest" snapshot is nothing more than a fresh CVS checkout, so I did the checkout first. ;-) Same Error: (gdb) run segfault_mysql_free_result.php Starting program: /usr/bin/php segfault_mysql_free_result.php 1 GO 2 OK Program received signal SIGSEGV, Segmentation fault. 0x08282c9c in _zval_ptr_dtor (zval_ptr=0xbfffd36c) at /home/goliath/downloads/php/php-src/Zend/zend_execute_API.c:389 389 (*zval_ptr)->refcount--; (gdb) bt #0 0x08282c9c in _zval_ptr_dtor (zval_ptr=0xbfffd36c) at /home/goliath/downloads/php/php-src/Zend/zend_execute_API.c:389 #1 0x0828dd08 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/goliath/downloads/php/php-src/Zend/zend.c:1095 #2 0x08253e0f in php_execute_script (primary_file=0xbffff6c0) at /home/goliath/downloads/php/php-src/main/main.c:1630 #3 0x082b988c in main (argc=2, argv=0xbffff744) at /home/goliath/downloads/php/php-src/sapi/cli/php_cli.c:943 After that I tried the "latest" Snapshot: The same :( (gdb) run segfault_mysql_free_result.php Starting program: /home/goliath/downloads/php/latest/php5-200404091030/sapi/cli/php /home/goliath/Work/Homepages/Projekte/molp/tests/segfault_mysql_free_result.php 1 GO 2 OK Program received signal SIGSEGV, Segmentation fault. 0x08282b9c in _zval_ptr_dtor (zval_ptr=0xbfffd2cc) at /home/goliath/downloads/php/latest/php5-200404091030/Zend/zend_execute_API.c:389 389 (*zval_ptr)->refcount--; (gdb) bt #0 0x08282b9c in _zval_ptr_dtor (zval_ptr=0xbfffd2cc) at /home/goliath/downloads/php/latest/php5-200404091030/Zend/zend_execute_API.c:389 #1 0x0828dc08 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/goliath/downloads/php/latest/php5-200404091030/Zend/zend.c:1095 #2 0x08253d1f in php_execute_script (primary_file=0xbffff620) at /home/goliath/downloads/php/latest/php5-200404091030/main/main.c:1630 #3 0x082b978c in main (argc=2, argv=0xbffff6a4) at /home/goliath/downloads/php/latest/php5-200404091030/sapi/cli/php_cli.c:943 I tried it on another Machine with actual PHP5-CVS Sources, it runs there. So the Problem must be somewhere in my System libs or something like that. I'm using: Linux 2.6.5 gcc (GCC) 3.3.2 20031218 ...for more version-numbers simply ask. (other machine uses Linux 2.4.*) Previous Comments: ------------------------------------------------------------------------ [2004-04-08 11:48:15] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2004-03-17 14:06:13] david dot danier at team23 dot de Perhaps the Apache/MySQL-Version helps: apache-2.0.48-r1 mysql-4.0.18 (both gentoo ebuilds) ------------------------------------------------------------------------ [2004-03-17 13:58:00] david dot danier at team23 dot de Did a complete cleanup on PHP and installed the new Version: $ rm /usr/bin/php $ rm /usr/lib/apache2/libphp5.so $ rm -rf /usr/lib/php -> CVS checkout (deleted the sourcedir before) -> newly compiled with options like above ...same error :( 'php -v' says: PHP 5.0.0RC1-dev (cli) (built: Mar 17 2004 19:51:01) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2004 Zend Technologies Backtrace: (gdb) run segfault_mysql_free_result.php Starting program: /usr/bin/php segfault_mysql_free_result.php 1 GO 2 OK Program received signal SIGSEGV, Segmentation fault. 0x082817bc in _zval_ptr_dtor (zval_ptr=0xbfffd37c) at /home/goliath/downloads/php/php-src/Zend/zend_execute_API.c:385 385 (*zval_ptr)->refcount--; (gdb) bt #0 0x082817bc in _zval_ptr_dtor (zval_ptr=0xbfffd37c) at /home/goliath/downloads/php/php-src/Zend/zend_execute_API.c:385 #1 0x0828c438 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/goliath/downloads/php/php-src/Zend/zend.c:1084 #2 0x08252c3f in php_execute_script (primary_file=0xbffff6d0) at /home/goliath/downloads/php/php-src/main/main.c:1628 #3 0x082b75fc in main (argc=2, argv=0xbffff754) at /home/goliath/downloads/php/php-src/sapi/cli/php_cli.c:943 ------------------------------------------------------------------------ [2004-03-17 09:37:55] [EMAIL PROTECTED] I tried running the code again, but I only get "Fatal error: Exception thrown without a stack frame in Unknown on line 0" regardless of unset(). ------------------------------------------------------------------------ [2004-03-17 06:22:47] david dot danier at team23 dot de Got the same error with fresh compiled PHP from CVS. ----------------------- $ php -v PHP 5.0.0RC1-dev (cli) (built: Mar 17 2004 12:18:26) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2004 Zend Technologies $ php segfault_mysql_free_result.php 1 GO 2 OK Speicherzugriffsfehler ----------------------- (Speicherzugriffsfehler = Segfault) ------------------------------------------------------------------------ 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/27608 -- Edit this bug report at http://bugs.php.net/?id=27608&edit=1