[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

3204.0. "XtInitialize/Unaligned Access/ULTRIX 4.0?" by HARPY::MILLER (I need 'Deeper Understanding') Mon Aug 13 1990 18:26

    Is it me or are others seeing spurious "Unaligned Access" Messages
    as a result of the XtInitialize() call on ULTRIX/MIPS 4.0?  I've
    chased it down to the following and can't figure how my arg's could be
    causing it.  Any ideas?
    
    Regards,
    
    	 	== ken miller ==
    
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429dd8
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429e0c
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429e10
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429dd8
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429e0c
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429e10
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429e0c
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429e10
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429dd8
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429e0c
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429dd8
    Fixed up unaligned data access for pid 2256 (XTrapOut) at pc 0x429e0c
    
    main:  91  appW = XtInitialize(NULL,"XTrap",NULL,0L,&argc,argv);
    (dbx) 0x429dd8/i
      [XrmStringToQuark:309, 0x429dd8]      lui     r3,0xfefe
    (dbx) 0x429e0c/i
      [XrmStringToQuark:323, 0x429e0c]      lh      r12,2(r4)
    (dbx) 0x429e10/i
      [XrmStringToQuark:326, 0x429e10]      addu    r13,r2,r3
    
    appW is defined as:  static Widget appW;
T.RTitleUserPersonal
Name
DateLines
3204.1ABYSS::dikeTue Aug 14 1990 08:132
Can you post enough code to reproduce the problem?
				Jeff
3204.2Here ya go...GOLLY::MILLERI need 'Deeper Understanding'Tue Aug 14 1990 10:0840
                       <<< Note 3204.1 by ABYSS::dike >>>

> Can you post enough code to reproduce the problem?
    
    I thought I did...

appW is defined as:  static Widget appW;
appW = XtInitialize(NULL,"XTrap",NULL,0L,&argc,argv);

But here's a working program: (foo.c)

#include "Intrinsic.h"
static Widget appW;

main(argc,argv)
    int argc;
    char *argv[];
{
    appW = XtInitialize(NULL,"XTrap",NULL,0L,&argc,argv);
}

The run:
doobie$ cc -c foo.c -I../../X11/Xt
doobie$ cc -o foo foo.o ../../lib/Xt/libXt.a ../../lib/X/libX11.a
doobie$ foo
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41aee8
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41af1c
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41af20
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41aee8
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41af1c
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41af20
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41af1c
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41af20
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41aee8
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41af1c
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41aee8
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41af1c
Fixed up unaligned data access for pid 7253 (foo) at pc 0x41af1c
doobie$
    
3204.3ABYSS::dikeTue Aug 14 1990 13:3912
It wasn't clear to me that XtInitialize was the first thing you did.  Also, 
the compile and link lines are interesting.

It looks like there is something funky with the libXt.a that you are linking
against.  I built your code against both libXt.a and libdwt.a that ship
with 4.0, and neither gives me unaligned accesses.

If you really need that particular library, and have source for it, it looks
like you need to go in and find the bug.  Otherwise, you can build against
either of the libraries in 4.0, or extract Initialize.o from one of the 4.0
libraries, and link against it separately.
				Jeff
3204.4GILROY::kleeKen LeeTue Aug 14 1990 13:558
I think the problem is in Xlib.  The Xlib XrmStringToQuark function in
file Quarks.c must be compiled with the -DALIGNED.  This is built
correctly in our current pool.  I think it was done correctly in
UWS2.2, but am not positive.  Are you building Xlib yourself or using
the released version?

Ken
 
3204.5GILROY::kleeKen LeeTue Aug 14 1990 13:566
Re: .4

P.S.  This only applies if you are using the UWS version of Xlib, which
includes several performance enhancements above the MIT versions.

Ken
3204.6That explains it! Quarking Titans!GOLLY::MILLERI need &#039;Deeper Understanding&#039;Tue Aug 14 1990 14:228
    Thanks, I'm building against some BL of 4.titan (thought it was
    4.0-ssb) which is why I was concerned.  The gilroy build we scarfed
    doesn't seem to be there anymore, but if I see it with the next update
    I'll let you GILROY folks know.
    
    Thanks much,
    
    	 	== ken miller ==