Sunday, October 16, 2011

The ab utility and Apache server dump core when it is used.

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com

Problem:
The ab utility and Apache server dump core when it is used.

Symptoms:
1. Run the ab utility on HP-UX Itanium with OAS 10.1.3.4; it dumps core.

$ $ORALCE_HOME/Apache/Apache/bin/ab -n 300 -c 10 http://hostname:port/

2. Checking apache server-status (http://hostname:port/server-status) dumps core for httpd.

2. - OHS 10.1.3.4 on HPUX Itanium
- OHS is core dumping when using Apache Bench, for example:
$ORACLE_HOME/Apache/Apache/bin/ab -n 300 -c 10 http://hostname:port/
- OHS produces a segmentation fault
- The stack trace from the core is as follows:

Servername01::oraasd>gdb ./bin/httpd core
HP gdb 6.1 for HP Itanium (32 or 64 bit) and target HP-UX 11iv2 and 11iv3.
Copyright 1986 - 2009 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 6.1 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object

warning: Load module /u01/app/oracle/products/OAS/10.1.3/lib/libclntsh.so.10.1 has been stripped.
Debugging information is not available.


warning: Load module /u01/app/oracle/products/OAS/10.1.3/lib/libnnz10.so has been stripped.
Debugging information is not available.


warning: No unwind information found.
Skipping this library /usr/lib/hpux64/libcl.so.1.

#0 0xc000000003b14360:1 in status_handler () at mod_status.c:654
654 mod_status.c: No such file or directory.
in mod_status.c
(gdb) bt
#0 0xc000000003b14360:1 in status_handler () at mod_status.c:654
#1 0x400000000008e0c0:0 in ap_invoke_handler () at http_config.c:566
#2 0x400000000008c190:0 in process_request_internal () at http_request.c:1344
#3 0x40000000000a3e30:0 in ap_process_request () at http_request.c:1372
#4 0x40000000000ad740:0 in child_main () at http_main.c:5476

3.
Log files:
stack trace from gdb:

Stacktrace for ab:
----------------------

Servername01::oraasd>gdb ab core
HP gdb 6.1 for HP Itanium (32 or 64 bit) and target HP-UX 11iv2 and 11iv3.
Copyright 1986 - 2009 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 6.1 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
warning: Load module /u01/app/oracle/products/OAS/10.1.3/Apache/Apache/bin/ab has been stripped.
Debugging information is not available.

(no debugging symbols found)...
Core was generated by `ab'.
Program terminated with signal 10, Bus error.
BUS_ADRALN - Invalid address alignment. Please refer to the following link that helps in handling unaligned data: http://docs.hp.com/en/7730/newhelp0610/pragmas.htm#pragma-pack-ex3
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
warning: No unwind information found.
Skipping this library /usr/lib/hpux64/libcl.so.1.


#0 0x4000000000010630:0 in __unwind_header + 0xe668 ()
(gdb) bt
#0 0x4000000000010630:0 in __unwind_header + 0xe668 ()
#1 0x4000000000015410:0 in main+0x23f0 ()
(gdb)

Stack trace for httpd:
------------------------

Servername01::oraasd>gdb ./bin/httpd core
HP gdb 6.1 for HP Itanium (32 or 64 bit) and target HP-UX 11iv2 and 11iv3.
Copyright 1986 - 2009 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 6.1 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object

warning: Load module /u01/app/oracle/products/OAS/10.1.3/lib/libclntsh.so.10.1 has been stripped.
Debugging information is not available.


warning: Load module /u01/app/oracle/products/OAS/10.1.3/lib/libnnz10.so has been stripped.
Debugging information is not available.


warning: No unwind information found.
Skipping this library /usr/lib/hpux64/libcl.so.1.

#0 0xc000000003b14360:1 in status_handler () at mod_status.c:654
654 mod_status.c: No such file or directory.
in mod_status.c
(gdb) bt
#0 0xc000000003b14360:1 in status_handler () at mod_status.c:654
#1 0x400000000008e0c0:0 in ap_invoke_handler () at http_config.c:566
#2 0x400000000008c190:0 in process_request_internal () at http_request.c:1344
#3 0x40000000000a3e30:0 in ap_process_request () at http_request.c:1372
#4 0x40000000000ad740:0 in child_main () at http_main.c:5476

Solution:


bug 6076923 APACHE HTTP SERVER BENCHMARKING TOOL CORE DUMPS which is a HPUX Itanium specific bug on 10.1.2
1. this is fixed in 10.1.3.5 or
2. applying patch 7575666

References:

See Note:397022.1 Oracle Application Server 10g Release 3 (10.1.3) Support Status and Alerts, for patch number details.

See Note:1812.1 "Getting a Stack Trace from a CORE file" on how to do this.
Get Oracle Certifications for all Exams
Free Online Exams.com

No comments: