重装之后可以调试了
(gdb) run -X -f /usr/local/etc/apache22/httpd.conf
Starting program: /usr/local/sbin/httpd -X -f /usr/local/etc/apache22/httpd.conf
[New LWP 100275]
[New Thread 0x801201120 (LWP 100275)]
(48)Address already in use: make_sock: could not bind to address [::]:80
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x801201120 (LWP 100275)]
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x0000000000000000 in ?? ()
#2 0x0000000000000000 in ?? ()
#3 0x0000000000000000 in ?? ()
#4 0x0000000000000000 in ?? ()
#5 0x0000000000000000 in ?? ()
#6 0x0000000000000000 in ?? ()
#7 0x00007fffffffbfc0 in ?? ()
#8 0x0000000000000000 in ?? ()
#9 0x0000000600000000 in ?? ()
#10 0x0000000804f25568 in ?? ()
#11 0x0000000300000001 in ?? ()
#12 0x0000000804f25368 in ?? ()
#13 0x00007fffffffcf00 in ?? ()
#14 0x0000000200000003 in ?? ()
#15 0x0000000804ff35d0 in ?? ()
#16 0x0000000804a978a2 in zend_do_fcall_common_helper_SPEC () from /usr/local/libexec/apache22/libphp5.so
#17 0x0000000804a88773 in execute () from /usr/local/libexec/apache22/libphp5.so
#18 0x0000000804a683a3 in zend_execute_scripts () from /usr/local/libexec/apache22/libphp5.so
#19 0x0000000804a2427d in php_execute_script () from /usr/local/libexec/apache22/libphp5.so
#20 0x0000000804ae972d in php_handler () from /usr/local/libexec/apache22/libphp5.so
#21 0x0000000000432eaa in ap_run_handler (r=0x809433098) at config.c:157
#22 0x00000000004360dc in ap_invoke_handler (r=0x809433098) at config.c:372
#23 0x00000000004404de in ap_process_request (r=0x809433098) at http_request.c:258
#24 0x000000000043d928 in ap_process_http_connection (c=0x809427288) at http_core.c:190
#25 0x0000000000439cb2 in ap_run_process_connection (c=0x809427288) at connection.c:43
#26 0x000000000044447e in child_main (child_num_arg=Variable "child_num_arg" is not available.
) at prefork.c:640
#27 0x00000000004446c8 in make_child (s=0x801217708, slot=0) at prefork.c:680
#28 0x000000000044512f in ap_mpm_run (_pconf=Variable "_pconf" is not available.
) at prefork.c:956
#29 0x0000000000420b9d in main (argc=4, argv=0x7fffffffeb80) at main.c:730
【 在 cougarwww (菲平) 的大作中提到: 】
: bbs# /usr/local/etc/rc.d/apache22 stop
: Stopping apache22.
: Waiting for PIDS: 871.
: ...................
--
FROM 211.99.222.*