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

 ID:                 61936
 User updated by:    reeze dot xia at gmail dot com
 Reported by:        reeze dot xia at gmail dot com
 Summary:            GDB:____executor_globals fails when EG/CG symbol
                     may not visible in some modul
 Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   *Nix
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

sorry I missed " in non-ZTS build " after "affected,since executor_globals 
always 
available)."

It's: "Only ZTS build affected,since executor_globals/compiler_globals always 
available in non-ZTS build"


Previous Comments:
------------------------------------------------------------------------
[2012-05-04 04:03:46] reeze dot xia at gmail dot com

Hi, 
  I've sent a pull request. open this bug ticket just for record.

see https://github.com/php/php-src/pull/74/

Thanks.

------------------------------------------------------------------------
[2012-05-04 03:57:14] reeze dot xia at gmail dot com

Description:
------------
when debug using GDB, sometime ____executor_globals failed to execute 
because in some module eg:zend_gc.c did have zend_executor_global exposed(Only 
ZTS 
model affected,since executor_globals always available).

Test script:
---------------
(gdb) b gc_zval_possible_root
Breakpoint 1 at 0x1005aa7d0: file zend_gc.c, line 132.
(gdb) r circle.php 
Starting program: /Users/reeze/Opensource/php-src/sapi/cli/php circle.php
Reading symbols for shared libraries ++++++.......................... done

Breakpoint 1, gc_zval_possible_root (zv=0x100dcbb58, tsrm_ls=0x100e009b0) at 
zend_gc.c:132
warning: Source file is more recent than executable.
132             if (UNEXPECTED(GC_G(free_list) != NULL &&
(gdb) printzv zv
No symbol "zend_executor_globals" in current context.

Expected result:
----------------
print zval correctly

Actual result:
--------------
No symbol "zend_executor_globals" in current context.


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



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

Reply via email to