Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200510 - dev-lang/php debug flag does not work correctly
Summary: dev-lang/php debug flag does not work correctly
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-27 13:13 UTC by Christian Weiske
Modified: 2007-11-27 13:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Weiske 2007-11-27 13:13:13 UTC
Although I enabled the debug flag for php 5.2.5, and php -v says DEBUG, I get no usable backtraces:

(gdb) bt
#0  0x00000000007fa46f in zend_call_function ()
#1  0x00000000007f8f6e in call_user_function_ex ()
#2  0x00000000006ee61c in zif_call_user_func ()
#3  0x0000000000832369 in ?? ()
#4  0x00000000008384c5 in ?? ()
#5  0x0000000000831e0a in execute ()
#6  0x00000000008324f8 in ?? ()


When installing a vanilla php 5.2.5 with --enable-debug, I get them:
(gdb) bt
#0  0x00000000006e1491 in zend_call_function (fci=0x7fff35552e90, fci_cache=0x0) at /home/cweiske/compilethings/php-5.2.5/Zend/zend_execute_API.c:911
#1  0x00000000006e0024 in call_user_function_ex (function_table=0xacfbc0, object_pp=0x0, function_name=0xf874b8, retval_ptr_ptr=0x7fff35552f30,
    param_count=3, params=0xc2df00, no_separation=0, symbol_table=0x0) at /home/cweiske/compilethings/php-5.2.5/Zend/zend_execute_API.c:617
...



Reproducible: Always



Expected Results:  
gdb delivers full, usable backtraces
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-27 13:24:24 UTC
That's not how USE=debug works...

http://www.gentoo.org/proj/en/qa/backtraces.xml