1834434 Members
2463 Online
110067 Solutions
New Discussion

Bus error

 
SOLVED
Go to solution
Greg Conn
Advisor

Bus error

I am running a product called Envisage on HP755 HP-UX10.20.
When trying to run a particular script I get a Bus error(coredump). When I do a what core I get:

X Window System, Version 11 R5+ HP-UX B.10.10.00 Nov 1997 Patch Release
(build date: Tue Nov 25 14:53:09 PST 1997)



HP-UX libisamsstub.sl 960417 (183833) B3906AA/B3908AA B.10.20.01
fs_amod.s $Revision: 1.9.1.1 $
libcl.sl 10.20 version B.10.29.02 07/10/97
PATCH-PHCO_22924 for 10.20; for 10.30, 11.x compatibility libc.1_ID@@/main/r10dav/libc_dav/libc_dav_cpe//1
/ux/core/libs/libc/shared_pa1/libc.1_ID
Dec 11 2000 04:53:40
SMART_BIND
92453-07 dld dld dld.sl B.10.25 (aCC) EXP 970206

Any help would be greatly appreciated. It works on a development box with the same os.
10 REPLIES 10
melvyn burnard
Honored Contributor

Re: Bus error

compare the patching levels between the system that works, and the one that does not.
Also check the kernel parameters on both systems.
I think you will find that one of these will be the answer to your probolem, probably teh patching one :-}
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
eran maor
Honored Contributor

Re: Bus error

Hi

i look at for the error and i agree with melvyn
but my advise it to remove the patch PHCO_22924
and return to the old patch of LIBC because i found that this patch have some problem .

also it will be advise to do patch manag. to both system and check the patches that are install on both system .
love computers
Greg Conn
Advisor

Re: Bus error

I updated the patches and still receive the error. I ran gdb on the core against the application that is failing and I get the following:

Program terminated with signal 10, Bus error.
Unable to find __dld_flags symbol in object file.
A. Clay Stephenson
Acclaimed Contributor

Re: Bus error

Hi Greg,

Compare the settings of SHLIB_PATH in the two environments. If it's not set on the development box, then it's using the default paths and may still need to be explicitly set on the target machine.

Clay
If it ain't broke, I can fix that.
Greg Conn
Advisor

Re: Bus error

SHLIB_PATH on both machines are the same. Thanks for all of the help. I will keep at it.
A. Clay Stephenson
Acclaimed Contributor

Re: Bus error

Okay Greg, one other thought.

On the development box make sure that the makefile invokes ld with the +s option to enable SHLIB_PATH to be used on the target.
If not, you will need to re-link and copy the executable to the target.

man dld.sl dor details.

Clay
If it ain't broke, I can fix that.
Greg Conn
Advisor

Re: Bus error

I ran chatr on both machines and the output follows. I should clarify that this is a third party app from sync research (no support).

On machine that works.

chatr iptounit
iptounit:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
internal name:
/home/BuildOnly18/sync/bin/iptounit
shared library list:
static /usr/lib/libXt.1
dynamic /usr/lib/libstd.1
dynamic /usr/lib/libstream.1
dynamic /usr/lib/libCsup.1
dynamic /usr/lib/pa1.1/libcl.1
dynamic /usr/lib/libc.1
static /usr/lib/libdld.1
shared library binding:
deferred
global hash table disabled
plabel caching disabled
global hash array size: 1103
global hash array nbuckets: 3
static branch prediction disabled
kernel assisted branch predictionenabled
lazy swap allocationdisabled
text segment lockingdisabled
data segment lockingdisabled
data page size: 4K
instruction page size: 4K

On machine that does not work:

chatr iptounit
iptounit:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
internal name:
/home/BuildOnly18/sync/bin/iptounit
shared library list:
static /usr/lib/libXt.1
dynamic /usr/lib/libstd.1
dynamic /usr/lib/libstream.1
dynamic /usr/lib/libCsup.1
dynamic /usr/lib/pa1.1/libcl.1
dynamic /usr/lib/libc.1
static /usr/lib/libdld.1
shared library binding:
deferred
static branch prediction disabled
kernel assisted branch predictionenabled
lazy swap allocationdisabled
text segment lockingdisabled
data segment lockingdisabled
data page size: 4K
instruction page size: 4K


I tried copying just this file over but it still does not work.
Greg Conn
Advisor

Re: Bus error

These files on the machine that works are newer than the machine that does not. My question would be is there a consolidated patch that updates these particular files?

/usr/lib/libstd.1
/usr/lib/libstream.1
/usr/lib/libCsup.1
/usr/lib/pa1.1/libcl.1
/usr/lib/libc.1
/usr/lib/libdld.1
Greg Conn
Advisor

Re: Bus error

It was patch PHSS_15043. It works!!!!! Thanks to everyone for getting me on the right track. This was my first time using the forums and it worked great!! Greg
Denver Osborn
Honored Contributor
Solution

Re: Bus error

Greg,

Sounds like you did pretty good yourself on figuring this one out too!

Glad to here it was resolved and that the forums were able to help.

-denver