Hi All,
I have a job which uses a before job ExecSH Subroutine where a shell script is called and 17 job level parameters(most of them pathnames) are passed to it.
The script runs fine when run independently but when i try to run the job with before job ExecSH the job aborts and the director shows the following entry as the reason for abort
when executing command: ksh mysh1.ksh BR Brazil 20050301 /ascential/projects/COMETSTND_DEV/Test/LOG /ascential/projects/COMETSTND_DEV/Test/ERROR /ascential/projects/COMETSTND_DEV/Test/STAGE /ascential/projects/COMETSTND_DEV/Test/SCRIPTS /ascential/projects/COMETSTND_DEV/Test/LOOKUP /ascential/projects/COMETSTND_DEV/Test/ARCH /ascential/projects/COMETSTND_DEV/Test/ORCH /ascential/projects/COMETSTND_DEV/Test/INPUT /ascential/projects/COMETSTND_DEV/Test/OUTPUT /ftp/inbound/COMETBR ftpserver ftpuser ftp123 Mrinal_Kumar01@infosys.com
*** Output from command was: ***
SH: 9389 Bus error(coredump)
Job stopped - before-job routine returned error: Error 1 returned from BEFORE routine DSU.ExecSH
Please let me know why this is happening and how i can overcome this.
TIA
Mrinal
memrinal wrote:Yes the OS is HP/UX. Is this problem due to OS?
Yes, this is why I asked. Several others (including myself) have had the same problem with Korn shell scripts core dumping on HP/UX - only from DataStage. This post may help shed some light on the issue and documents what we have done that corrected the problem.
-craig
"You can never have too many knives" -- Logan Nine Fingers
Thanks Chulett. I am also working on HP/UX 11.11 and the LD_PRELOAD is set.
I wanted to try commenting it out, but it will take some time since i am working on the production server and several clearances are required before making any changes to dsenv.
Thanks a lot for your timely help, else i would have been scratching my hair, thinking why the script is not running.
Mrinal
I am also facing similar error. I am working on HP-UX 11.11.
In some other thread I saw that this reason for this error was the usage of korn script. I removed the ksh command from the script calls in all the jobs.
It worked fine for some jobs but didnt for others.
In this particular job we are calling a script in After-job sub routine.
The script in DS aborts giving the error "SH: 20427 Bus error(coredump)".
But when the script is run on unix it works fine.
For debugging, I added set -xv command in the script and loaded the dsenv on unix (as suggested by Sainath). But then the script aborted on unix prompt with Bus error.
I tried to go through all the posts but couldn't find any resolution.
Kindly help me in resolving this issue.
The parameter LD_PRELOAD is set as follows in dsenv.
LD_PRELOAD=$DSHOME/java/jre/lib/PA_RISC2.0/hotspot/libjvm.sl
I guess commenting this command will resolve the issue.
But what impact does it have on other processes/application.
I mean whats the significance of this parameter?
Actually my only concern is not to harm any other applications on that server.
Commenting it out of the dsenv won't affect any other applications, just DataStage. You'd need to talk to an SA about what exactly it does other than cause core dumps.
-craig
"You can never have too many knives" -- Logan Nine Fingers