php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61936 GDB ____executor_globals fails when EG/CG symbol may not visible in some module
Submitted: 2012-05-04 03:57 UTC Modified: 2012-05-08 09:08 UTC
From: reeze dot xia at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS: *Nix
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: reeze dot xia at gmail dot com
New email:
PHP Version: OS:

 

 [2012-05-04 03:57 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-04 04:03 UTC] 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 04:13 UTC] 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 23:01 UTC] felipe@php.net
-Summary: GDB:____executor_globals fails when EG/CG symbol may not visible in some modul +Summary: GDB ____executor_globals fails when EG/CG symbol may not visible in some modul
 [2012-05-04 23:01 UTC] felipe@php.net
-Summary: GDB ____executor_globals fails when EG/CG symbol may not visible in some modul +Summary: GDB ____executor_globals fails when EG/CG symbol may not visible in some module
 [2012-05-08 09:08 UTC] laruence@php.net
it's not a bug, more about wrong usage (discussed with the report via the pull 
request)
 [2012-05-08 09:08 UTC] laruence@php.net
-Status: Open +Status: Not a bug
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 12:01:32 2025 UTC