You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Sander Striker <st...@apache.org> on 2002/03/07 13:55:53 UTC

[SEGV] mod_deflate

Hi,

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 3503)]
0x402e24b3 in strncmp (s1=0x0, s2=0x403fc7c8 "text/html", n=9) at ../sysdeps/generic/strncmp.c:42
42                c1 = (unsigned char) *s1++;
(gdb) bt
#0  0x402e24b3 in strncmp (s1=0x0, s2=0x403fc7c8 "text/html", n=9) at ../sysdeps/generic/strncmp.c:42
#1  0x403fbfdb in deflate_out_filter (f=0x8154b18, bb=0x8154ec8) at mod_deflate.c:244
#2  0x8085a11 in ap_pass_brigade (next=0x8154b18, bb=0x8154ec8) at util_filter.c:534
#3  0x808743d in end_output_stream (r=0x81535d0) at protocol.c:941
#4  0x808748b in ap_finalize_request_protocol (r=0x81535d0) at protocol.c:961
#5  0x806b805 in ap_die (type=-2, r=0x81535d0) at http_request.c:110
#6  0x806ba8a in ap_process_request (r=0x81535d0) at http_request.c:273
#7  0x80680ec in ap_process_http_connection (c=0x8141d48) at http_core.c:287
#8  0x8083f49 in ap_run_process_connection (c=0x8141d48) at connection.c:85
#9  0x80841ef in ap_process_connection (c=0x8141d48, csd=0x8141c78) at connection.c:229
#10 0x807a466 in child_main (child_num_arg=0) at prefork.c:671
#11 0x807a51c in make_child (s=0x813fa18, slot=0) at prefork.c:707
#12 0x807a611 in startup_children (number_to_start=5) at prefork.c:784
#13 0x807a923 in ap_mpm_run (_pconf=0x80b2838, plog=0x80ea918, s=0x813fa18) at prefork.c:1002
#14 0x807f8ad in main (argc=2, argv=0xbffffdac) at main.c:499
#15 0x4028826a in __libc_start_main (main=0x807f1f0 <main>, argc=2, ubp_av=0xbffffdac, init=0x805e5b4 <_init>, fini=0x80957f4
<_fini>,
    rtld_fini=0x4000daa4 <_dl_fini>, stack_end=0xbffffd9c) at ../sysdeps/generic/libc-start.c:129
(gdb) frame 1
#1  0x403fbfdb in deflate_out_filter (f=0x8154b18, bb=0x8154ec8) at mod_deflate.c:244
244             if (strncmp(r->content_type, "text/html", 9)
(gdb) list
239
240             /* Some browsers might have problems with content types
241              * other than text/html, so set gzip-only-text/html
242              * (with browsermatch) for them
243              */
244             if (strncmp(r->content_type, "text/html", 9)
245                 && apr_table_get(r->subprocess_env, "gzip-only-text/html")) {
246                 return ap_pass_brigade(f->next, bb);
247             }
248

Can someone tell me if r->content_type is always supposed to be pointing to something?

Sander


RE: [SEGV] mod_deflate

Posted by Sander Striker <st...@apache.org>.
> From: Sander Striker [mailto:striker@apache.org]
> Sent: 07 March 2002 13:56

> Hi,
> 
[...]
> 
> Can someone tell me if r->content_type is always supposed
> to be pointing to something?

Nevermind, I figured it out by looking at the other modules
who test r->content_type.

Fix committed.

Thanks,

Sander