[Freeciv-Dev] Unaligned access with Xaw client
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Every time I use or press the scrollbar I get a unaligned access
warning. I have traced it to the my_XawScrollbarSetThumb function.
/usr/local/dikunix/work/civ/freeciv-1.8.0.org > gdb civclient
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (alpha-dec-osf4.0), Copyright 1996 Free Software Foundation, Inc...
(gdb) break my_XawScrollbarSetThumb
Breakpoint 1 at 0x12002398c: file client/mapview.c, line 1697.
(gdb) run
Starting program: /net/urd/vol/dikunix/work/civ/freeciv-1.8.0.org/civclient
2: Booting help texts
2: color system booted ok.
2: settings file is /home/disk11/pebl/.civclientrc
2: join game accept:Welcome pebl.
2: new client continent 2 at (64 18)
Breakpoint 1, my_XawScrollbarSetThumb (w=0x14013e000, top=0.75,
shown=0.137500003)
at client/mapview.c:1697
1697 XtArgVal *l_top=(XtArgVal*)⊤
(gdb) step
1698 XtArgVal *l_shown=(XtArgVal*)&shown;
(gdb) step
1699 XtSetArg(arglist[0], XtNtopOfThumb, *l_top);
(gdb) step
Unaligned access pid=20267 <civclient> va=0x11ffff1ec pc=0x1200239a0
ra=0x120020ef0 inst=0xa4020000
1700 XtSetArg(arglist[1], XtNshown, *l_shown);
(gdb) print l_top
$1 = (long *) 0x11ffff1ec
(gdb) print sizeof(XtArgVal)
$2 = 8
(gdb) print sizeof(float)
$3 = 4
Is this what the comment to function adresses or is it something else?
peter
--
E-Mail: pebl@xxxxxxxxxx
Real name: Peter Berg Larsen
Where: Department of Computer Science, Copenhagen Uni., Denmark
|
|