You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pop3-dev@httpd.apache.org by Sung Kim <hu...@soe.ucsc.edu> on 2003/09/27 05:05:15 UTC

[httpd-pop3] UIDL Segment fault

Hello,

httpd_pop3 has problem with the UIDL command. It seems like that mm is
NULL after apr_mmap_create, even though the function returns APR_SUCESS.
Any idea?

- 
Sung Kim

(gdb) r -X
Starting program: /usr/local/apache2/bin/httpd -X
[New Thread 8192 (LWP 17911)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8192 (LWP 17911)]
0x080673b5 in compute_md5 (r=0x8173460, msg=0x81725e0) at
pop_protocol.c:109
109         apr_md5_update(ur->ctx, (char*)mm->mm + msg->header_start,
msg->msg_end - msg->header_start);
(gdb) p mm
$1 = (struct apr_mmap_t *) 0x0
(gdb) where
#0  0x080673b5 in compute_md5 (r=0x8173460, msg=0x81725e0) at
pop_protocol.c:109
#1  0x0806767f in generate_unique_listing (r=0x8173460, mbox=0x8174018,
num=1, with_ok=0) at pop_protocol.c:241
#2  0x08067e7e in ap_handle_uidl (r=0x8173460, buffer=0x8173cfe "") at
pop_protocol.c:566
#3  0x080674b6 in process_pop_connection_internal (r=0x8173460,
bb=0x81714f0) at pop_protocol.c:154
#4  0x08066f64 in process_pop_connection (c=0x81714f0) at pop_core.c:148
#5  0x08096132 in ap_run_process_connection (c=0x8169990) at
connection.c:85
#6  0x0808beef in child_main (child_num_arg=0) at prefork.c:694
#7  0x0808c09a in make_child (s=0x810f148, slot=0) at prefork.c:734
#8  0x0808c0f3 in startup_children (number_to_start=5) at prefork.c:806
#9  0x0808c7e5 in ap_mpm_run (_pconf=0x808b7d8, plog=0x8109bc8,
s=0x810f148) at prefork.c:1022
#10 0x080914fe in main (argc=2, argv=0xbffffad4) at main.c:660
#11 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6