先贴一下刚才的结果:
[root@triple /]# gdb /www/bin/httpd
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -X -f /www/conf/httpd.conf
Starting program: /www/bin/httpd -X -f /www/conf/httpd.conf
Reading symbols from shared object read from target memory...(no debugging symbols found)...done.
Loaded system supplied DSO at 0x29e000
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1208842560 (LWP 21099)]
[New Thread 14119116 (LWP 8)]
Error while reading shared library symbols:
Can't attach LWP 8: Operation not permitted
Program received signal SIGBUS, Bus error.
[Switching to Thread -1208842560 (LWP 21099)]
0x00126c41 in resolve_boards () at bcache.c:191
191 if (bcache[i].filename[0]) {
(gdb) bt
#0 0x00126c41 in resolve_boards () at bcache.c:191
#1 0x003d9aaf in initialize_ext () at phpbbslib.c:191
#2 0x003d9b19 in zif_bbs_init_ext (ht=0, return_value=0x9515a64, this_ptr=0x0, return_value_used=0) at phpbbslib.c:230
#3 0x008ff32b in execute (op_array=0x94f7bc4) at /root/php-4.4.2/Zend/zend_execute.c:1675
#4 0x008fb17a in execute (op_array=0x94f2e84) at /root/php-4.4.2/Zend/zend_execute.c:2272
#5 0x008e9fa1 in zend_execute_scripts (type=8, retval=Variable "retval" is not available.
) at /root/php-4.4.2/Zend/zend.c:934
#6 0x008c2c62 in php_execute_script (primary_file=0xbfc394e8) at /root/php-4.4.2/main/main.c:1753
#7 0x009039a6 in apache_php_module_main (r=0x94eba3c, display_source_mode=0) at /root/php-4.4.2/sapi/apache/sapi_apache.c:54
#8 0x00904217 in send_php (r=0x94eba3c, display_source_mode=0, filename=0x0) at /root/php-4.4.2/sapi/apache/mod_php4.c:627
#9 0x0806a7b3 in ap_invoke_handler ()
#10 0x0808006e in process_request_internal ()
#11 0x080800ce in ap_process_request ()
#12 0x08076bbf in child_main ()
#13 0x08076de2 in make_child ()
#14 0x08076f36 in startup_children ()
#15 0x080775cc in standalone_main ()
#16 0x08077dd3 in main ()
(gdb)
【 在 atppp (Big Mouse) 的大作中提到: 】
:
http://www.newsmth.net/bbscon.php?bid=196&id=55683--
FROM 61.50.141.*