ID: 24659 User updated by: fujimura at wakhok dot ac dot jp Reported By: fujimura at wakhok dot ac dot jp -Status: Feedback +Status: Open Bug Type: XML related Operating System: Linux kernel-2.4.21 -PHP Version: 5.0.0b1 +PHP Version: 5.0.0b2-dev New Comment:
> Add the PHP version, and a backtrace. The followed is php and Apache httpd version information, [EMAIL PROTECTED] bin]$ php -v PHP 5.0.0b2-dev (cli) (built: Jul 14 2003 16:52:50) Copyright (c) 1997-2003 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies with Xdebug v1.2.0, Copyright (c) 2002, 2003, by Derick Rethans [EMAIL PROTECTED] bin]$ /usr/local/apache/bin/httpd -v Server version: Apache/1.3.27 (Unix) Server built: Jun 30 2003 06:57:35 [EMAIL PROTECTED] bin]$ /usr/local/apache/bin/httpd -V Server version: Apache/1.3.27 (Unix) Server built: Jun 30 2003 06:57:35 Server's Module Magic Number: 19990320:13 Server compiled with.... -D HAVE_MMAP -D HAVE_SHMGET -D USE_SHMGET_SCOREBOARD -D USE_MMAP_FILES -D HAVE_FCNTL_SERIALIZED_ACCEPT -D HAVE_SYSVSEM_SERIALIZED_ACCEPT -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D HARD_SERVER_LIMIT=256 -D HTTPD_ROOT="/usr/local/apache" -D SUEXEC_BIN="/usr/local/apache/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard" -D DEFAULT_LOCKFILE="logs/httpd.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" -D ACCESS_CONFIG_FILE="conf/access.conf" -D RESOURCE_CONFIG_FILE="conf/srm.conf" and backtrace. [EMAIL PROTECTED] root]# gdb /usr/local/apache/bin/httpd GNU gdb 5.3 Copyright 2002 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 "i386-slackware-linux"... (gdb) run -X Starting program: /usr/local/apache/bin/httpd -X Program received signal SIGSEGV, Segmentation fault. 0x40316e8e in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so (gdb) bt #0 0x40316e8e in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so #1 0x4039fd80 in php5_module () from /usr/local/apache/libexec/libphp5.so #2 0x40318ba5 in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so #3 0x4030a687 in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so #4 0x403039dd in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so #5 0x4031059c in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so #6 0x40303771 in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so #7 0x4030b8de in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so #8 0x402df41f in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so #9 0x4032924e in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so #10 0x40329c83 in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so #11 0x40329e22 in svcauthdes_stats () from /usr/local/apache/libexec/libphp5.so #12 0x0806972f in ap_invoke_handler () #13 0x0807da8f in process_request_internal () #14 0x0807dea1 in ap_internal_redirect () #15 0x0805ec42 in handle_dir () #16 0x0806972f in ap_invoke_handler () #17 0x0807da8f in process_request_internal () #18 0x0807daee in ap_process_request () #19 0x08074dde in child_main () #20 0x08074f7e in make_child () #21 0x080750e4 in startup_children () #22 0x0807570f in standalone_main () #23 0x08075f2d in main () #24 0x400a4bb4 in __libc_start_main () from /lib/libc.so.6 > Please try using this CVS snapshot: I updated php before the first reporting. What else could I do? Thanks. Previous Comments: ------------------------------------------------------------------------ [2003-07-15 13:35:45] [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 ------------------------------------------------------------------------ [2003-07-15 04:25:49] [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. Add the PHP version, and a backtrace. ------------------------------------------------------------------------ [2003-07-15 04:16:58] fujimura at wakhok dot ac dot jp -$parser AND die; +$parser OR die; ;-) ------------------------------------------------------------------------ [2003-07-15 04:15:16] fujimura at wakhok dot ac dot jp Description: ------------ The following code crashes(segmentation fault, and empty output) at a whim. But it does not reproduce when php invoked as CLI. Reproduce code: --------------- <?php class MyHandler { public function test($parser, $data) { print $data; } } $parser = xml_parser_create(); $parser AND die; $handler = new MyHandler(); xml_set_default_handler($parser, array($handler, "test")); xml_parser_free($parser); ?> Expected result: ---------------- Nothing. Actual result: -------------- SIGSEGV logged to error_log. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24659&edit=1