Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* "unaligned access" message with shared libs
@ 1994-08-04 17:52 Bruce Reed
  1994-08-05 13:42 ` Torbj|rn Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Bruce Reed @ 1994-08-04 17:52 UTC (permalink / 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."


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "unaligned access" message with shared libs
  1994-08-04 17:52 "unaligned access" message with shared libs Bruce Reed
@ 1994-08-05 13:42 ` Torbj|rn Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Torbj|rn Lindgren @ 1994-08-05 13:42 UTC (permalink / raw)


In article <1994Aug4.175232.8863@objy.com>, Bruce Reed <bruce@objy.com> wrote:
> LD_LIBRARY_PATH=/usr/shlib:/usr/shlib
>
>Does anyone have an explanation for this behavior?

Patch id:       OSFV20-014-1

Setting LD_LIBRARY_PATH with a redundant path will result in /sbin/loader
suffering one or more "Unaligned access" warnings when a call_shared
application is run. To test for this condition, set LD_LIBRARY_PATH to .:.
and run uname(1).

If for some reason it is not practical to remove the redundancy from the
LD_LIBRARY_PATH environment variable, this loader patch can be applied to
the system.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-08-05 13:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-08-04 17:52 "unaligned access" message with shared libs Bruce Reed
1994-08-05 13:42 ` Torbj|rn Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox