php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #41812 Backtrace instructions don't work anymore
Submitted: 2007-06-26 12:34 UTC Modified: 2007-07-06 01:00 UTC
From: jan at horde dot org Assigned:
Status: No Feedback Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 - 4 = ?
Subscribe to this entry?

 
 [2007-06-26 12:34 UTC] jan at horde dot org
Description:
------------
The instructions to generate backtrace information on http://bugs.php.net/bugs-generating-backtrace.php don't work anymore with the latest PHP versions.

print (char *)(executor_globals.function_state_ptr->function)->common.function_name

results in:

Address of symbol "executor_globals" is unknown.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-26 12:47 UTC] tony2001@php.net
Did you enable ZTS ?
 [2007-06-27 08:16 UTC] jan at horde dot org
No, it's a debug non-zts linux build.
 [2007-06-27 08:45 UTC] tony2001@php.net
Well, it looks like you did enable it, because it works perfectly fine here:

Breakpoint 1, zif_var_dump (ht=1, return_value=0x836c1ac, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0) at /local/dev/php/5_2/ext/standard/var.c:177
177             argc = ZEND_NUM_ARGS();
(gdb) print (char*)(executor_globals.function_state_ptr->function)->common.function_name
$1 = 0x829c56b "var_dump"
 [2007-06-27 09:02 UTC] jan at horde dot org
I never, ever made a ZTS build of PHP in my whole life. And just to be sure, I verified with phpinfo().
Anything else I could check? I don't know my way through gdb, I only use it for generating backtraces. Is there a way to list the available symbols?
 [2007-06-28 05:54 UTC] tony2001@php.net
Try this:
gdb php
b zif_var_dump
r -r 'var_dump(1);'
p (char*)(executor_globals.function_state_ptr->function)->common.function_name
 [2007-06-28 08:15 UTC] jan at horde dot org
This works fine. But I'm loading httpd when debugging segfaults.
 [2007-06-28 08:27 UTC] tony2001@php.net
I don't see any difference assuming that ZTS is disabled.
Jan, do you use IRC? It's incovenient to talk using the bugtracker.
 [2007-07-06 01:00 UTC] phpdoc at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC