Apache HTTPD Segmentation Fault error caused due to mismatch in libphp5.so file used.
Issue
- Apache HTTPD Segmentation Fault error caused due to mismatch in libphp5.so file used.
- Below GDB stacktrace is seen from the coredumps :
Core was generated by `/usr/sbin/httpd -d /app'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fcbc4db7de7 in _pcre_xclass (c=64097456, data=0x7fcbc795793d "\002\001") at pcre_xclass.c:107
107 const ucd_record * prop = GET_UCD(c);
(gdb) up
#1 0x00007fcbc4db18b6 in match (eptr=0x7fcbc7647954 "\373t 2007", ecode=<value optimized out>, mstart=0x7fcbc7647952 "ao\373t 2007", offset_top=2, md=0x7ffd98974780, ims=0, eptrb=0x0,
flags=0, rdepth=1) at pcre_exec.c:2127
2127 if (!_pcre_xclass(c, data)) break;
(gdb) l
2122 for (i = min; i < max; i++)
2123 {
2124 int len = 1;
2125 if (eptr >= md->end_subject) break;
2126 GETCHARLEN(c, eptr, len);
2127 if (!_pcre_xclass(c, data)) break;
2128 eptr += len;
2129 }
2130 for(;;)
2131 {
(gdb) bt
#0 0x00007fcbc4db7de7 in _pcre_xclass (c=64097456, data=0x7fcbc795793d "\002\001") at pcre_xclass.c:107
#1 0x00007fcbc4db18b6 in match (eptr=0x7fcbc7647954 "\373t 2007", ecode=<value optimized out>, mstart=0x7fcbc7647952 "ao\373t 2007", offset_top=2, md=0x7ffd98974780, ims=0, eptrb=0x0,
flags=0, rdepth=1) at pcre_exec.c:2127
#2 0x00007fcbc4daec2c in match (eptr=0x7fcbc7647952 "ao\373t 2007", ecode=0x7fcbc7957913 "_", mstart=0x7fcbc7647952 "ao\373t 2007", offset_top=2, md=0x7ffd98974780, ims=0, eptrb=0x0,
flags=0, rdepth=0) at pcre_exec.c:716
#3 0x00007fcbc4db57bc in pcre_exec (argument_re=<value optimized out>, extra_data=<value optimized out>, subject=<value optimized out>, length=<value optimized out>,
start_offset=<value optimized out>, options=<value optimized out>, offsets=0x7fcbc8020108, offsetcount=6) at pcre_exec.c:4860
#4 0x00007fcbb96ac228 in php_pcre_match_impl () from /app/lib64/modules_http/libphp5.so
#5 0x00007fcbb96acbed in ?? () from /app/lib64/modules_http/libphp5.so
#6 0x00007fcbb9837698 in ?? () from /app/lib64/modules_http/libphp5.so
#7 0x00007fcbb980e7e0 in execute () from /app/lib64/modules_http/libphp5.so
#8 0x00007fcbb97e89fd in zend_execute_scripts () from /app/lib64/modules_http/libphp5.so
#9 0x00007fcbb9796a88 in php_execute_script () from /app/lib64/modules_http/libphp5.so
#10 0x00007fcbb9872055 in ?? () from /app
Environment
- Red Hat Enterprise Linux
- 6.x, 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.