ID:               42305
 Updated by:       [EMAIL PROTECTED]
 Reported By:      danil dot megrabjan at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         DOM XML related
 Operating System: SLES10
 PHP Version:      5.2CVS-2007-08-16
 Assigned To:      rrichards
 New Comment:

You need to configure PHP with --enable-debug to get an usable
backtrace.


Previous Comments:
------------------------------------------------------------------------

[2007-08-29 08:39:44] danil dot megrabjan at gmail dot com

This troubles i have on 5.2.3 as in `bt` and on last version from cvs
too. :(

------------------------------------------------------------------------

[2007-08-29 08:32:39] danil dot megrabjan at gmail dot com

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 ?? ()

------------------------------------------------------------------------

[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.

------------------------------------------------------------------------

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

Reply via email to