Grokbase Groups PHP php-doc June 2007
FAQ
From: jan at horde dot org
Operating system:
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Backtrace instructions don't work anymore

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.

Search Discussions

  • Tony2001 at Jun 26, 2007 at 12:47 pm
    ID: 41812
    Updated by: tony2001@php.net
    Reported By: jan at horde dot org
    -Status: Open
    +Status: Feedback
    Bug Type: Documentation problem
    PHP Version: Irrelevant
    New Comment:

    Did you enable ZTS ?


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-06-26 12:34:34] 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.



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


    --
    Edit this bug report at http://bugs.php.net/?id=41812&edit=1
  • Jan at horde dot org at Jun 27, 2007 at 8:16 am
    ID: 41812
    User updated by: jan at horde dot org
    Reported By: jan at horde dot org
    -Status: Feedback
    +Status: Open
    Bug Type: Documentation problem
    PHP Version: Irrelevant
    New Comment:

    No, it's a debug non-zts linux build.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-06-26 12:47:01] tony2001@php.net

    Did you enable ZTS ?

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

    [2007-06-26 12:34:34] 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.



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


    --
    Edit this bug report at http://bugs.php.net/?id=41812&edit=1
  • Tony2001 at Jun 27, 2007 at 8:46 am
    ID: 41812
    Updated by: tony2001@php.net
    Reported By: jan at horde dot org
    -Status: Open
    +Status: Feedback
    Bug Type: Documentation problem
    PHP Version: Irrelevant
    New Comment:

    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"


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-06-27 08:16:27] jan at horde dot org

    No, it's a debug non-zts linux build.

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

    [2007-06-26 12:47:01] tony2001@php.net

    Did you enable ZTS ?

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

    [2007-06-26 12:34:34] 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.



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


    --
    Edit this bug report at http://bugs.php.net/?id=41812&edit=1
  • Jan at horde dot org at Jun 28, 2007 at 3:11 am
    ID: 41812
    User updated by: jan at horde dot org
    Reported By: jan at horde dot org
    -Status: Feedback
    +Status: Open
    Bug Type: Documentation problem
    PHP Version: Irrelevant
    New Comment:

    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?


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-06-27 08:45:55] 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 08:16:27] jan at horde dot org

    No, it's a debug non-zts linux build.

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

    [2007-06-26 12:47:01] tony2001@php.net

    Did you enable ZTS ?

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

    [2007-06-26 12:34:34] 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.



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


    --
    Edit this bug report at http://bugs.php.net/?id=41812&edit=1
  • Tony2001 at Jun 28, 2007 at 5:54 am
    ID: 41812
    Updated by: tony2001@php.net
    Reported By: jan at horde dot org
    -Status: Open
    +Status: Feedback
    Bug Type: Documentation problem
    PHP Version: Irrelevant
    New Comment:

    Try this:
    gdb php
    b zif_var_dump
    r -r 'var_dump(1);'
    p
    (char*)(executor_globals.function_state_ptr->function)->common.function_name


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-06-27 09:02:36] 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-27 08:45:55] 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 08:16:27] jan at horde dot org

    No, it's a debug non-zts linux build.

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

    [2007-06-26 12:47:01] tony2001@php.net

    Did you enable ZTS ?

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

    [2007-06-26 12:34:34] 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.



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


    --
    Edit this bug report at http://bugs.php.net/?id=41812&edit=1
  • Jan at horde dot org at Jun 28, 2007 at 8:15 am
    ID: 41812
    User updated by: jan at horde dot org
    Reported By: jan at horde dot org
    -Status: Feedback
    +Status: Open
    Bug Type: Documentation problem
    PHP Version: Irrelevant
    New Comment:

    This works fine. But I'm loading httpd when debugging segfaults.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-06-28 05:54:10] 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-27 09:02:36] 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-27 08:45:55] 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 08:16:27] jan at horde dot org

    No, it's a debug non-zts linux build.

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

    [2007-06-26 12:47:01] tony2001@php.net

    Did you enable ZTS ?

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://bugs.php.net/41812

    --
    Edit this bug report at http://bugs.php.net/?id=41812&edit=1
  • Tony2001 at Jun 28, 2007 at 8:27 am
    ID: 41812
    Updated by: tony2001@php.net
    Reported By: jan at horde dot org
    -Status: Open
    +Status: Feedback
    Bug Type: Documentation problem
    PHP Version: Irrelevant
    New Comment:

    I don't see any difference assuming that ZTS is disabled.
    Jan, do you use IRC? It's incovenient to talk using the bugtracker.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-06-28 08:15:34] jan at horde dot org

    This works fine. But I'm loading httpd when debugging segfaults.

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

    [2007-06-28 05:54:10] 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-27 09:02:36] 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-27 08:45:55] 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 08:16:27] jan at horde dot org

    No, it's a debug non-zts linux build.

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://bugs.php.net/41812

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-doc @
categoriesphp
postedJun 26, '07 at 12:34p
activeJun 28, '07 at 8:27a
posts8
users2
websitedoc.php.net

2 users in discussion

Jan at horde dot org: 4 posts Tony2001: 4 posts

People

Translate

site design / logo © 2018 Grokbase