Operating System - HP-UX
1837085 Members
2357 Online
110112 Solutions
New Discussion

Re: memory fault (coredump)

 
CHRMC
New Member

memory fault (coredump)

Hi, A Cobol program of mine fails with a memory fault every time when I trigger it from the command line with the "root" id. The same program runs just fine when I put it in root's crontab. And it runs fine when I trigger it with an ordinary user's id. Could anyone tell me why? Thanks in advance. -Nathan
5 REPLIES 5
Cheryl Griffin
Honored Contributor

Re: memory fault (coredump)

With a memory fault (coredump) a core file should be left behind.

Execute the following:
# file core

It will provide you something like:
# file core
core: core file from 'hostname' - received SIGABRT

this may give you some clues.
"Downtime is a Crime."
Cheryl Griffin
Honored Contributor

Re: memory fault (coredump)

In addition, look at what you have set in the user profile or cron script that may not be set when cobol is invoked as root.

You may have some needed environment variable that is being set except for root.
"Downtime is a Crime."
Madhu Sudhan_1
Respected Contributor

Re: memory fault (coredump)

Problem could be with "ulimit". Compare ulimit output of root and any other user by firing ulimit -a and look for the difference.

Hope this helps.
...Madhu
Think Positive
CHRIS_ANORUO
Honored Contributor

Re: memory fault (coredump)

Do a check on the core file with "strings coredump file|pg"
Also check with "file core" and do an online manual check on the meaning of the SIG i.e "man 5 signal"
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
CHRMC
New Member

Re: memory fault (coredump)

Thank you all for your ideas. It runs through when I trimed off root's $PATH to /usr/bin/sh just for this program. -Nathan