|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30780 new tidyNode segfaults
Submitted: 2004-11-14 14:10 UTC Modified: 2004-11-14 14:40 UTC
From: Assigned:
Status: Closed Package: Tidy (PECL)
PHP Version: 5CVS-2004-11-14 (dev) OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2004-11-14 14:10 UTC]
PHP segfaults with supplied code;

Reproduce code:
new tidyNode;

Actual result:
Program received signal SIGSEGV, Segmentation fault.
tidy_object_free_storage (object=0x83da2cc) at /cvs/php-src/ext/tidy/tidy.c:500
500             intern->ptdoc->ref_count--;
(gdb) bt
#0  tidy_object_free_storage (object=0x83da2cc)
    at /cvs/php-src/ext/tidy/tidy.c:500
#1  0x0820755d in zend_objects_store_del_ref (zobject=0x1)
    at /cvs/php-src/Zend/zend_objects_API.c:159
#2  0x081f21e0 in _zval_dtor_func (zvalue=0x83e4b0c)
    at /cvs/php-src/Zend/zend_variables.c:52
#3  0x081e8de0 in _zval_ptr_dtor (zval_ptr=0x833fabc) at zend_variables.h:35
#4  0x082129ec in zend_do_fcall_common_helper_SPEC (execute_data=0xbfffd560)
    at zend_vm_execute.h:241
#5  0x08212539 in execute (op_array=0x83e516c) at zend_vm_execute.h:58
#6  0x081f3d0a in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /cvs/php-src/Zend/zend.c:1053
#7  0x081bcaef in php_execute_script (primary_file=0xbffff940)
    at /cvs/php-src/main/main.c:1634
#8  0x0826d5b0 in main (argc=2, argv=0xbffff9d4)
    at /cvs/php-src/sapi/cli/php_cli.c:943


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-14 14:40 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Oct 03 02:03:44 2022 UTC