Edit report at http://bugs.php.net/bug.php?id=55037&edit=1

 ID:                 55037
 Updated by:         [email protected]
 Reported by:        crrodriguez at opensuse dot org
 Summary:            php_zval_filter_recursive segfault
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Filter related
 Operating System:   Linux
 PHP Version:        5.3SVN-2011-06-12 (SVN)
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.




Previous Comments:
------------------------------------------------------------------------
[2011-06-12 03:18:48] crrodriguez at opensuse dot org

Description:
------------
Hi:



php_zval_filter_recursive segfaults once in a while, with the following 
backtrace





Test script:
---------------
Program terminated with signal 11, Segmentation fault.

#0  0x00007fb81e3a58a2 in php_zval_filter_recursive (value=0x7fb823d86768, 
filter=140736822777868, flags=140736822777848, options=0x7fb823d86790, 
copy=<value optimized out>, charset=0x0)

    at /usr/src/debug/php-5.3.6.201106102115/ext/filter/filter.c:524

529                             if (Z_TYPE_PP(element) == IS_ARRAY) {





(gdb) bt full

#0  0x00007fb81e3a58a2 in php_zval_filter_recursive (value=0x7fb823d86768, 
filter=140736822777868, flags=140736822777848, options=0x7fb823d86790, 
copy=<value optimized out>, charset=0x0)

    at /usr/src/debug/php-5.3.6.201106102115/ext/filter/filter.c:524

        element = 0x0

        pos = 0x7fb823d86790

#1  0x0000000000000000 in ?? ()



Im not familiar with the code so Im not sure if checking element != NULL is a 
correct fix.,

Expected result:
----------------
-----------

Actual result:
--------------
------------------------------


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



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=55037&edit=1

Reply via email to