From: bruce@objy.com (Bruce Reed)
Subject: "unaligned access" message with shared libs
Date: Thu, 4 Aug 94 17:52:32 GMT [thread overview]
Message-ID: <1994Aug4.175232.8863@objy.com> (raw)
I'm building a shared library with C and C++ code on OSF/1 2.0.
It's linked against the shared C library. When I link applications
against the shared lib, I specify an rpath for runtime location of
the library. All of this seems to work just fine, unless I use an
LD_LIBRARY_PATH to override my default rpath. If I set it to:
/usr/shlib:/usr/myshlibdir
I get the following message when I run my program:
Unaligned access pid=13087 <myshapp> va=3ffc00160b7 pc=3ff8000f42c
ra=3ff80005f78 type=ldq
If I move /usr/shlib to the end of LD_LIBRARY_PATH or leave it out
completely the message goes away. I realize /usr/shlib is searched
by default isn't necessary in LD_LIBRARY_PATH, but a user of my
application had done this and they're expecting me to come up with
a rational explanation. Interesting that the application runs just
fine anyway.
One other interesting tidbit on this problem is I can easily reproduce
it with system utils like "ls" by setting
LD_LIBRARY_PATH=/usr/shlib:/usr/shlib
Does anyone have an explanation for this behavior?
--
Bruce Reed bruce@objy.com | "Two of the most famous products
Objectivity Inc. (MIME spoken here) | of Berkley are LSD and Unix. I
Mountain View, CA | don't think that is a coincidence."
next reply other threads:[~1994-08-04 17:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-08-04 17:52 Bruce Reed [this message]
1994-08-05 13:42 ` "unaligned access" message with shared libs Torbj|rn Lindgren
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox