ID: 42305
User updated by: danil dot megrabjan at gmail dot com
Reported By: danil dot megrabjan at gmail dot com
-Status: No Feedback
+Status: Open
Bug Type: DOM XML related
Operating System: SLES10
PHP Version: 5.2CVS-2007-08-16
Assigned To: rrichards
New Comment:
2Rob: my current version libxml2 = 2.6.26
Sorry. I have leave my office at long time. Today i give back to this
situation. And once again i have the same problem`s. I`m trying to make
a small sample of my code, but in the smallest variants i can`t catch
this troubles. I may proposal all our code for you... but it`s very big,
and we have a the same big DB under Sybase9.
my new bt from gdb:
0xb764c870 in xmlAttrSerializeTxtContent () from /usr/lib/libxml2.so.2
(gdb) bt
#0 0xb764c870 in xmlAttrSerializeTxtContent () from
/usr/lib/libxml2.so.2
#1 0xb764ca76 in xmlSaveTree () from /usr/lib/libxml2.so.2
#2 0xb764c499 in xmlAttrSerializeTxtContent () from
/usr/lib/libxml2.so.2
#3 0xb764e314 in xmlNodeDump () from /usr/lib/libxml2.so.2
#4 0xb764e580 in xmlSaveFormatFileEnc () from /usr/lib/libxml2.so.2
#5 0xb73af9a0 in zif_dom_document_save (ht=1, return_value=0xb27b589c,
return_value_ptr=0x0, this_ptr=0xb7489808,
return_value_used=0) at
/usr/src/debug/php-5.2.3/ext/dom/document.c:1640
#6 0xb2f6ef0b in get_module () from
/usr/local/Zend/Platform/lib/Optimizer-3.2.6/php-5.2.x/ZendOptimizer.so
#7 0x00000001 in ?? ()
#8 0xb27b589c in ?? ()
#9 0x00000000 in ?? ()
Previous Comments:
------------------------------------------------------------------------
[2007-08-29 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2007-08-21 12:34:05] [EMAIL PROTECTED]
Not only would a reproducing script be helpful, but can you also
indicate what version of libxml2 you are using? That will at least give
me a starting point to see if this is an issue with DOM or not.
------------------------------------------------------------------------
[2007-08-20 14:36:04] [EMAIL PROTECTED]
Rob, can you check this out please? (It might be something more general
than just DOM issue but we need to begin somewhere :)
And Danil, can you try provide the shortest possible example script
that causes this crash?
------------------------------------------------------------------------
[2007-08-20 12:36:06] danil dot megrabjan at gmail dot com
from phpinfo();
Debug Build yes
I have catch reason of segmentation fault.
I have some big code. Very big...
And i have a some objects extends of DOMDocument in that.
f.e
class A extends DOMDocument {
private $_obj; // other object
...
}
$a = new A();
...
very many logic`s
...
$a = null;
This code was finished with segmentation fault.
But if...
class A extends DOMDocument {
private $_obj; // other object
...
public function __destruct() {
$this->_obj = null;
}
}
It`s everything ok.
or
Without modification`s in class A declaration, we don`t do it "$a =
null;" it`s all correct too.
------------------------------------------------------------------------
[2007-08-16 13:25:35] danil dot megrabjan at gmail dot com
I`m install new php and i have the same problem :(
Usage: /usr/bin/php-config [OPTION]
Options:
--prefix [/usr]
--includes [-I/php -I/php/main -I/php/TSRM -I/php/Zend
-I/php/ext -I/php/ext/date/lib]
--ldflags []
--libs [-lcrypt -lcrypt -lmm -lresolv -lm -ldl -lnsl
-lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lcrypt ]
--extension-dir [/usr/lib/php/extensions/debug-non-zts-20060613]
--include-dir [/php]
--php-binary [=/usr/bin/php5]
--php-sapis [cli apache2handler]
--configure-options [--prefix=/usr --datadir=/usr/share/php5
--mandir==/usr/share/man --bindir==/usr/bin --with-libdir=lib
--includedir= --sysconfdir=/etc/php5/apache2
--with-config-file-path=/etc/php5/apache2
--with-config-file-scan-dir=/etc/php5/conf.d --enable-libxml
--enable-session --with-mm --with-pcre-regex --enable-xml
--enable-simplexml --enable-spl --enable-filter --enable-debug
--enable-memory-limit --program-suffix=5 --with-apxs2=/usr/sbin/apxs2
--bindir==/usr/bin --with-pear=/usr/share/php5/PEAR
--enable-bcmath=shared --enable-calendar=shared --enable-ctype=shared
--enable-dbase=shared --enable-dom=shared --enable-exif=shared
--enable-ftp=shared --enable-mbstring=shared --enable-mbregex
--enable-pcntl=shared --enable-posix=shared --enable-shmop=shared
--enable-soap=shared --enable-sockets=shared --enable-sysvmsg=shared
--enable-sysvsem=shared --enable-sysvshm=shared
--enable-tokenizer=shared --enable-wddx=shared --with-zlib=shared
--with-bz2=shared --with-curl=shared --with-gd=shared
--enable-gd-native-ttf --with-xpm-dir=/usr/X11R6
--with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr
--with-zlib-dir=/usr --with-gettext=shared --with-gmp=shared
--enable-hash=shared --with-iconv=shared --with-imap=shared
--with-kerberos --with-imap-ssl --enable-json=shared --with-ldap=shared
--with-ldap-sasl=/usr --with-mcrypt=shared --with-mhash=shared
--with-mysql=shared,/usr --with-mysql-sock=/var/lib/mysql/mysql.sock
--with-mysqli=shared --with-ncurses=shared --with-unixODBC=shared,/usr
--with-openssl=shared --with-xmlrpc=shared --enable-xmlreader=shared
--enable-xmlwriter=shared --with-xsl=shared --enable-dba=shared
--with-db4=/usr --without-gdbm --with-cdb --with-inifile --with-flatfile
--with-pdo_sqlite=shared,/usr --with-sqlite=shared,/usr
--enable-sqlite-utf8 --enable-pdo=shared --with-pdo-mysql=shared,/usr
--with-pdo-odbc=shared,unixODBC,/usr --enable-zip=shared --enable-cli]
--version [5.2.4RC2-dev]
--vernum [50204]
(gdb) run -X
Starting program: /usr/sbin/httpd2 -X
[Thread debugging using libthread_db enabled]
[New Thread -1213954384 (LWP 8317)]
[New Thread -1291711584 (LWP 8320)]
[New Thread -1291977824 (LWP 8321)]
[New Thread -1292244064 (LWP 8322)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1213954384 (LWP 8317)]
0xb78a6708 in zend_copy_constants () from /usr/lib/apache2/libphp5.so
(gdb) bt
#0 0xb78a6708 in zend_copy_constants () from
/usr/lib/apache2/libphp5.so
#1 0xb78c3c52 in zend_hash_reverse_apply () from
/usr/lib/apache2/libphp5.so
#2 0xb78a6bb3 in clean_non_persistent_constants () from
/usr/lib/apache2/libphp5.so
#3 0xb78a7e4b in shutdown_executor () from
/usr/lib/apache2/libphp5.so
#4 0xb78b6fa7 in zend_deactivate () from /usr/lib/apache2/libphp5.so
#5 0xb7865169 in php_request_shutdown () from
/usr/lib/apache2/libphp5.so
#6 0xb7930645 in zend_get_zval_ptr_ptr () from
/usr/lib/apache2/libphp5.so
#7 0xb7930f33 in zend_get_zval_ptr_ptr () from
/usr/lib/apache2/libphp5.so
#8 0x8002f94d in ap_run_handler (r=0x802587a0) at config.c:157
#9 0x80033227 in ap_invoke_handler (r=0x802587a0) at config.c:372
#10 0x8003f084 in ap_internal_redirect (new_uri=0x80258780
"/infin.php?query=start/1/666666", r=0x802539b0)
at http_request.c:477
#11 0xb7446c10 in ?? () from /usr/lib/apache2-prefork/mod_rewrite.so
#12 0x80258780 in ?? ()
#13 0x802539b0 in ?? ()
#14 0xb744b67f in ?? () from /usr/lib/apache2-prefork/mod_rewrite.so
#15 0x802586b8 in ?? ()
#16 0x00000000 in ?? ()
(gdb)
------------------------------------------------------------------------
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/42305
--
Edit this bug report at http://bugs.php.net/?id=42305&edit=1