Bug #61936 [Opn->Nab]: GDB ____executor_globals fails when EG/CG symbol may not visible in some module
| From: | laruence@php.net | Date: | Tue, 08 May 2012 09:08:42 +0000 |
| Subject: | Bug #61936 [Opn->Nab]: GDB ____executor_globals fails when EG/CG symbol may not visible in some module | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-170298@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61936&edit=1
ID: 61936
Updated by: laruence@php.net
Reported by: reeze dot xia at gmail dot com
Summary: GDB ____executor_globals fails when EG/CG symbol may
not visible in some module
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: *Nix
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
it's not a bug, more about wrong usage (discussed with the report via the pull
request)
Previous Comments:
------------------------------------------------------------------------
[2012-05-04 04:13:55] reeze dot xia at gmail dot com
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"
------------------------------------------------------------------------
[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