ID: 30660 Updated by: [EMAIL PROTECTED] Reported By: margus at zone dot ee Status: Open Bug Type: Reproducible crash Operating System: SuSe Linux 9.0 PHP Version: 5.0.2 -Assigned To: +Assigned To: john New Comment:
I'll look into it, hopefully I'll be able to reproduce it in RH Previous Comments: ------------------------------------------------------------------------ [2004-11-02 14:23:54] margus at zone dot ee linux:/home/margus/install/php-5.0.2 # gdb sapi/cli/php GNU gdb 5.3.92 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"... (gdb) run -c . tidytest.php Starting program: /home/margus/install/php-5.0.2/sapi/cli/php -c . tidytest.php [New Thread 16384 (LWP 21668)] Exiting... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 21668)] 0x0816a055 in _zval_dtor (zvalue=0x826ad1c) at /home/margus/install/php-5.0.2/Zend/zend_variables.c:61 61 Z_OBJ_HT_P(zvalue)->del_ref(zvalue TSRMLS_CC); (gdb) bt #0 0x0816a055 in _zval_dtor (zvalue=0x826ad1c) at /home/margus/install/php-5.0.2/Zend/zend_variables.c:61 #1 0x08161e89 in _zval_ptr_dtor (zval_ptr=0x826fe48) at /home/margus/install/php-5.0.2/Zend/zend_execute_API.c:394 #2 0x081715e9 in zend_hash_apply_deleter (ht=0x81ea6d0, p=0x826fe3c) at /home/margus/install/php-5.0.2/Zend/zend_hash.c:574 #3 0x08171679 in zend_hash_graceful_reverse_destroy (ht=0x81ea6d0) at /home/margus/install/php-5.0.2/Zend/zend_hash.c:640 #4 0x08161944 in shutdown_executor () at /home/margus/install/php-5.0.2/Zend/zend_execute_API.c:210 #5 0x0816b126 in zend_deactivate () at /home/margus/install/php-5.0.2/Zend/zend.c:818 #6 0x081395c7 in php_request_shutdown (dummy=0x0) at /home/margus/install/php-5.0.2/main/main.c:1212 #7 0x081987d0 in main (argc=4, argv=0xbffff704) at /home/margus/install/php-5.0.2/sapi/cli/php_cli.c:1046 (gdb) ------------------------------------------------------------------------ [2004-11-02 13:41:01] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Oops, clicked the wrong link before... ------------------------------------------------------------------------ [2004-11-02 13:34:32] margus at zone dot ee <?php dl ('modules/tidy.so'); $tidy = tidy_parse_string ("<HTML></HTML>"); echo "Exiting..."; ?> ------------------------------------------------------------------------ [2004-11-02 13:28:19] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2004-11-02 13:26:02] margus at zone dot ee Description: ------------ When building and using Tidy extension separately as shared module, then PHP-CLI crashes at the end. Everything seems to work, when compiling the extension directly into PHP binary. Reproduce code: --------------- build LIBTIDY: - /bin/sh build/gnuauto/setup.sh - ./configure --with-prefix=/usr - make - make install - ldconfig build PHP5 (5.0.2): - ./configure --with-tidy=shared,/usr - make changes in PHP.INI: extension_dir=. script tidytest.php: <?php dl ('modules/tidy.so'); $tidy = tidy_parse_string ("<HTML></HTML>"); echo "Exiting..."; ?> Expected result: ---------------- Exiting... Actual result: -------------- Exiting...Segmentation Fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30660&edit=1
