[users@httpd] Apache 2.2.21 Seg Fault
Hi, We have been seeing some segfaults in apache httpd. Following is the dbx output that I see. Use `help core mismatch' for more info. (l@1) terminated by signal SEGV (Segmentation Fault) 0x: bad address 0x (dbx) lwps ol@1 signal SIGSEGV in 0x7dddcb98() l@54 LWP suspended in 0x7e301570() (dbx) lwp l@1 (l@1) stopped in (unknown) at 0x7dddcb98 0x7dddcb98: bcc,a,pt %icc,0x7dddcba8 ! 0x7dddcba8 (dbx) where [1] 0x7dddcb98(0x4, 0x733c, 0x0, 0x0, 0x0, 0x0), at 0x7dddcb98 [2] 0x7ddca1b0(0x36, 0x733c, 0x0, 0x0, 0x0, 0x0), at 0x7ddca1b0 [3] 0x7ddd50f8(0x36, 0x0, 0x73f8, 0x1, 0x0, 0x733c), at 0x7ddd50f8 [4] 0x7ea2ce78(0x74cc, 0x100265aa8, 0x40, 0x74c0, 0x100265ad0, 0x100265ad0), at 0x7ea2ce78 [5] join_workers(0x10, 0x10029c2a8, 0x74cc, 0x10018f000, 0x74c0, 0x33), at 0x1000659d8 [6] child_main(0x1, 0x1d4c1, 0x100191748, 0x10018ff54, 0x100264918, 0x1), at 0x100065efc [7] perform_idle_server_maintenance(0xffe3, 0x100064, 0x0, 0x1000856c8, 0x3, 0x0), at 0x100066ab4 [8] server_main_loop(0x0, 0x40, 0x78f00068, 0x10018f000, 0x10019170c, 0x780c), at 0x100067240 [9] ap_mpm_run(0x10018f000, 0x41, 0x0, 0x200041, 0x0, 0x40), at 0x1000675bc [10] main(0x2400, 0x1001a9c18, 0x1001a5240, 0x100078980, 0x0, 0x7ca0), at 0x100020978 (dbx) Any pointers what going wrong here? Thanks,
Re: [users@httpd] Apache fails to start when mod_deflate is enabled
Hi, tThe apache is built on a AMD64 and the target machine where I am trying to run is also a AMD 64. Here is the isainfo -v output from both the machines Build Machine == isainfo -v 64-bit amd64 applications cx16 mon sse3 pause sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu 32-bit i386 applications cx16 mon sse3 pause sse2 sse fxsr mmx cmov sep cx8 tsc fpu Target Machine == isainfo -v 64-bit amd64 applications pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp cx16 sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu 32-bit i386 applications pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp cx16 sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu I tried rebuilding apache with -Kpic -xmodel=medium but the problem persists. Am I missing something else here? Thanks, From: Igor Cicimov icici...@gmail.com To: users users@httpd.apache.org Sent: Wednesday, January 9, 2013 1:43 PM Subject: Re: [users@httpd] Apache fails to start when mod_deflate is enabled On 09/01/2013 6:14 PM, Abhi Auradkar aura...@yahoo.com wrote: Hi, Probing further I see that mod_deflate is having some problems.. and zcalloc, zcfree etc.. which seem like related zlib. I may be wrong here. Your thoughts? bash-3.2# ldd -r /usr/local/apache2/modules/mod_deflate.so libc.so.1 = /lib/64/libc.so.1 ld.so.1: lddstub: fatal: relocation error: R_AMD64_32: file /usr/local/apache2/modules/mod_deflate.so: symbol zcalloc: value 0xfd7fff343880 does not fit ld.so.1: lddstub: fatal: relocation error: R_AMD64_32: file /usr/local/apache2/modules/mod_deflate.so: symbol zcalloc: value 0xfd7fff343880 does not fit ld.so.1: lddstub: fatal: relocation error: R_AMD64_32: file /usr/local/apache2/modules/mod_deflate.so: symbol zcfree: value 0xfd7fff3438e0 does not fit ld.so.1: lddstub: fatal: relocation error: R_AMD64_32: file /usr/local/apache2/modules/mod_deflate.so: symbol zcfree: value 0xfd7fff3438e0 does not fit Did you maybe compiled apache on SPARC and moved to AMD64 machine? Did apache run without errors on the compile box? Maybe this can help explaining why you are seeing the error: https://blogs.oracle.com/rie/entry/my_relocations_don_t_fit Thanks, From: Igor Cicimov icici...@gmail.com To: users users@httpd.apache.org; Abhi Auradkar aura...@yahoo.com Sent: Wednesday, January 9, 2013 12:02 PM Subject: Re: [users@httpd] Apache fails to start when mod_deflate is enabled On Wed, Jan 9, 2013 at 5:14 PM, Abhi Auradkar aura...@yahoo.com wrote: Hi, I am trying to get the details for the machine on which it was built. Meanwhile my concern is while the apache runs fine when mod_deflate is disabled. Has it got to do something with the libz on the machine? Hmm very possibly. I would run ldd against httpd binary and compare the lib versions of all the libs apache is linked to with the ones on the build machine, starting with libz. Thanks, From: Igor Cicimov icici...@gmail.com To: users users@httpd.apache.org; Abhi Auradkar aura...@yahoo.com Sent: Wednesday, January 9, 2013 11:19 AM Subject: Re: [users@httpd] Apache fails to start when mod_deflate is enabled On Wed, Jan 9, 2013 at 4:30 PM, Abhi Auradkar aura...@yahoo.com wrote: Hi, This apache is compiled from source. It was compiled on another machine though. In that case both boxes have to be completely identical, same hardware and software structure. Was the other box maybe 32 bit machine? This is what the file and ldd result in. (The libraries refered are present in /lib/64) bash-3.2# file /usr/local/apache2/modules/mod_deflate.so /usr/local/apache2/modules/mod_deflate.so: ELF 64-bit LSB dynamic lib AMD64 Version 1 [SSE CMOV], dynamically linked, not stripped bash-3.2#ldd usr/local/apache2/modules/mod_deflate.so libc.so.1 = /lib/64/libc.so.1 libm.so.2 = /lib/64/libm.so.2 Thanks, From: Igor Cicimov icici...@gmail.com To: users users@httpd.apache.org; Abhi Auradkar aura...@yahoo.com Sent: Wednesday, January 9, 2013 4:55 AM Subject: Re: [users@httpd] Apache fails to start when mod_deflate is enabled On Tue, Jan 8, 2013 at 11:01 PM, Abhi Auradkar aura...@yahoo.com wrote: Hi, On a solaris AMD64 bit machine the apache server fails to start when mod_deflate is enabled. Following is the error that I see. httpd: Syntax error on line 934 of /usr/local/apache2/conf/httpd.conf: Syntax error on line 5 of /usr/local/apache2/conf/modules.conf: Cannot load /usr/local/apache2/modules/mod_deflate.so into server: ld.so.1: httpd: fatal: relocation error: R_AMD64_PC32: file /usr/local/apache2/modules/mod_deflate.so: symbol memset: value 0x28001baf05a does not fit Machine Details --- SunOS pearl 5.10 Generic_142910-17 i86pc
[users@httpd] Apache fails to start when mod_deflate is enabled
Hi, On a solaris AMD64 bit machine the apache server fails to start when mod_deflate is enabled. Following is the error that I see. httpd: Syntax error on line 934 of /usr/local/apache2/conf/httpd.conf: Syntax error on line 5 of /usr/local/apache2/conf/modules.conf: Cannot load /usr/local/apache2/modules/mod_deflate.so into server: ld.so.1: httpd: fatal: relocation error: R_AMD64_PC32: file /usr/local/apache2/modules/mod_deflate.so: symbol memset: value 0x28001baf05a does not fit Machine Details --- SunOS pearl 5.10 Generic_142910-17 i86pc i386 i86pc 64-bit amd64 applications sse4.2 sse4.1 ssse3 popcnt tscp cx16 mon sse3 pause sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu 32-bit i386 applications sse4.2 sse4.1 ssse3 popcnt tscp cx16 mon sse3 pause sse2 sse fxsr mmx cmov sep cx8 tsc fpu Any pointers whats wrong here. Appreciate your help! Thanks,
Re: [users@httpd] Apache fails to start when mod_deflate is enabled
Hi, This apache is compiled from source. It was compiled on another machine though. This is what the file and ldd result in. (The libraries refered are present in /lib/64) bash-3.2# file /usr/local/apache2/modules/mod_deflate.so /usr/local/apache2/modules/mod_deflate.so: ELF 64-bit LSB dynamic lib AMD64 Version 1 [SSE CMOV], dynamically linked, not stripped bash-3.2#ldd usr/local/apache2/modules/mod_deflate.so libc.so.1 = /lib/64/libc.so.1 libm.so.2 = /lib/64/libm.so.2 Thanks, From: Igor Cicimov icici...@gmail.com To: users users@httpd.apache.org; Abhi Auradkar aura...@yahoo.com Sent: Wednesday, January 9, 2013 4:55 AM Subject: Re: [users@httpd] Apache fails to start when mod_deflate is enabled On Tue, Jan 8, 2013 at 11:01 PM, Abhi Auradkar aura...@yahoo.com wrote: Hi, On a solaris AMD64 bit machine the apache server fails to start when mod_deflate is enabled. Following is the error that I see. httpd: Syntax error on line 934 of /usr/local/apache2/conf/httpd.conf: Syntax error on line 5 of /usr/local/apache2/conf/modules.conf: Cannot load /usr/local/apache2/modules/mod_deflate.so into server: ld.so.1: httpd: fatal: relocation error: R_AMD64_PC32: file /usr/local/apache2/modules/mod_deflate.so: symbol memset: value 0x28001baf05a does not fit Machine Details --- SunOS pearl 5.10 Generic_142910-17 i86pc i386 i86pc 64-bit amd64 applications sse4.2 sse4.1 ssse3 popcnt tscp cx16 mon sse3 pause sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu 32-bit i386 applications sse4.2 sse4.1 ssse3 popcnt tscp cx16 mon sse3 pause sse2 sse fxsr mmx cmov sep cx8 tsc fpu Any pointers whats wrong here. Appreciate your help! Thanks, First how did you install apache, using Solaris binary or compiled from source? Second, post the output of: $ file /usr/local/apache2/modules/mod_deflate.so $ ldd /usr/local/apache2/modules/mod_deflate.so
Re: [users@httpd] Apache fails to start when mod_deflate is enabled
Hi, I am trying to get the details for the machine on which it was built. Meanwhile my concern is while the apache runs fine when mod_deflate is disabled. Has it got to do something with the libz on the machine? Thanks, From: Igor Cicimov icici...@gmail.com To: users users@httpd.apache.org; Abhi Auradkar aura...@yahoo.com Sent: Wednesday, January 9, 2013 11:19 AM Subject: Re: [users@httpd] Apache fails to start when mod_deflate is enabled On Wed, Jan 9, 2013 at 4:30 PM, Abhi Auradkar aura...@yahoo.com wrote: Hi, This apache is compiled from source. It was compiled on another machine though. In that case both boxes have to be completely identical, same hardware and software structure. Was the other box maybe 32 bit machine? This is what the file and ldd result in. (The libraries refered are present in /lib/64) bash-3.2# file /usr/local/apache2/modules/mod_deflate.so /usr/local/apache2/modules/mod_deflate.so: ELF 64-bit LSB dynamic lib AMD64 Version 1 [SSE CMOV], dynamically linked, not stripped bash-3.2#ldd usr/local/apache2/modules/mod_deflate.so libc.so.1 = /lib/64/libc.so.1 libm.so.2 = /lib/64/libm.so.2 Thanks, From: Igor Cicimov icici...@gmail.com To: users users@httpd.apache.org; Abhi Auradkar aura...@yahoo.com Sent: Wednesday, January 9, 2013 4:55 AM Subject: Re: [users@httpd] Apache fails to start when mod_deflate is enabled On Tue, Jan 8, 2013 at 11:01 PM, Abhi Auradkar aura...@yahoo.com wrote: Hi, On a solaris AMD64 bit machine the apache server fails to start when mod_deflate is enabled. Following is the error that I see. httpd: Syntax error on line 934 of /usr/local/apache2/conf/httpd.conf: Syntax error on line 5 of /usr/local/apache2/conf/modules.conf: Cannot load /usr/local/apache2/modules/mod_deflate.so into server: ld.so.1: httpd: fatal: relocation error: R_AMD64_PC32: file /usr/local/apache2/modules/mod_deflate.so: symbol memset: value 0x28001baf05a does not fit Machine Details --- SunOS pearl 5.10 Generic_142910-17 i86pc i386 i86pc 64-bit amd64 applications sse4.2 sse4.1 ssse3 popcnt tscp cx16 mon sse3 pause sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu 32-bit i386 applications sse4.2 sse4.1 ssse3 popcnt tscp cx16 mon sse3 pause sse2 sse fxsr mmx cmov sep cx8 tsc fpu Any pointers whats wrong here. Appreciate your help! Thanks, First how did you install apache, using Solaris binary or compiled from source? Second, post the output of: $ file /usr/local/apache2/modules/mod_deflate.so $ ldd /usr/local/apache2/modules/mod_deflate.so
Re: [users@httpd] Apache fails to start when mod_deflate is enabled
Hi, Probing further I see that mod_deflate is having some problems.. and zcalloc, zcfree etc.. which seem like related zlib. I may be wrong here. Your thoughts? bash-3.2# ldd -r /usr/local/apache2/modules/mod_deflate.so libc.so.1 = /lib/64/libc.so.1 ld.so.1: lddstub: fatal: relocation error: R_AMD64_32: file /usr/local/apache2/modules/mod_deflate.so: symbol zcalloc: value 0xfd7fff343880 does not fit ld.so.1: lddstub: fatal: relocation error: R_AMD64_32: file /usr/local/apache2/modules/mod_deflate.so: symbol zcalloc: value 0xfd7fff343880 does not fit ld.so.1: lddstub: fatal: relocation error: R_AMD64_32: file /usr/local/apache2/modules/mod_deflate.so: symbol zcfree: value 0xfd7fff3438e0 does not fit ld.so.1: lddstub: fatal: relocation error: R_AMD64_32: file /usr/local/apache2/modules/mod_deflate.so: symbol zcfree: value 0xfd7fff3438e0 does not fit Thanks, From: Igor Cicimov icici...@gmail.com To: users users@httpd.apache.org; Abhi Auradkar aura...@yahoo.com Sent: Wednesday, January 9, 2013 12:02 PM Subject: Re: [users@httpd] Apache fails to start when mod_deflate is enabled On Wed, Jan 9, 2013 at 5:14 PM, Abhi Auradkar aura...@yahoo.com wrote: Hi, I am trying to get the details for the machine on which it was built. Meanwhile my concern is while the apache runs fine when mod_deflate is disabled. Has it got to do something with the libz on the machine? Hmm very possibly. I would run ldd against httpd binary and compare the lib versions of all the libs apache is linked to with the ones on the build machine, starting with libz. Thanks, From: Igor Cicimov icici...@gmail.com To: users users@httpd.apache.org; Abhi Auradkar aura...@yahoo.com Sent: Wednesday, January 9, 2013 11:19 AM Subject: Re: [users@httpd] Apache fails to start when mod_deflate is enabled On Wed, Jan 9, 2013 at 4:30 PM, Abhi Auradkar aura...@yahoo.com wrote: Hi, This apache is compiled from source. It was compiled on another machine though. In that case both boxes have to be completely identical, same hardware and software structure. Was the other box maybe 32 bit machine? This is what the file and ldd result in. (The libraries refered are present in /lib/64) bash-3.2# file /usr/local/apache2/modules/mod_deflate.so /usr/local/apache2/modules/mod_deflate.so: ELF 64-bit LSB dynamic lib AMD64 Version 1 [SSE CMOV], dynamically linked, not stripped bash-3.2#ldd usr/local/apache2/modules/mod_deflate.so libc.so.1 = /lib/64/libc.so.1 libm.so.2 = /lib/64/libm.so.2 Thanks, From: Igor Cicimov icici...@gmail.com To: users users@httpd.apache.org; Abhi Auradkar aura...@yahoo.com Sent: Wednesday, January 9, 2013 4:55 AM Subject: Re: [users@httpd] Apache fails to start when mod_deflate is enabled On Tue, Jan 8, 2013 at 11:01 PM, Abhi Auradkar aura...@yahoo.com wrote: Hi, On a solaris AMD64 bit machine the apache server fails to start when mod_deflate is enabled. Following is the error that I see. httpd: Syntax error on line 934 of /usr/local/apache2/conf/httpd.conf: Syntax error on line 5 of /usr/local/apache2/conf/modules.conf: Cannot load /usr/local/apache2/modules/mod_deflate.so into server: ld.so.1: httpd: fatal: relocation error: R_AMD64_PC32: file /usr/local/apache2/modules/mod_deflate.so: symbol memset: value 0x28001baf05a does not fit Machine Details --- SunOS pearl 5.10 Generic_142910-17 i86pc i386 i86pc 64-bit amd64 applications sse4.2 sse4.1 ssse3 popcnt tscp cx16 mon sse3 pause sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu 32-bit i386 applications sse4.2 sse4.1 ssse3 popcnt tscp cx16 mon sse3 pause sse2 sse fxsr mmx cmov sep cx8 tsc fpu Any pointers whats wrong here. Appreciate your help! Thanks, First how did you install apache, using Solaris binary or compiled from source? Second, post the output of: $ file /usr/local/apache2/modules/mod_deflate.so $ ldd /usr/local/apache2/modules/mod_deflate.so
[users@httpd] mod_deflate fails to decompress incoming request data.
Hi, I am using apache 2.2.22 with mod_deflate and weblogic proxy module. I want to decompress incoming requests. But I am not able get this working. (The outgoing responses get compressed though) I add more debug statements to mod_deflate.c and see this error when a request arrives [Fri Aug 10 15:04:54 2012] [error] [client 135.250.128.95] we din't get the magic bytes inflateInit2 returned 20014 I have been trying to achieve this for quite sometime now with no luck. Any pointers on whats wrong. (I do have the INFLATE/DEFLATE configuration directives setup with necessary content-type.) Thanks, ~Abhi
Re: [users@httpd] Apache httpd 2.2.21 Segmentation faults
- Original Message - From: Jeff Trawick traw...@gmail.com To: users@httpd.apache.org Cc: Sent: Thursday, July 19, 2012 5:15 PM Subject: Re: [users@httpd] Apache httpd 2.2.21 Segmentation faults On Thu, Jul 19, 2012 at 7:32 AM, Abhi Auradkar aura...@yahoo.com wrote: Jeff, The cwmp handler has no functions like 'request_handler' and 'release_lock'. The internal redirect from cwmp handler goes to weblogic apache plugin which has to tunnel the request to a weblogic server cluster. Interesting... I suggest trying the latest WLS plugin release (11.1.1.6.0) and, if that doesn't resolve the problem, contact Oracle support. Thanks, ~Abhi - Original Message - From: Jeff Trawick traw...@gmail.com To: users@httpd.apache.org Cc: Sent: Thursday, July 19, 2012 4:49 PM Subject: Re: [users@httpd] Apache httpd 2.2.21 Segmentation faults On Thu, Jul 19, 2012 at 5:18 AM, Abhi Auradkar aura...@yahoo.com wrote: Hi, I tried attaching the debugger to apache running as a single instance(httpd -X) and head also turned on memcheck and accesscheck(check -all) with librtc. I saw a core dump and it had this stack. Is something going wrong in internal_redirect()? (dbx) where current thread: t@3 dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_core.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_core.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/connection.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/connection.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c [1] __rtc_trap_handler(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfee96e24 [2] 0x0(0x1205e0, 0x0, 0x0, 0x0, 0x0, 0xb), at 0x0 This is the point of failure. release_lock() is branching to zero. [3] release_lock(0x169050, 0x1cc8b0, 0x0, 0x189af0, 0x5, 0x1010101), at 0xfe1504a8 [4] request_handler(0x1539e0, 0x11d588, 0x1539e0, 0x0, 0x0, 0xfffeb748), at 0xfe15dfa8 request_handler and release_lock are third-party code. (same module as the cwmp function seen earlier in the stack?) This needs to be debugged from the perspective of that third-party code -- what was release_lock() trying to do when it branched to location zero, and why wasn't a valid function pointer available. [5] ap_run_handler(0x1539e0, 0x1cd7a8, 0x1717ca, 0xfef27378, 0xfee96c9c, 0xfee93dec), at 0x50314 [6] ap_invoke_handler(r = 0x1539e0), at 0x50fa4 [7] ap_internal_redirect_handler(new_uri = 0x12bdf0 /cwmp-allow/cwmpWeb/CPEMgt, r = 0x152ed0), at 0x7e34c =[8] cwmp_throttle_handler(r = 0x152ed0) (optimized), at 0xfe697c2c (line ~2403) in mod_cwmp.c [9] ap_run_handler(0x152ed0, 0x159ef0, 0x152ed0, 0x10b098, 0x153068, 0x153070), at 0x50314 [10] ap_invoke_handler(r = 0x152ed0), at 0x50fa4 [11] ap_process_request(r = 0x152ed0), at 0x7d6dc [12] ap_process_http_connection(c = 0x10b098), at 0x78e98 [13] ap_run_process_connection(0x10b098, 0x168268, 0x168268, 0x0, 0x1cddf0, 0xf79d0), at 0x5cba4 [14] ap_process_connection(c = 0x10b098, csd = 0x168268), at 0x5d270 [15] process_socket(p = 0x110fe8, sock = 0x168268, my_child_num = 0, my_thread_num = 0, bucket_alloc = 0xf79d0), at 0x91e8c [16] worker_thread(thd = 0x110e40, dummy = 0xe8690), at 0x92a68 [17
Re: [users@httpd] Apache httpd 2.2.21 Segmentation faults
Hi Jeff, The version you have mentined below is available as 64-bit lib. I will try my test with a 64bit version of apache. Thanks, ~Abhi - Original Message - From: Jeff Trawick traw...@gmail.com To: users@httpd.apache.org Cc: Sent: Thursday, July 19, 2012 5:15 PM Subject: Re: [users@httpd] Apache httpd 2.2.21 Segmentation faults On Thu, Jul 19, 2012 at 7:32 AM, Abhi Auradkar aura...@yahoo.com wrote: Jeff, The cwmp handler has no functions like 'request_handler' and 'release_lock'. The internal redirect from cwmp handler goes to weblogic apache plugin which has to tunnel the request to a weblogic server cluster. Interesting... I suggest trying the latest WLS plugin release (11.1.1.6.0) and, if that doesn't resolve the problem, contact Oracle support. Thanks, ~Abhi - Original Message - From: Jeff Trawick traw...@gmail.com To: users@httpd.apache.org Cc: Sent: Thursday, July 19, 2012 4:49 PM Subject: Re: [users@httpd] Apache httpd 2.2.21 Segmentation faults On Thu, Jul 19, 2012 at 5:18 AM, Abhi Auradkar aura...@yahoo.com wrote: Hi, I tried attaching the debugger to apache running as a single instance(httpd -X) and head also turned on memcheck and accesscheck(check -all) with librtc. I saw a core dump and it had this stack. Is something going wrong in internal_redirect()? (dbx) where current thread: t@3 dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_core.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_core.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/connection.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/connection.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c [1] __rtc_trap_handler(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfee96e24 [2] 0x0(0x1205e0, 0x0, 0x0, 0x0, 0x0, 0xb), at 0x0 This is the point of failure. release_lock() is branching to zero. [3] release_lock(0x169050, 0x1cc8b0, 0x0, 0x189af0, 0x5, 0x1010101), at 0xfe1504a8 [4] request_handler(0x1539e0, 0x11d588, 0x1539e0, 0x0, 0x0, 0xfffeb748), at 0xfe15dfa8 request_handler and release_lock are third-party code. (same module as the cwmp function seen earlier in the stack?) This needs to be debugged from the perspective of that third-party code -- what was release_lock() trying to do when it branched to location zero, and why wasn't a valid function pointer available. [5] ap_run_handler(0x1539e0, 0x1cd7a8, 0x1717ca, 0xfef27378, 0xfee96c9c, 0xfee93dec), at 0x50314 [6] ap_invoke_handler(r = 0x1539e0), at 0x50fa4 [7] ap_internal_redirect_handler(new_uri = 0x12bdf0 /cwmp-allow/cwmpWeb/CPEMgt, r = 0x152ed0), at 0x7e34c =[8] cwmp_throttle_handler(r = 0x152ed0) (optimized), at 0xfe697c2c (line ~2403) in mod_cwmp.c [9] ap_run_handler(0x152ed0, 0x159ef0, 0x152ed0, 0x10b098, 0x153068, 0x153070), at 0x50314 [10] ap_invoke_handler(r = 0x152ed0), at 0x50fa4 [11] ap_process_request(r = 0x152ed0), at 0x7d6dc [12] ap_process_http_connection(c = 0x10b098), at 0x78e98 [13] ap_run_process_connection(0x10b098, 0x168268, 0x168268, 0x0, 0x1cddf0, 0xf79d0), at 0x5cba4 [14] ap_process_connection(c = 0x10b098, csd = 0x168268), at 0x5d270 [15] process_socket(p = 0x110fe8, sock = 0x168268
Re: [users@httpd] Apache httpd 2.2.21 Segmentation faults
Hi, I tried attaching the debugger to apache running as a single instance(httpd -X) and head also turned on memcheck and accesscheck(check -all) with librtc. I saw a core dump and it had this stack. Is something going wrong in internal_redirect()? (dbx) where current thread: t@3 dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_core.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_core.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/connection.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/connection.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c [1] __rtc_trap_handler(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfee96e24 [2] 0x0(0x1205e0, 0x0, 0x0, 0x0, 0x0, 0xb), at 0x0 [3] release_lock(0x169050, 0x1cc8b0, 0x0, 0x189af0, 0x5, 0x1010101), at 0xfe1504a8 [4] request_handler(0x1539e0, 0x11d588, 0x1539e0, 0x0, 0x0, 0xfffeb748), at 0xfe15dfa8 [5] ap_run_handler(0x1539e0, 0x1cd7a8, 0x1717ca, 0xfef27378, 0xfee96c9c, 0xfee93dec), at 0x50314 [6] ap_invoke_handler(r = 0x1539e0), at 0x50fa4 [7] ap_internal_redirect_handler(new_uri = 0x12bdf0 /cwmp-allow/cwmpWeb/CPEMgt, r = 0x152ed0), at 0x7e34c =[8] cwmp_throttle_handler(r = 0x152ed0) (optimized), at 0xfe697c2c (line ~2403) in mod_cwmp.c [9] ap_run_handler(0x152ed0, 0x159ef0, 0x152ed0, 0x10b098, 0x153068, 0x153070), at 0x50314 [10] ap_invoke_handler(r = 0x152ed0), at 0x50fa4 [11] ap_process_request(r = 0x152ed0), at 0x7d6dc [12] ap_process_http_connection(c = 0x10b098), at 0x78e98 [13] ap_run_process_connection(0x10b098, 0x168268, 0x168268, 0x0, 0x1cddf0, 0xf79d0), at 0x5cba4 [14] ap_process_connection(c = 0x10b098, csd = 0x168268), at 0x5d270 [15] process_socket(p = 0x110fe8, sock = 0x168268, my_child_num = 0, my_thread_num = 0, bucket_alloc = 0xf79d0), at 0x91e8c [16] worker_thread(thd = 0x110e40, dummy = 0xe8690), at 0x92a68 [17] dummy_worker(opaque = 0x110e40), line 142 in thread.c (dbx) threads - Original Message - From: Jeff Trawick traw...@gmail.com To: users@httpd.apache.org; Abhi Auradkar aura...@yahoo.com Cc: Sent: Wednesday, June 6, 2012 1:25 AM Subject: Re: [users@httpd] Apache httpd 2.2.21 Segmentation faults On Mon, Jun 4, 2012 at 2:27 AM, Abhi Auradkar aura...@yahoo.com wrote: Hi All, I am running a apache 2.2.21 on Solaris Sparc. I see the following segmantation faults every now and then. Any pointers to whats wrong will be really helpful. Please get the stack of this thread, which is probably the one that crashed: t@68 a l@68 dummy_worker() LWP suspended in in can't get PC() As is also visible with pflags sometimes, Solaris can misidentify the main thread of the process as the crasher. That is blocked in read() during steady state and cannot crash. Thanks. t@1 (l@1) terminated by signal SEGV (Segmentation Fault) 0xff03e3ac: _read+0x000c: bcc,pt %icc,_read+0x20 ! 0xff03e3c0 (dbx) where current thread: t@1 =[1] _read(0x4, 0xffbff84b, 0x1, 0x0, 0x0, 0x0), at 0xff03e3ac [2] read(0x8, 0xffbff84b, 0x1, 0x0, 0x1cf4, 0x8), at 0xff02ca1c [3] ap_mpm_pod_check(0xd6d70, 0x6b854, 0xa, 0xff232a00, 0xfff7, 0x0), at 0x6f408 [4] child_main(0x5, 0xffbff8b4, 0x135d98, 0x1, 0x9f0ec, 0x1b0870), at 0x6cbbc [5] perform_idle_server_maintenance
Re: [users@httpd] Apache httpd 2.2.21 Segmentation faults
Jeff, The cwmp handler has no functions like 'request_handler' and 'release_lock'. The internal redirect from cwmp handler goes to weblogic apache plugin which has to tunnel the request to a weblogic server cluster. Thanks, ~Abhi - Original Message - From: Jeff Trawick traw...@gmail.com To: users@httpd.apache.org Cc: Sent: Thursday, July 19, 2012 4:49 PM Subject: Re: [users@httpd] Apache httpd 2.2.21 Segmentation faults On Thu, Jul 19, 2012 at 5:18 AM, Abhi Auradkar aura...@yahoo.com wrote: Hi, I tried attaching the debugger to apache running as a single instance(httpd -X) and head also turned on memcheck and accesscheck(check -all) with librtc. I saw a core dump and it had this stack. Is something going wrong in internal_redirect()? (dbx) where current thread: t@3 dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/config.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_request.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_core.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/modules/http/http_core.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/connection.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/connection.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c dbx: warning: can't find file /data/build_area/xml-data/build-dir/HDM-APACHEHTTPD2218-APACHE2221DEBUG/server/mpm/worker/worker.c [1] __rtc_trap_handler(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfee96e24 [2] 0x0(0x1205e0, 0x0, 0x0, 0x0, 0x0, 0xb), at 0x0 This is the point of failure. release_lock() is branching to zero. [3] release_lock(0x169050, 0x1cc8b0, 0x0, 0x189af0, 0x5, 0x1010101), at 0xfe1504a8 [4] request_handler(0x1539e0, 0x11d588, 0x1539e0, 0x0, 0x0, 0xfffeb748), at 0xfe15dfa8 request_handler and release_lock are third-party code. (same module as the cwmp function seen earlier in the stack?) This needs to be debugged from the perspective of that third-party code -- what was release_lock() trying to do when it branched to location zero, and why wasn't a valid function pointer available. [5] ap_run_handler(0x1539e0, 0x1cd7a8, 0x1717ca, 0xfef27378, 0xfee96c9c, 0xfee93dec), at 0x50314 [6] ap_invoke_handler(r = 0x1539e0), at 0x50fa4 [7] ap_internal_redirect_handler(new_uri = 0x12bdf0 /cwmp-allow/cwmpWeb/CPEMgt, r = 0x152ed0), at 0x7e34c =[8] cwmp_throttle_handler(r = 0x152ed0) (optimized), at 0xfe697c2c (line ~2403) in mod_cwmp.c [9] ap_run_handler(0x152ed0, 0x159ef0, 0x152ed0, 0x10b098, 0x153068, 0x153070), at 0x50314 [10] ap_invoke_handler(r = 0x152ed0), at 0x50fa4 [11] ap_process_request(r = 0x152ed0), at 0x7d6dc [12] ap_process_http_connection(c = 0x10b098), at 0x78e98 [13] ap_run_process_connection(0x10b098, 0x168268, 0x168268, 0x0, 0x1cddf0, 0xf79d0), at 0x5cba4 [14] ap_process_connection(c = 0x10b098, csd = 0x168268), at 0x5d270 [15] process_socket(p = 0x110fe8, sock = 0x168268, my_child_num = 0, my_thread_num = 0, bucket_alloc = 0xf79d0), at 0x91e8c [16] worker_thread(thd = 0x110e40, dummy = 0xe8690), at 0x92a68 [17] dummy_worker(opaque = 0x110e40), line 142 in thread.c (dbx) threads - Original Message - From: Jeff Trawick traw...@gmail.com To: users@httpd.apache.org; Abhi Auradkar aura...@yahoo.com Cc: Sent: Wednesday, June 6, 2012 1:25 AM Subject: Re: [users@httpd] Apache httpd 2.2.21 Segmentation faults On Mon, Jun 4, 2012 at 2:27 AM, Abhi Auradkar aura...@yahoo.com wrote: Hi All, I am running a apache 2.2.21 on Solaris Sparc
[users@httpd] Segmentation fault
Hi All, I am running apache 2.2.21 with weblogic brdige and another custom module. I see this segfault once or twice every hour: Can any one help me? bash-3.00# /home/vnair/sunstudio12.1/bin/dbx - /var/tmp/core.httpd.6257 Corefile specified executable: /usr/local/apache2/bin/./httpd For information about new features see `help changes' To remove this message, put `dbxenv suppress_startup_message 7.7' in your .dbxrc Reading httpd core file header read successfully Reading ld.so.1 Reading libm.so.2 Reading libaprutil-1.so.0.3.12 Reading libexpat.so.0.5.0 Reading libapr-1.so.0.4.5 Reading libuuid.so.1 Reading libsendfile.so.1 Reading librt.so.1 Reading libsocket.so.1 Reading libnsl.so.1 Reading libpthread.so.1 Reading libc.so.1 Reading libaio.so.1 Reading libmd.so.1 Reading libc_psr.so.1 Reading libldap.so.5 Reading libdl.so.1 Reading libsasl.so.1 Reading libmd_psr.so.1 Reading libplc4.so Reading libnspr4.so Reading libnspr_flt4.so Reading libssl3.so Reading libnss3.so Reading libnssutil3.so Reading libthread.so.1 Reading libplds4.so Reading libscf.so.1 Reading libdoor.so.1 Reading libuutil.so.1 Reading libgen.so.1 Reading libmp.so.2 Reading libCrun.so.1 Reading nss_files.so.1 Reading libcurl.so Reading libssl.so.0.9.8 Reading libcrypto.so.0.9.8 Reading libz.so.1.2.3 Reading mod_alias.so Reading mod_ssl.so Reading mod_wl_22.so Reading mod_rewrite.so Reading mod_cwmp_22.so t@1 (l@1) terminated by signal SEGV (Segmentation Fault) 0xff03e3ac: _read+0x000c: bcc,pt %icc,_read+0x20 ! 0xff03e3c0 (dbx) where current thread: t@1 =[1] _read(0x4, 0xffbff91b, 0x1, 0x0, 0x0, 0x0), at 0xff03e3ac [2] read(0x8, 0xffbff91b, 0x1, 0x0, 0x1cf4, 0x8), at 0xff02ca1c [3] ap_mpm_pod_check(0xd6d70, 0x6b854, 0xa, 0xff232a00, 0xfff7, 0x0), at 0x6f408 [4] child_main(0x7, 0xffbff984, 0x135d98, 0x1, 0x9f0ec, 0x1b0818), at 0x6cbbc [5] perform_idle_server_maintenance(0x1, 0x9f000, 0xafb70, 0x2, 0x7, 0x0), at 0x6d6ac [6] server_main_loop(0x0, 0x0, 0xe, 0x9f0b0, 0x0, 0xffbffb48), at 0x6dd10 [7] ap_mpm_run(0x20, 0xa07d8, 0x9f0b8, 0x0, 0x20, 0x60), at 0x6e000 [8] main(0x9e800, 0x4b8d0, 0x9ebb4, 0x7ddd0, 0x9d8e8, 0x9e800), at 0x29eac (dbx)(dbx) threads - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Uncompressing incoming requests
Hi Nick, I added some debug statements and error statements to mod_deflate code and built the module. The error is coming from the following /* We didn't get the magic bytes. */ if (len != 10 || deflate_hdr[0] != deflate_magic[0] || deflate_hdr[1] != deflate_magic[1]) { ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, magic bytes don't match); // --- I Added this error message return APR_EGENERAL; } The client is using java.util's gzip to send a compressed message. Does that mean that the gzip created from java.util library is not compatible with the one that mod_deflate is using?? Thanks, ~Abhi - Original Message - From: Nick Kew n...@webthing.com To: users@httpd.apache.org Cc: Sent: Tuesday, June 5, 2012 8:06 PM Subject: Re: [users@httpd] Uncompressing incoming requests On Tue, 5 Jun 2012 05:10:10 -0700 (PDT) Abhi Auradkar aura...@yahoo.com wrote: I added LogLevel debug to the httpd.conf file I do not see any extra logs in the error_log file. Should I do something further here to get detailed debug logs from mod_deflate? You should see quite a lot from mod_deflate if it's compressing the output! I can't say off the top of my head how much you'd see from it doing nothing (as on your input), but at debug level I'd expect it to tell you if it tries and fails to decompress something, as opposed to (say) seeing content that's not labelled as compressed and just getting out of the way. -- Nick Kew - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Uncompressing incoming requests
Hi All, I am trying to post compressed REST requests to apache. I have configured mod_deflate and have added the following configuration directive. Location / SetInputFilter DEFLATE /Location Even after doing the above configuration I do not see the requests getting uncompressed. Can any one help me with that. Thanks, ~Abhi
Re: [users@httpd] Uncompressing incoming requests
Hi Nick, Yes the location scope applies. And the mod_deflate is loaded as well. I have this directive defined in my conf file. LoadModule deflate_module modules/mod_deflate.so And to test it further I added the DEFLATE for outgoing content and I see that the outgoing content is gzipped(confirmed this by snooping the outgoing packets from the machine). Location / SetInputFilter DEFLATE SetOutputFilter DEFLATE /Location I also added the following to log more details. I see that the outgoing compression is logged. but do not see anything related to the incoming request and its decompression. DeflateFilterNote Input instream DeflateFilterNote Output outstream DeflateFilterNote Ratio ratio LogFormat '%r %{outstream}n/%{instream}n (%{ratio}n%%)' deflate CustomLog logs/deflate_log deflate I added LogLevel debug to the httpd.conf file I do not see any extra logs in the error_log file. Should I do something further here to get detailed debug logs from mod_deflate? Thanks, ~Abhi From: Nick Kew n...@webthing.com To: users@httpd.apache.org Sent: Tuesday, June 5, 2012 4:56 PM Subject: Re: [users@httpd] Uncompressing incoming requests On 5 Jun 2012, at 11:20, Abhi Auradkar wrote: Even after doing the above configuration I do not see the requests getting uncompressed. Can any one help me with that. You're sure the Location / scope applies? What does the error log say if you set LogLevel Debug? (oh, and - just checking - you do have mod_deflate loaded?) p.s. Please fix your mailer to post text. -- Nick Kew - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Apache httpd 2.2.21 Segmentation faults
Hi All, I am running a apache 2.2.21 on Solaris Sparc. I see the following segmantation faults every now and then. Any pointers to whats wrong will be really helpful. Thanks. t@1 (l@1) terminated by signal SEGV (Segmentation Fault) 0xff03e3ac: _read+0x000c: bcc,pt %icc,_read+0x20 ! 0xff03e3c0 (dbx) where current thread: t@1 =[1] _read(0x4, 0xffbff84b, 0x1, 0x0, 0x0, 0x0), at 0xff03e3ac [2] read(0x8, 0xffbff84b, 0x1, 0x0, 0x1cf4, 0x8), at 0xff02ca1c [3] ap_mpm_pod_check(0xd6d70, 0x6b854, 0xa, 0xff232a00, 0xfff7, 0x0), at 0x6f408 [4] child_main(0x5, 0xffbff8b4, 0x135d98, 0x1, 0x9f0ec, 0x1b0870), at 0x6cbbc [5] perform_idle_server_maintenance(0x0, 0x9f000, 0xafb70, 0x2, 0x5, 0x0), at 0x6d6ac [6] server_main_loop(0x0, 0x0, 0x5, 0x9f0b0, 0x0, 0xffbffa78), at 0x6dd10 [7] ap_mpm_run(0x20, 0xa07d8, 0x9f0b8, 0x0, 0x20, 0x60), at 0x6e000 [8] main(0x9e800, 0x4b8d0, 0x9ebb4, 0x7ddd0, 0x9d8e8, 0x9e800), at 0x29eac (dbx) threads o t@1 a l@1 ?() signal SIGSEGV in _read() t@3 a l@3 dummy_worker() sleep on 0x135e30 in __lwp_park() t@4 a l@4 dummy_worker() sleep on 0x135e30 in __lwp_park() t@5 a l@5 dummy_worker() sleep on 0x135e30 in __lwp_park() t@6 a l@6 dummy_worker() sleep on 0x135e30 in __lwp_park() t@7 a l@7 dummy_worker() sleep on 0x135e30 in __lwp_park() t@8 a l@8 dummy_worker() sleep on 0x135e30 in __lwp_park() t@9 a l@9 dummy_worker() sleep on 0x135e30 in __lwp_park() t@10 a l@10 dummy_worker() sleep on 0x135e30 in __lwp_park() t@11 a l@11 dummy_worker() sleep on 0x135e30 in __lwp_park() t@12 a l@12 dummy_worker() sleep on 0x135e30 in __lwp_park() t@13 a l@13 dummy_worker() sleep on 0x135e30 in __lwp_park() t@14 a l@14 dummy_worker() sleep on 0x135e30 in __lwp_park() t@15 a l@15 dummy_worker() sleep on 0x135e30 in __lwp_park() t@16 a l@16 dummy_worker() sleep on 0x135e30 in __lwp_park() t@17 a l@17 dummy_worker() sleep on 0x135e30 in __lwp_park() t@18 a l@18 dummy_worker() sleep on 0x135e30 in __lwp_park() t@19 a l@19 dummy_worker() sleep on 0x135e30 in __lwp_park() t@20 a l@20 dummy_worker() sleep on 0x135e30 in __lwp_park() t@21 a l@21 dummy_worker() sleep on 0x135e30 in __lwp_park() t@22 a l@22 dummy_worker() sleep on 0x135e30 in __lwp_park() t@23 a l@23 dummy_worker() sleep on 0x135e30 in __lwp_park() t@24 a l@24 dummy_worker() sleep on 0x135e30 in __lwp_park() t@25 a l@25 dummy_worker() sleep on 0x135e30 in __lwp_park() t@26 a l@26 dummy_worker() sleep on 0x135e30 in __lwp_park() t@27 a l@27 dummy_worker() sleep on 0x135e30 in __lwp_park() t@28 a l@28 dummy_worker() sleep on 0x135e30 in __lwp_park() t@29 a l@29 dummy_worker() sleep on 0x135e30 in __lwp_park() t@30 a l@30 dummy_worker() sleep on 0x135e30 in __lwp_park() t@31 a l@31 dummy_worker() sleep on 0x135e30 in __lwp_park() t@32 a l@32 dummy_worker() sleep on 0x135e30 in __lwp_park() t@33 a l@33 dummy_worker() sleep on 0x135e30 in __lwp_park() t@34 a l@34 dummy_worker() sleep on 0x135e30 in __lwp_park() t@35 a l@35 dummy_worker() sleep on 0x135e30 in __lwp_park() t@36 a l@36 dummy_worker() sleep on 0x135e30 in __lwp_park() t@37 a l@37 dummy_worker() sleep on 0x135e30 in __lwp_park() t@38 a l@38 dummy_worker() sleep on 0x135e30 in __lwp_park() t@39 a l@39 dummy_worker() sleep on 0x135e30 in __lwp_park() t@40 a l@40 dummy_worker() sleep on 0x135e30 in __lwp_park() t@41 a l@41 dummy_worker() sleep on 0x135e30 in __lwp_park() t@42 a l@42 dummy_worker() sleep on 0x135e30 in __lwp_park() t@43 a l@43 dummy_worker() sleep on 0x135e30 in __lwp_park() t@44 a l@44 dummy_worker() sleep on 0x135e30 in __lwp_park() t@45 a l@45 dummy_worker() sleep on 0x135e30 in __lwp_park() t@46 a l@46 dummy_worker() LWP suspended in _stat64() t@47 a l@47 dummy_worker() LWP suspended in __lwp_park() t@48 a l@48 dummy_worker() LWP suspended in __pollsys() t@49 a l@49 dummy_worker() LWP suspended in __pollsys() t@50 a l@50 dummy_worker() sleep on 0x135e30 in __lwp_park() t@51 a l@51 dummy_worker() LWP suspended in strstr() t@52 a l@52 dummy_worker() LWP suspended in __pollsys() t@53 a l@53 dummy_worker() LWP suspended in __pollsys() t@54 a l@54 dummy_worker() LWP suspended in __pollsys() t@55 a l@55 dummy_worker() sleep on 0xff0b5a60 in __lwp_park() t@56 a l@56 dummy_worker() LWP suspended in _lstat64() t@57 a l@57 dummy_worker() LWP suspended in __pollsys() t@58 a l@58
[users@httpd] Apache httpd with custom module does not start when I am not running is root
All, I have apache httpd 2.2.21. I load a custom module into it. When this is done I always need to be a root or sudo to start apache process. If I run apache as any other user the command 'httpd -k start' never returns to prompt. If I comment the LoadModule for my module apache starts fine even if I am not root. Any pointers why is this so. Am doing something wrong while building my module? I use apxs to compile the module. Appreciate your help!! Thanks, ~Abhi
[users@httpd] Apache httpd with custom module does not start when I am not running is root
All, I have apache httpd 2.2.21. I load a custom module into it. When this is done I always need to be a root or sudo to start apache process. If I run apache as any other user the command 'httpd -k start' never returns to prompt. If I comment the LoadModule for my module apache starts fine even if I am not root. Any pointers why is this so. Am doing something wrong while building my module? I use apxs to compile the module. Appreciate your help!! Thanks, ~Abhi
[users@httpd] Segmentation fault while using apr thread pool
Hi All, I am facing a problem while using the apr thread pool. I see a core dump intermittently. This is what the output looks with dbx. t@null (l@53) terminated by signal SEGV (no mapping at the fault address) 0x7fb7a948: add_if_empty+0x010c: st %i1, [%l2] (dbx) where =[1] add_if_empty(0x0, 0xa9f40, 0xa9e68, 0x0, 0x0, 0xa9e68), at 0x7fb7a948 [2] add_task(0xa9e68, 0x7f1baa38, 0x2fb7a0, 0x0, 0x1, 0x0), at 0x7fb7ac70 [3] 0x7f1b4b1c(0xcf060, 0x249dc0, 0x0, 0x0, 0x0, 0x17400), at 0x7f1b4b1c [4] 0x7f1b5ecc(0x24af48, 0x249dc0, 0x0, 0x7f1d288c, 0x5c, 0x7f1d21f0), at 0x7f1b5ecc [5] ap_run_handler(0x249dc0, 0x8, 0x12f040, 0x9fa18, 0x12f0a8, 0x4), at 0x4197c [6] ap_invoke_handler(0x249dc0, 0x0, 0x12f124, 0x0, 0x12f234, 0x0), at 0x41fb4 [7] ap_process_request(0x249dc0, 0x0, 0x249dc0, 0x3, 0x9eb28, 0x0), at 0x5e338 [8] ap_process_http_connection(0x23dfd0, 0x249dc0, 0x0, 0x9eb28, 0x8000, 0x9e800), at 0x5af08 [9] ap_process_connection(0x23dfd0, 0x23dd20, 0x12f548, 0x0, 0xa0238, 0xa), at 0x499f4 [10] worker_thread(0x134818, 0x540, 0x0, 0x23dfd0, 0x9f0d8, 0x32), at 0x6c0cc Any help help will be really appreciated. Thanks, ~Abhi
[users@httpd] Apache freezes after running for 2 days.
Hi All, I have been running the apache server to load test a application. The apache 2.2.20 is running on CentOS 5.6 -bash-3.2$ uname -a Linux hdm102 2.6.18-238.19.1.el5.centos.plus #1 SMP Mon Jul 18 10:05:09 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux -bash-3.2$ cat /etc/issue CentOS release 5.6 (Final) Kernel \r on an \m -bash-3.2$ ./httpd -V Server version: Apache/2.2.20 (Unix) Server built: Sep 8 2011 23:41:28 Server's Module Magic Number: 20051115:28 Server loaded: APR 1.4.5, APR-Util 1.3.12 Compiled using: APR 1.4.5, APR-Util 1.3.12 Architecture: 64-bit Server MPM: Worker threaded: yes (fixed thread count) forked: yes (variable process count) Server compiled with -D APACHE_MPM_DIR=server/mpm/worker -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT=/usr/local/apache2 -D SUEXEC_BIN=/usr/local/apache2/bin/suexec -D DEFAULT_SCOREBOARD=logs/apache_runtime_status -D DEFAULT_ERRORLOG=logs/error_log -D AP_TYPES_CONFIG_FILE=conf/mime.types -D SERVER_CONFIG_FILE=conf/httpd.conf I have a custom module(mod_.so) and oracle weblogic apache plugin(mod_wl_22.so) loaded via LoadModule directive into apache. The load that is being tested is 2500 req/second. Under this load apache continues to run for 2-3 days but suddnely stops responding. Has been happening consistently. Once this condition occurs apache stops serving even static pages exa: index.html or does not display server-status(mod_status). And the only way to recover is to restart the server. The errors that I see in the error log are the following ones, which keep showing up frequently of which the first one when the weblogic server refuses connections dues to overload condition. 1. [Tue Sep 20 08:15:11 2011] [error] [client 135.115.142.108] ap_proxy: trying POST /cwmp-allow/cwmpWeb/CPEMgt at backend host '64.186.185.155/7003; got exception 'CONNECTION_REFUSED [os error=0, line 1715 of ../nsapi/URL.cpp]: Error connecting to host 64.186.185.155:7003' 2. [Tue Sep 20 08:15:12 2011] [error] [client 135.115.142.100] (34)Numerical result out of range: mod_: _throttle_handler(): failed to release the mutex lock Had a look at the errno of apr and (34)Numerical result out of range doesn't seem to be coming from APR. Has some come across such a issue? Any kind of help/advice will really helpfull.