hostingguy wrote:Hi,
it does seem to fix the issue with mod_jk and php as fcgi as it no longer throws a seg fault and is able to load the pages again, although it may be too early to conclude that its a solid 100% fix, but so far so good.
It looks like I spoke too soon - tomcat via mod_jk is still throwing seg faults and causing pages to not load.
I did this:
Code: Select all
echo "umask 0" >> /etc/sysconfig/httpd
echo "SecAuditLogDirMode 0777" > /etc/httpd/conf.d/01_mod_security_changes.conf
service httpd configtest && service httpd stop && service httpd start
and httpd did restart ok with OK syntax
Here is my config file
/etc/httpd/conf.d/ruid2.conf
Code: Select all
LoadModule ruid2_module modules/mod_ruid2.so
<IfModule mod_ruid2.c>
RMode stat
RDefaultUidGid apache apache
RUidGid apache apache
RGroups apache psaserv psacln
</IfModule>
it looks like the same as before, but posting this one just in case its different
This is from /var/log/httpd/error_log
Code: Select all
[Wed Apr 13 14:31:32 2011] [error] (13)Permission denied: apr_global_mutex_lock(jk_log_lock) failed
[Wed Apr 13 14:31:33 2011] [notice] child pid 27071 exit signal Segmentation fault (11), possible coredump in /tmp
/var/log/tomcat5/catalina.out is empty
here is the bt and bt full from one dump
Code: Select all
Core was generated by `/usr/sbin/httpd'.
Program terminated with signal 11, Segmentation fault.
#0 0x00002b9cab9dba10 in ap_log_rerror ()
(gdb) bt
#0 0x00002b9cab9dba10 in ap_log_rerror ()
#1 0x00002b9cb3ff3200 in jk_tcp_socket_recvfull () from /usr/lib64/httpd/modules/mod_jk.so
#2 0x00002b9cb3ffad3f in jk_log () from /usr/lib64/httpd/modules/mod_jk.so
#3 0x00002b9cb40015f9 in map_uri_to_worker () from /usr/lib64/httpd/modules/mod_jk.so
#4 0x00002b9cb3ff2734 in jk_tcp_socket_recvfull () from /usr/lib64/httpd/modules/mod_jk.so
#5 0x00002b9cab9d1c22 in ap_run_map_to_storage ()
#6 0x00002b9cab9d2d8c in ap_process_request_internal ()
#7 0x00002b9cab9d3110 in ap_sub_req_lookup_file ()
#8 0x00002b9cb11732c2 in ap_log_rerror () from /etc/httpd/modules/mod_include.so
#9 0x00002b9cb116f5e8 in ap_log_rerror () from /etc/httpd/modules/mod_include.so
#10 0x00002b9cab9cf5dd in ?? ()
#11 0x00002b9cab9d6a0a in ap_run_handler ()
#12 0x00002b9cab9d9e98 in ap_invoke_handler ()
#13 0x00002b9cab9e4958 in ap_process_request ()
#14 0x00002b9cab9e1b90 in ?? ()
#15 0x00002b9cab9ddcb2 in ap_run_process_connection ()
#16 0x00002b9cab9e8809 in ?? ()
#17 0x00002b9cab9e8a9a in ?? ()
#18 0x00002b9cab9e92fd in ap_mpm_run ()
#19 0x00002b9cab9c3e48 in main ()
(gdb) bt full
#0 0x00002b9cab9dba10 in ap_log_rerror ()
No symbol table info available.
#1 0x00002b9cb3ff3200 in jk_tcp_socket_recvfull () from /usr/lib64/httpd/modules/mod_jk.so
No symbol table info available.
#2 0x00002b9cb3ffad3f in jk_log () from /usr/lib64/httpd/modules/mod_jk.so
No symbol table info available.
#3 0x00002b9cb40015f9 in map_uri_to_worker () from /usr/lib64/httpd/modules/mod_jk.so
No symbol table info available.
#4 0x00002b9cb3ff2734 in jk_tcp_socket_recvfull () from /usr/lib64/httpd/modules/mod_jk.so
No symbol table info available.
#5 0x00002b9cab9d1c22 in ap_run_map_to_storage ()
No symbol table info available.
#6 0x00002b9cab9d2d8c in ap_process_request_internal ()
No symbol table info available.
#7 0x00002b9cab9d3110 in ap_sub_req_lookup_file ()
No symbol table info available.
#8 0x00002b9cb11732c2 in ap_log_rerror () from /etc/httpd/modules/mod_include.so
No symbol table info available.
#9 0x00002b9cb116f5e8 in ap_log_rerror () from /etc/httpd/modules/mod_include.so
No symbol table info available.
#10 0x00002b9cab9cf5dd in ?? ()
No symbol table info available.
#11 0x00002b9cab9d6a0a in ap_run_handler ()
No symbol table info available.
#12 0x00002b9cab9d9e98 in ap_invoke_handler ()
No symbol table info available.
#13 0x00002b9cab9e4958 in ap_process_request ()
No symbol table info available.
#14 0x00002b9cab9e1b90 in ?? ()
No symbol table info available.
#15 0x00002b9cab9ddcb2 in ap_run_process_connection ()
No symbol table info available.
#16 0x00002b9cab9e8809 in ?? ()
No symbol table info available.
#17 0x00002b9cab9e8a9a in ?? ()
No symbol table info available.
#18 0x00002b9cab9e92fd in ap_mpm_run ()
No symbol table info available.
#19 0x00002b9cab9c3e48 in main ()
No symbol table info available.