PHP 4.0 Bug #9896 Updated: segfaults at $xmldoc->add_root("root");
| From: | chregu at nomad dot ch | Date: | Thu, 22 Mar 2001 09:56:26 +0000 |
| Subject: | PHP 4.0 Bug #9896 Updated: segfaults at $xmldoc->add_root("root"); | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49718@lists.php.net to get a copy of this message | ||
ID: 9896
User Update by: chregu@nomad.ch
Old-Status: Feedback
Status: Open
Bug Type: DOM XML related
Description: segfaults at $xmldoc->add_root("root");
test-program:
$xmldoc = domxml_new_xmldoc('1.0');
$xmldoc->add_root("bla");
gdb backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x401a3938 in objects () at zend_operators.c:1144
1144 }
(gdb) bt
#0 0x401a3938 in objects () at zend_operators.c:1144
#1 0x402c13e4 in php4_module () from /usr/local/apache/libexec/libphp4.so
#2 0x401d892a in objects () at php_domxml.c:668
#3 0x40199707 in objects () at ./zend_execute.c:853
#4 0x401aafc0 in objects () at zend.c:260
#5 0x401c3be3 in objects () at main.c:1126
#6 0x401bf11e in objects () at sapi_apache.c:98
#7 0x401bfe89 in objects () at mod_php4.c:437
#8 0x401bfed3 in objects () at mod_php4.c:437
#9 0x8074c09 in ap_invoke_handler ()
#10 0x808a0cf in process_request_internal ()
#11 0x808a142 in ap_process_request ()
#12 0x8080d96 in child_main ()
#13 0x8080f55 in make_child ()
#14 0x80810d6 in startup_children ()
#15 0x808175c in standalone_main ()
#16 0x8081f8c in main ()
#17 0x40096a8e in __libc_start_main () at ../sysdeps/generic/libc-start.c:93
Previous Comments:
---------------------------------------------------------------------------
[2001-03-21 15:27:09] sniper@php.net
Delete config.cache, add --enable-debug into your configure line, 'make clean ; make ; make
install' and generate a GDB backtrace of the crash and add it into this bug report.
--Jani
---------------------------------------------------------------------------
[2001-03-21 06:08:29] chregu@nomad.ch
Reproduce with:
$xmldoc = domxml_new_xmldoc('1.0');
domxml_add_root($xmldoc,"bla");
Configure
./configure --with-config-file-path=/usr/local/apache/conf --with-zlib --with-mysql --with-sablot
--with-apxs=/usr/local/apache/bin/apxs --enable-versioning --with-dom=/opt/gnome
libxml2-2.3.3
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9896