From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,e3b3ffd83ead871,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-08-05 19:46:58 PST Newsgroups: comp.unix.osf.misc Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!zip.eecs.umich.edu!newsxfer.itd.umich.edu!uunet!objy!objy!bruce From: bruce@objy.com (Bruce Reed) Subject: "unaligned access" message with shared libs Message-ID: <1994Aug4.175232.8863@objy.com> Sender: bruce@opus (Bruce Reed) Organization: Objectivity, Inc. Date: Thu, 4 Aug 94 17:52:32 GMT 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 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."