ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Linux下的rwbuilder.sh不能运行

Linux下的rwbuilder.sh不能运行

原创 Linux操作系统 作者:hjgluguo 时间:2009-10-17 22:05:16 0 删除 编辑

Subject: rwserver.sh Generates Segmentation Fault or no Errors, and Standalone is not created 
  Doc ID: 331919.1 Type:  PROBLEM 
  Modified Date:  27-JUL-2009 Status:  PUBLISHED 

In this Document
  Symptoms
  Changes
  Cause
  Solution
  References



--------------------------------------------------------------------------------



Applies to: 
Oracle Reports Developer - Version: 9.0.4.2
This problem can occur on any platform.
Checked for relevance on 07-Sep-2007 
Symptoms
operating system

-----------------

Linux. It was initially reported in 64-bit, but it had reproduced sometimes in 32-bit in different flavors, ie, RHEL, OEL.

Reports release
-----------------

9.0.4.2.0 and higher

1)  Segmentation fault trying to start up reports server, but it does not generate core dump file

$rwserver.sh
Segmentation fault
$ echo $?
139

- Core dump file is not generated, then, Note 1812.1 "TECH: Getting a Stack Trace from a CORE file" cannot be applied.  hs_err_pidXXX.log files are NOT generated either.

2)  It might happen no errors are displayed, instead of "Segmentation Fault", but the standalone reports server is not created at operating system level, although the default in-process is up and running:


$rwserver.sh
$ps -ef |grep rwserver     <--- displays nothing created at os level


3) rwclient.sh, rwrun.sh and rwconverter.sh are generating segmentation file, too, without core dump file:

$rwrun.sh report=test.rdf  userid=scott/tiger@dbalias destype=file desformat=html desname=/tmp/test.html
Segmentation fault

4) It is a new installation and relink process finished successfully, without errors, according to RDA output:
/usr/bin/make -f ins_reports.mk libso_install

5) In 9.0.4.X release, Smart Agent is up and running, according to osfind output:

$ORACLE_HOME/vbroker4/bin 
$./osfind

In 10.1.2.X release, rwdiag.sh displays the in-process reports server successfully, but not the new standalone.

6)  Default in-process reports server is working without errors, you are able to execute reports from url:

http://host:port/reports/rwservlet?report=test.rdf&userid=usr/pswd@dbalias&destype=cache&desformat=html

7)  Suggestions from Note 304112.1 "REP-178 Attempting to Connect to in-process Repserver Using Rwclient.Sh, It Works From The Url" in order to setup standalone environment variables identical to in-process has been applied, but rwserver.sh continues generating segmentation fault or no errors, but standalone process is not created at os level.

Changes
New installation or first time a standalone reports server is created. The default in-process reports server is working fine. 
Cause
Problem with SUN Java version running on Xeon or AMD CPU running on Linux RH. The updated kernel added "non executable stack" feature. This is a new security enhancement. 

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
Boot with kernel option 'noexec=off':

1. Backup /boot/grub/grub.conf

2. 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

Other example taken from a different machine:

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Enterprise Linux Enterprise Linux AS (2.6.9-55.0.2.0.1.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-55.0.2.0.1.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet noexec=off
initrd /initrd-2.6.9-55.0.2.0.1.ELsmp.img
title Enterprise Linux Enterprise Linux AS (2.6.9-55.0.2.0.1.EL) noexec=off
root (hd0,0)
kernel /vmlinuz-2.6.9-55.0.2.0.1.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet noexec=off
initrd /initrd-2.6.9-55.0.2.0.1.EL.img

IMPORTANT: If several kernels are defined in grub.conf file, make sure the one being used has the noexec=off parameter. The grub.conf parameter 'default' defines which kernel by default to read. If it is default=0, it means that the first kernel in grub.conf is the one being loaded.

3. Reboot server to implement change.

4. Run this command as root

# cat /proc/cmdline

This should return this result:
ro root=/dev/sda5 console=ttyS0,115200 console=tty0 noexec=off

If noexec=off is not returned the check modifications done in grub.conf



5. After applying these changes, execute again rwserver.sh to create a new standalone reports server, it will work now, you will see a process id for your new standalone, ie:

$rwserver.sh repserv10g
$ps -ef|grep repserv10g


Remarks:
~~~~~~
1) When you have set the option hiddenmenu in the file grub.conf then  the menu is not displayed when booting except if the key is pressed.
Additional information can be found at the GNU homepage, http://www.gnu.org/software/grub/manual/grub.html

References
Note 276802.1 - Runinstaller Crash Immediatly When Run

Keywords
CORE~DUMP ; RWSERVER ; INSTALLATION ; STANDALONE~REPORT~SERVER ; SEGMENTATION~FAULT ; SUN~JRE ;  
--------------------------------------------------------------------------------

Help us improve our service. Please email us your comments for this document. . 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7865774/viewspace-616791/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-07-11

  • 博文量
    97
  • 访问量
    181594