Getting: 9389 Bus error

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
memrinal
Participant
Posts: 74
Joined: Wed Nov 24, 2004 9:13 pm

Getting: 9389 Bus error

Post by memrinal »

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
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Login to Unix as dsadm and load your dsenv before running the command from Unix. That may simulate the working as in with DataStage.

Apply few 'echo' within the shell script to identify the location that has the problems.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Operating system? HP/UX by chance?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

One guess is your usage of '@' symbol as a parameter value. Unix considers '@' to be a kill character. Try to enclose within double quotes.
memrinal
Participant
Posts: 74
Joined: Wed Nov 24, 2004 9:13 pm

Post by memrinal »

Hi Chulett,
Yes the OS is HP/UX. Is this problem due to OS?

Sai i tried enclosing the email id within "'s but still i am getting error. this time the log says
SH: 17306 Bus error(coredump)
Is there anyway i can overcome this.
the same script runs fine when run directly from the shell.

Sai, one more query. how do i load dsenv. i can login as dsadm, but dont know how to load dsenv.

Thanks
Mrinal
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

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. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
memrinal
Participant
Posts: 74
Joined: Wed Nov 24, 2004 9:13 pm

Post by memrinal »

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
abhishekachrekar
Participant
Posts: 45
Joined: Wed May 02, 2007 8:30 am
Location: Prague, Czech Republic

Post by abhishekachrekar »

Hi guys,

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.
Regards,
Abhishek
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If you have $LD_PRELOAD set, try unsetting it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
abhishekachrekar
Participant
Posts: 45
Joined: Wed May 02, 2007 8:30 am
Location: Prague, Czech Republic

Post by abhishekachrekar »

Thanks chulett,

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.

Regards,
Abhishek
Regards,
Abhishek
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

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
abhishekachrekar
Participant
Posts: 45
Joined: Wed May 02, 2007 8:30 am
Location: Prague, Czech Republic

Post by abhishekachrekar »

Thanks a lot :)
Regards,
Abhishek
Post Reply