Pages

Sunday 1 December 2013

Formsbuilder Crashes With Segmentation Fault

Subject: Formsbuilder Crashes With Segmentation Fault
  Doc ID: 363976.1 Type: PROBLEM
  Modified Date : 10-JAN-2008 Status: PUBLISHED

In this Document
  Symptoms
  Cause
  Solution
  References


Applies to:

Oracle Forms - Version: 9.0.4 to 10.1.2.0.2
Linux x86
Checked relevance 10-Jan-2008

Symptoms

When attempting to launch frmbld.sh, forms builder crashes with segmentation fault.

Error Details:
Segmentation fault with no core dump.
Doing an strace will have these lines at the end of tail
10934 sigaltstack({ss_sp=0xbfe04000, ss_flags=0, ss_size=40960}, NULL) = 0
10934 rt_sigaction(SIGHUP, NULL, {SIG_DFL}, 8) = 0
10934 rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
10934 rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
10934 rt_sigprocmask(SIG_UNBLOCK, [HUP INT QUIT USR2 TERM CHLD], NULL, 8) = 0
10934 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
10934 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
10934 +++ killed by SIGSEGV +++



Cause

Problem with SUN Java version running on Xeon or AMD64 64-bit CPU running on Linux RH. The updated
kernel added "non executable stack" feature. This is a new security enhancement.

This is explained in the following  internal Bug: 4175691  - OUI QUITS WITH NO ERROR
According to Sun, this problem is fixed in Sun JRE 1.4.2_08(b02)
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6178600


Solution

Objective: Boot with kernel option 'noexec=off'
Steps to follow:
1. Login as root

2. Backup /boot/grub/grub.conf

3. Modify /boot/grub/grub.conf and add new kernel menu with "noexec=off" flag.

Example:

jdefault=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-15.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-15.EL ro root=LABEL=/
initrd /initrd-2.4.21-15.EL.img
title Red Hat Enterprise Linux AS (2.4.21-15.EL) noexec=off
root (hd0,0)
kernel /vmlinuz-2.4.21-15.EL ro root=LABEL=/ noexec=off
initrd /initrd-2.4.21-15.EL.img

4. Reboot the machine
5.Verify if system booted with noexec=off:

# cat /proc/cmdline
ro root=/dev/sda5 console=ttyS0,115200 console=tty0 noexec=off

6. Start forms builder now: ./frmbld.sh
Remark: This problem has also been related to Oracle Report server and Oracle Universal Installer
Note 276802.1 - Runinstaller Crash Immediatly When Run
Note 331919.1 - Rwserver.Sh Is Generating Segmentation Fault but not Core Dump File

No comments:

Post a Comment