httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8161] - child pid * exit signal Segmentation fault
Date Wed, 17 Apr 2002 11:37:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8161>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8161

child pid * exit signal Segmentation fault





------- Additional Comments From foobar@web.de  2002-04-17 11:37 -------
vi server/mpm/perchild/perchild.c
...
1556 len = strlen(foo);
...

foo is a null pointer ;(


root@rayman:/RAY/apa20/httpd-2.0.35 > gdb /usr/local/apache2/bin/httpd 
GNU gdb 5.1.1
Copyright 2002 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-suse-linux"...
(gdb) b pass_request
Breakpoint 1 at 0x80829e5: file perchild.c, line 1541.
(gdb) run -X -d /usr/local/apache2
Starting program: /usr/local/apache2/bin/httpd -X -d /usr/local/apache2
[New Thread 1024 (LWP 29631)]
[New Thread 2049 (LWP 29633)]
[New Thread 1026 (LWP 29634)]
[New Thread 2051 (LWP 29635)]
[New Thread 3076 (LWP 29636)]
[New Thread 4101 (LWP 29637)]
[New Thread 5126 (LWP 29638)]
[New Thread 6151 (LWP 29639)]
[Switching to Thread 1026 (LWP 29634)]

Breakpoint 1, pass_request (r=0x8139e50) at perchild.c:1541
1541        apr_socket_t *thesock =
ap_get_module_config(r->connection->conn_config, &core_module);
(gdb) n
1547        apr_bucket_brigade *bb = apr_brigade_create(r->pool, c->bucket_alloc);
(gdb) n
1541        apr_socket_t *thesock =
ap_get_module_config(r->connection->conn_config, &core_module);
(gdb) n
1547        apr_bucket_brigade *bb = apr_brigade_create(r->pool, c->bucket_alloc);
(gdb) n
1548        perchild_server_conf *sconf = (perchild_server_conf *)
(gdb) n
1558        apr_os_sock_get(&sfd, thesock);
(gdb) n
1548        perchild_server_conf *sconf = (perchild_server_conf *)
(gdb) n
1556        len = strlen(foo);
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
0x08082a50 in pass_request (r=0x8139e50) at perchild.c:1556
1556        len = strlen(foo);
(gdb) bt
#0  0x08082a50 in pass_request (r=0x8139e50) at perchild.c:1556
#1  0x08082de4 in perchild_post_read (r=0x8139e50) at perchild.c:1673
#2  0x0809371c in ap_run_post_read_request (r=0x8139e50) at protocol.c:1563
#3  0x080925b8 in ap_read_request (conn=0x8117ea0) at protocol.c:944
#4  0x0806a2a1 in ap_process_http_connection (c=0x8117ea0) at http_core.c:304
#5  0x0808e74d in ap_run_process_connection (c=0x8117ea0) at connection.c:85
#6  0x0808ea90 in ap_process_connection (c=0x8117ea0, csd=0x8117dc8) at
connection.c:207
#7  0x08080f9b in process_socket (p=0x8117d90, sock=0x8117dc8, conn_id=0,
bucket_alloc=0x8148848) at perchild.c:570
#8  0x0808161a in worker_thread (thd=0x810fff0, arg=0x810fda8) at perchild.c:807
#9  0x4003bfe3 in dummy_worker (opaque=0x810fff0) at thread.c:127
#10 0x40196e67 in pthread_start_thread () from /lib/libpthread.so.0
#11 0x40196eb5 in pthread_start_thread_event () from /lib/libpthread.so.0
(gdb)

Mime
View raw message