apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48957] New: Core dumps when file changed [apr/linux mmap]
Date Mon, 22 Mar 2010 13:17:49 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48957

           Summary: Core dumps when file changed [apr/linux mmap]
           Product: APR
           Version: 1.3.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: hustdcy@gmail.com


apache httpd crash in mod_deflate when static file changed frequently. 

Steps to Reproduce: 
1. enable mod_deflate in httpd.conf 
SetOutputFilter DEFLATE 

2.  in anthor shell, change the index.html frenquently with mv command. eg: 

c=1
while [ $c -le 1 ]  
do
cp -r big/index.html tmp/
mv tmp/* ../htdocs/
cp -r small/index.html  tmp/
mv tmp/* ../htdocs/
done

the small/index.html size is 67086 bytes, and the  big/index.html size is 45139
bytes

3.  Stress test with apache ab
./ab -n 1000000 -c 10  -H 'Accept-Encoding: gzip'  http://localhost:8080/

Actual Results: 

Apache httpd v2.2.13 crashed, core dump stack: 

Core was generated by `/home/work/duchuanying/apache2/bin/httpd -d
/home/work/duchuanying/apache2 -k'.
Program terminated with signal 7, Bus error.

(gdb) bt
#0  0x000000302b6022d6 in crc32 () from /usr/lib64/libz.so.1
#1  0x0000002a959f012b in deflate_out_filter (f=0x6faf38, bb=0x6fb430) at
mod_deflate.c:681
#2  0x0000000000432ecd in default_handler (r=0x6f6648) at core.c:3757
#3  0x0000000000438963 in ap_run_handler (r=0x6f6648) at config.c:157
#4  0x0000000000438e01 in ap_invoke_handler (r=0x6f6648) at config.c:372
#5  0x0000000000474390 in ap_process_request (r=0x6f6648) at http_request.c:282
#6  0x0000000000471add in ap_process_http_connection (c=0x6ea7d8) at
http_core.c:190
#7  0x000000000043f423 in ap_run_process_connection (c=0x6ea7d8) at
connection.c:43
#8  0x00000000004a0de0 in child_main (child_num_arg=Variable "child_num_arg" is
not available.
) at prefork.c:662
#9  0x00000000004a1034 in make_child (s=0x601e60, slot=3) at prefork.c:758
#10 0x00000000004a10ce in startup_children (number_to_start=2) at prefork.c:776
#11 0x00000000004a18dd in ap_mpm_run (_pconf=Variable "_pconf" is not
available.
) at prefork.c:997
#12 0x0000000000426345 in main (argc=Variable "argc" is not available.
) at main.c:740
(gdb) bt full
#0  0x000000302b6022d6 in crc32 () from /usr/lib64/libz.so.1
No symbol table info available.
#1  0x0000002a959f012b in deflate_out_filter (f=0x6faf38, bb=0x6fb430) at
mod_deflate.c:681
        data = 0x2a95d6f000 <Address 0x2a95d6f000 out of bounds>
        b = Variable "b" is not available.


This bug is related to apr/linux mmap , mod_deflate, file changes.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message