1834169 Members
2850 Online
110064 Solutions
New Discussion

21155 bus error

 
SOLVED
Go to solution
jorge alvarado_1
New Member

21155 bus error

I'm getting this bus error when running an executable. The executable runs ok under
root, but gets this error from another login.

any way to get more info on this bus error?
for example, can I force that a core file
be generated. currently no core file is being
generated. I'm no HPUX admin guru, but can
something be done to get more diagnostics?
thanks.
3 REPLIES 3
Tom Danzig
Honored Contributor
Solution

Re: 21155 bus error

Assuming your using posix shell (/usr/bin/sh), adjust the ulimit to allow core dumps for the non-root user:

# ulimit -c

A bus error could be I/O related. Root may have read/write permission to IO (i.e. device file permissions) but the non-root user may not. Could also be a illeagal memory reference as well.
James Lynch
Valued Contributor

Re: 21155 bus error

Jorge,

What are the permissions on this executable? Is it a SUID program? If so, is it SUID to root? The reason I ask is that SUID executables are not allowed to dump core files. This is a security feature and there is no current way to disable it.

If the executable is not SUID, then a core dump should be created. In that case I would look to see what the executable's current working directory is, and then check to see if the user that is running the program has permissions to create/write a new file in that directory.

The rule with programs dumping core is, create a core file if you can. If permissions don't allow it or it is a SUID program, then don't create a core and don't produce an error message to that fact.

JL
Wild turkey surprise? I love wild turkey surprise!
jorge alvarado_1
New Member

Re: 21155 bus error

James, this exe is an suid root program.
I suppose I could drop the s-bit, and
rerun it and see if I get a core dump?
it seems to be failing during program load, we spit out a version banner early on in main...don't even see that.

thanks.