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
That's not how USE=debug works... http://www.gentoo.org/proj/en/qa/backtraces.xml