| 1 | [root@elf sbin]# gdb ./lighttpd
|
| 2 | GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
|
| 3 | Copyright 2004 Free Software Foundation, Inc.
|
| 4 | GDB is free software, covered by the GNU General Public License, and you are
|
| 5 | welcome to change it and/or distribute copies of it under certain conditions.
|
| 6 | Type "show copying" to see the conditions.
|
| 7 | There is absolutely no warranty for GDB. Type "show warranty" for details.
|
| 8 | This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
|
| 9 |
|
| 10 | (gdb) handle SIGPIPE pass nostop noprint
|
| 11 | Signal Stop Print Pass to program Description
|
| 12 | SIGPIPE No No Yes Broken pipe
|
| 13 | (gdb) r -D -f /etc/lighttpd/lighttpd.conf
|
| 14 | Starting program: /tmp/lighty/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
|
| 15 |
|
| 16 | Program received signal SIGSEGV, Segmentation fault.
|
| 17 | 0x0017c0ea in memcpy () from /lib/tls/libc.so.6
|
| 18 | (gdb) bt
|
| 19 | #0 0x0017c0ea in memcpy () from /lib/tls/libc.so.6
|
| 20 | #1 0x0805c48a in buffer_copy_string_len (b=0x9ab5448, s=0x9c48108 "/store/public/", s_len=14) at buffer.c:149
|
| 21 | #2 0x0805c4f7 in buffer_copy_string_buffer (b=0x9ab5448, src=0x9c14060) at buffer.c:163
|
| 22 | #3 0x0805048b in http_response_prepare (srv=0x9aa6008, con=0x9c1b260) at response.c:417
|
| 23 | #4 0x0805344d in connection_state_machine (srv=0x9aa6008, con=0x9c1b260) at connections.c:1429
|
| 24 | #5 0x0804f697 in main (argc=4, argv=0xbff826d4) at server.c:1438
|
| 25 | (gdb) list
|
| 26 | 1438 connection_state_machine(srv, con);
|
| 27 | 1439
|
| 28 | 1440 switch(r = plugins_call_handle_joblist(srv, con)) {
|
| 29 | 1441 case HANDLER_FINISHED:
|
| 30 | 1442 case HANDLER_GO_ON:
|
| 31 | 1443 break;
|
| 32 | 1444 default:
|
| 33 | 1445 log_error_write(srv, __FILE__, __LINE__, "d", r);
|
| 34 | 1446 break;
|
| 35 | 1447 }
|
| 36 |
|