* my X server crashes
@ 1998-09-11 17:41 Uncle George
1998-09-11 18:50 ` Matti Aarnio
0 siblings, 1 reply; 11+ messages in thread
From: Uncle George @ 1998-09-11 17:41 UTC (permalink / raw)
To: axp-list@redhat.com; +Cc: redhat-devel-list@redhat.com
when running my alpha/java jdk116 with a matrix & redhats XFree86 for
5.1, i get an alignment failure in the mga ( matrox video ) driver.
i'm having trouble finding who to email this AXP alignment problem, but
am unable to find a good email address. Ie the core team for
matrox/linux.
gat.
BTW. in the mean time, is there a way to tell the "c" compiler that the
int pointer is ( most likely ) unaligned ??? like pragma unaligned??
Program received signal SIGSEGV, Segmentation fault.
MGAFillStippledCPUToScreenColorExpand () at mga_xaarepl.c:265
265 *(destptr++) = (*scratch >> scratch2) |
(gdb) p destptr
$1 = (unsigned int *) 0x155555ec000
(gdb) p scratch
$2 = (unsigned int *) 0x1208fe221
(gdb) p srcx
$3 = 11
(gdb) where
#0 MGAFillStippledCPUToScreenColorExpand () at mga_xaarepl.c:265
#1 0x12006392c in MGAFillRectStippled () at mga_xaarepl.c:350
#2 0x120078718 in xf86PolyFillRect () at xf86frect.c:362
#3 0x12007b954 in DoPatternedFillSpans () at xf86spans.c:323
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x10002017c0133
This warning occurs if you are debugging a function without any symbols
(for example, in a stripped executable). In that case, you may wish to
increase the size of the search with the `set heuristic-fence-post'
command.
Otherwise, you told GDB there was a function where there isn't one, or
(more likely) you have encountered a bug in GDB.
(gdb) p srcp
$4 = (unsigned char *) 0x1208fe220 'ÿ' <repeats 112 times>, "à"
(gd
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: my X server crashes
1998-09-11 17:41 my X server crashes Uncle George
@ 1998-09-11 18:50 ` Matti Aarnio
1998-09-11 19:33 ` Uncle George
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Matti Aarnio @ 1998-09-11 18:50 UTC (permalink / raw)
To: axp-list; +Cc: redhat-devel-list
> when running my alpha/java jdk116 with a matrix & redhats XFree86 for
> 5.1, i get an alignment failure in the mga ( matrox video ) driver.
> i'm having trouble finding who to email this AXP alignment problem, but
> am unable to find a good email address. Ie the core team for
> matrox/linux.
That is a known problem, and is fixed in my patch sets which
have (mostly) been incorporated with RedHat's rawhide development
series.
You should get new working version of SVGA driver from
the RH5.1 updates, or from the 'rawhide' series
(ftp://ftp.redhat.com/pub/rawhide/alpha/)
> gat.
> BTW. in the mean time, is there a way to tell the "c" compiler that the
> int pointer is ( most likely ) unaligned ??? like pragma unaligned??
No.
Btw, XFree86 development sources don't have these MGA problems,
the code in there is major way revised...
/Matti Aarnio <matti.aarnio@sonera.fi>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: my X server crashes
1998-09-11 18:50 ` Matti Aarnio
@ 1998-09-11 19:33 ` Uncle George
1998-09-12 2:09 ` Wes Bauske
1998-09-12 18:55 ` Uncle George
2 siblings, 0 replies; 11+ messages in thread
From: Uncle George @ 1998-09-11 19:33 UTC (permalink / raw)
To: axp-list; +Cc: Matti Aarnio
is there anyway i can get the mga patches - downloading another 43megs of XF86
src will take a long time!
i took the patches from
ftp://mea.tmt.tele.fi/pub/XFree86
the patches were applied to redhat 5.1 ( i think xfree 3.3.2-18), of which i
get that crash.
is there another set ??
Matti Aarnio wrote:
> > when running my alpha/java jdk116 with a matrix & redhats XFree86 for
> > 5.1, i get an alignment failure in the mga ( matrox video ) driver.
> > i'm having trouble finding who to email this AXP alignment problem, but
> > am unable to find a good email address. Ie the core team for
> > matrox/linux.
>
> That is a known problem, and is fixed in my patch sets which
> have (mostly) been incorporated with RedHat's rawhide development
> series.
>
> You should get new working version of SVGA driver from
> the RH5.1 updates, or from the 'rawhide' series
> (ftp://ftp.redhat.com/pub/rawhide/alpha/)
>
> > gat.
> > BTW. in the mean time, is there a way to tell the "c" compiler that the
> > int pointer is ( most likely ) unaligned ??? like pragma unaligned??
>
> No.
>
> Btw, XFree86 development sources don't have these MGA problems,
> the code in there is major way revised...
>
> /Matti Aarnio <matti.aarnio@sonera.fi>
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: my X server crashes
1998-09-11 18:50 ` Matti Aarnio
1998-09-11 19:33 ` Uncle George
@ 1998-09-12 2:09 ` Wes Bauske
1998-09-12 19:00 ` Michal Jaegermann
1998-09-12 18:55 ` Uncle George
2 siblings, 1 reply; 11+ messages in thread
From: Wes Bauske @ 1998-09-12 2:09 UTC (permalink / raw)
To: axp-list
Matti Aarnio wrote:
>
> > when running my alpha/java jdk116 with a matrix & redhats XFree86 for
> > 5.1, i get an alignment failure in the mga ( matrox video ) driver.
> > i'm having trouble finding who to email this AXP alignment problem, but
> > am unable to find a good email address. Ie the core team for
> > matrox/linux.
>
> That is a known problem, and is fixed in my patch sets which
> have (mostly) been incorporated with RedHat's rawhide development
> series.
>
> You should get new working version of SVGA driver from
> the RH5.1 updates, or from the 'rawhide' series
> (ftp://ftp.redhat.com/pub/rawhide/alpha/)
>
> > gat.
> > BTW. in the mean time, is there a way to tell the "c" compiler that the
> > int pointer is ( most likely ) unaligned ??? like pragma unaligned??
>
> No.
>
> Btw, XFree86 development sources don't have these MGA problems,
> the code in there is major way revised...
>
Doesn't that get_unaligned() routine work for places other than the
kernel??
Wes
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: my X server crashes
1998-09-12 2:09 ` Wes Bauske
@ 1998-09-12 19:00 ` Michal Jaegermann
0 siblings, 0 replies; 11+ messages in thread
From: Michal Jaegermann @ 1998-09-12 19:00 UTC (permalink / raw)
To: axp-list
Wes Bauske wrote:
>
> Doesn't that get_unaligned() routine work for places other than the
> kernel??
From a recent posting by Richard Henderson get_unaligned() is
an "abominable casting hack" (or something close) and it should not
work at all with current compilers. That it still happens to work
is a small miracle and/or a compiler bug.
In the case I was interested (kernel and fdisk throwing "unaligned"
tantrums when checking partition data) a cure consisted from
adding 'packed' attribute to 'partition' structure.
Michal
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: my X server crashes
1998-09-11 18:50 ` Matti Aarnio
1998-09-11 19:33 ` Uncle George
1998-09-12 2:09 ` Wes Bauske
@ 1998-09-12 18:55 ` Uncle George
1998-09-13 0:06 ` Matti Aarnio
2 siblings, 1 reply; 11+ messages in thread
From: Uncle George @ 1998-09-12 18:55 UTC (permalink / raw)
To: axp-list; +Cc: redhat-devel-list, Matti Aarnio
took the latest rawhide XFree86-3.3.2.3-20.src.rpm.
compiled server with -O0 -g,
and installed XF86_SVGA.
tried java/supermojo/wizard button.
i still get this alignment problem.
---> APPARENTLY THIS HAS NOT BEEN FIXED
BTW if the int* is not properly aligned, u gonna get these alignment faults.
so i dont see how this problem is gonna change, in particular if u store a
char* + offset into an int*, and then fetch as an int*. you are bound to screw
up sometime.
gat
[root@LX bin]# gdb XF86_SVGA 249
Program received signal SIGSEGV, Segmentation fault.
MGAFillStippledCPUToScreenColorExpand () at mga_xaarepl.c:265
265 *(destptr++) = (*scratch >> scratch2) |
(gdb) l
260 scratch = (CARD32*)(srcp + (offset >> 3));
261 scratch2 = offset & 0x07;
262
263 if(shift & ~31) {
264 if(scratch2) {
265 *(destptr++) = (*scratch >> scratch2) |
266 (scratch[1] << (32 - scratch2));
267 } else
268 *(destptr++) = *scratch;
269 } else {
(gdb) where
#0 MGAFillStippledCPUToScreenColorExpand () at mga_xaarepl.c:265
#1 0x12006394c in MGAFillRectStippled () at mga_xaarepl.c:350
#2 0x120078738 in xf86PolyFillRect () at xf86frect.c:362
#3 0x12007b974 in DoPatternedFillSpans () at xf86spans.c:323
warning: Hit heuristic-fence-post without finding
(gdb) p offset
$1 = 11
(gdb) p srcp
$2 = (unsigned char *) 0x1207f0860 'ÿ' <repeats 112 times>, "à"
(gdb)
#
Matti Aarnio wrote:
> > when running my alpha/java jdk116 with a matrix & redhats XFree86 for
> > 5.1, i get an alignment failure in the mga ( matrox video ) driver.
> > i'm having trouble finding who to email this AXP alignment problem, but
> > am unable to find a good email address. Ie the core team for
> > matrox/linux.
>
> That is a known problem, and is fixed in my patch sets which
> have (mostly) been incorporated with RedHat's rawhide development
> series.
>
> You should get new working version of SVGA driver from
> the RH5.1 updates, or from the 'rawhide' series
> (ftp://ftp.redhat.com/pub/rawhide/alpha/)
>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: my X server crashes
1998-09-12 18:55 ` Uncle George
@ 1998-09-13 0:06 ` Matti Aarnio
1998-09-17 19:05 ` Uncle George
1998-09-22 2:12 ` Uncle George
0 siblings, 2 replies; 11+ messages in thread
From: Matti Aarnio @ 1998-09-13 0:06 UTC (permalink / raw)
To: axp-list
> took the latest rawhide XFree86-3.3.2.3-20.src.rpm.
> compiled server with -O0 -g,
> and installed XF86_SVGA.
> tried java/supermojo/wizard button.
> i still get this alignment problem.
> ---> APPARENTLY THIS HAS NOT BEEN FIXED
> BTW if the int* is not properly aligned, u gonna get these alignment faults.
> so i dont see how this problem is gonna change, in particular if u store a
> char* + offset into an int*, and then fetch as an int*. you are bound to screw
> up sometime.
> gat
Hmm... This appears to be different case from the one I did
fix in that same file...
Can I have your entire application ?
As an alternate plan, I will try to make available timebombed
editions of XFree86 4.0 betas for Alpha. That will take some
days at least, though :-/ (The Matrox related code in there
has had major revision...)
Anyway, SIGSEGV means the pointer is major way screwd up,
not just misaligned which show up as these at 'dmesg':
X(550): unaligned trap at 000000012004e50c: 000000012059bbc3 28 1
X(550): unaligned trap at 000000012004e514: 000000012059bbc7 28 2
but truly screwd up and pointing into unmapped memory.
Which of the expressions on that line 265 is crashing ?
> [root@LX bin]# gdb XF86_SVGA 249
> Program received signal SIGSEGV, Segmentation fault.
> MGAFillStippledCPUToScreenColorExpand () at mga_xaarepl.c:265
> 265 *(destptr++) = (*scratch >> scratch2) |
> (gdb) l
> 260 scratch = (CARD32*)(srcp + (offset >> 3));
> 261 scratch2 = offset & 0x07;
> 262
> 263 if(shift & ~31) {
> 264 if(scratch2) {
> 265 *(destptr++) = (*scratch >> scratch2) |
> 266 (scratch[1] << (32 - scratch2));
> 267 } else
> 268 *(destptr++) = *scratch;
> 269 } else {
> (gdb) where
> (gdb) p offset
> $1 = 11
> (gdb) p srcp
> $2 = (unsigned char *) 0x1207f0860 'ÿ' <repeats 112 times>, "à"
> (gdb)
Hmm.. srcp works ok, what the destptr points to ?
/Matti Aarnio <matti.aarnio@sonera.fi>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: my X server crashes
1998-09-13 0:06 ` Matti Aarnio
@ 1998-09-17 19:05 ` Uncle George
1998-09-22 2:12 ` Uncle George
1 sibling, 0 replies; 11+ messages in thread
From: Uncle George @ 1998-09-17 19:05 UTC (permalink / raw)
To: axp-list, Matti Aarnio
entire application:
1) u need X
2) lesstiff-current
3) my JAVA jdk116 for alpha ( www.voicenet.com/~gatgul/JDK )
4) supermojo ( I think i was given this trial copy - good for a month )
THESE ARE JUST THE PIECES
then they have to be installed.
do u still care to run "The Application" ?
gat
Matti Aarnio wrote:
> > took the latest rawhide XFree86-3.3.2.3-20.src.rpm.
> > compiled server with -O0 -g,
> > and installed XF86_SVGA.
> > tried java/supermojo/wizard button.
> > i still get this alignment problem.
> > ---> APPARENTLY THIS HAS NOT BEEN FIXED
> > BTW if the int* is not properly aligned, u gonna get these alignment faults.
> > so i dont see how this problem is gonna change, in particular if u store a
> > char* + offset into an int*, and then fetch as an int*. you are bound to screw
> > up sometime.
> > gat
>
> Hmm... This appears to be different case from the one I did
> fix in that same file...
>
> Can I have your entire application ?
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: my X server crashes
1998-09-13 0:06 ` Matti Aarnio
1998-09-17 19:05 ` Uncle George
@ 1998-09-22 2:12 ` Uncle George
1998-09-22 15:40 ` Matti Aarnio
1 sibling, 1 reply; 11+ messages in thread
From: Uncle George @ 1998-09-22 2:12 UTC (permalink / raw)
To: axp-list, Matti Aarnio
lets see, offset = 11 , and srcp = 0x1207f0860, therefor scratch = srcp + ( offset
>>3 )
will yield 1207f0861. and then *scratch ( which is an int *) with get alignment
fault.
hopes this helps in ur analysis.
Matti Aarnio wrote:
> > [root@LX bin]# gdb XF86_SVGA 249
> > Program received signal SIGSEGV, Segmentation fault.
> > MGAFillStippledCPUToScreenColorExpand () at mga_xaarepl.c:265
> > 265 *(destptr++) = (*scratch >> scratch2) |
> > (gdb) l
> > 260 scratch = (CARD32*)(srcp + (offset >> 3));
> > 261 scratch2 = offset & 0x07;
> > 262
> > 263 if(shift & ~31) {
> > 264 if(scratch2) {
> > 265 *(destptr++) = (*scratch >> scratch2) |
> > 266 (scratch[1] << (32 - scratch2));
> > 267 } else
> > 268 *(destptr++) = *scratch;
> > 269 } else {
> > (gdb) where
> > (gdb) p offset
> > $1 = 11
> > (gdb) p srcp
> > $2 = (unsigned char *) 0x1207f0860 'ÿ' <repeats 112 times>, "à"
> > (gdb)
>
> Hmm.. srcp works ok, what the destptr points to ?
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: my X server crashes
1998-09-22 2:12 ` Uncle George
@ 1998-09-22 15:40 ` Matti Aarnio
1998-09-22 18:52 ` Uncle George
0 siblings, 1 reply; 11+ messages in thread
From: Matti Aarnio @ 1998-09-22 15:40 UTC (permalink / raw)
To: axp-list; +Cc: gatgul
> lets see, offset = 11 , and srcp = 0x1207f0860, therefor scratch = srcp + ( offset
> >>3 )
> will yield 1207f0861. and then *scratch ( which is an int *) with get alignment
> fault.
> hopes this helps in ur analysis.
Sorry Uncle,
ALIGNMENT fault causes these
X(nnn): unaligned trap at ...
reports, but if the pointer goes to unmapped memory area,
THEN happens SIGSEGV...
As the 'scratch' et.al. are mapped within, the 'destptr'
must then be faulty. What is the value in there ?
/Matti Aarnio
> Matti Aarnio wrote:
>
> > > [root@LX bin]# gdb XF86_SVGA 249
> > > Program received signal SIGSEGV, Segmentation fault.
> > > MGAFillStippledCPUToScreenColorExpand () at mga_xaarepl.c:265
> > > 265 *(destptr++) = (*scratch >> scratch2) |
> > > (gdb) l
> > > 260 scratch = (CARD32*)(srcp + (offset >> 3));
> > > 261 scratch2 = offset & 0x07;
> > > 262
> > > 263 if(shift & ~31) {
> > > 264 if(scratch2) {
> > > 265 *(destptr++) = (*scratch >> scratch2) |
> > > 266 (scratch[1] << (32 - scratch2));
> > > 267 } else
> > > 268 *(destptr++) = *scratch;
> > > 269 } else {
> > > (gdb) where
> > > (gdb) p offset
> > > $1 = 11
> > > (gdb) p srcp
> > > $2 = (unsigned char *) 0x1207f0860 'ÿ' <repeats 112 times>, "à"
> > > (gdb)
> >
> > Hmm.. srcp works ok, what the destptr points to ?
>
>
>
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: my X server crashes
1998-09-22 15:40 ` Matti Aarnio
@ 1998-09-22 18:52 ` Uncle George
0 siblings, 0 replies; 11+ messages in thread
From: Uncle George @ 1998-09-22 18:52 UTC (permalink / raw)
To: Matti Aarnio; +Cc: axp-list
thank you very much for ur time and trouble. i have allready fixed this alignment
problem, and have moved on.
gat
BTW, it used to be that alignment faults are not reported back to the users program, and
are simply KERNEL-FIXED on the fly. I have fixed the FIXUP routine to annoy the user (
as it is my self ) with a signal. There was no choice on how the kernel is to handle
the faults in the 2.0.xx series, but there is a choice in the 2.1.xx series ( as well as
in DU ) . as a developer I need to know when & where thse faults occure, and chose to
interrupt the program when a fault occures. But his affects all programs on the system,
as it did in X.
BTW2 my original dump/stack trace listed all the vars associated with this program
segment.
BTW3 it used to be u would get a SIGBUS ( PDP-11 ) when u referenced an area outside ur
program.
Matti Aarnio wrote:
> > lets see, offset = 11 , and srcp = 0x1207f0860, therefor scratch = srcp + ( offset
> > >>3 )
> > will yield 1207f0861. and then *scratch ( which is an int *) with get alignment
> > fault.
> > hopes this helps in ur analysis.
>
> Sorry Uncle,
>
> ALIGNMENT fault causes these
> X(nnn): unaligned trap at ...
> reports, but if the pointer goes to unmapped memory area,
> THEN happens SIGSEGV...
>
> As the 'scratch' et.al. are mapped within, the 'destptr'
> must then be faulty. What is the value in there ?
>
> /Matti Aarnio
>
> > Matti Aarnio wrote:
> >
> > > > [root@LX bin]# gdb XF86_SVGA 249
> > > > Program received signal SIGSEGV, Segmentation fault.
> > > > MGAFillStippledCPUToScreenColorExpand () at mga_xaarepl.c:265
> > > > 265 *(destptr++) = (*scratch >> scratch2) |
> > > > (gdb) l
> > > > 260 scratch = (CARD32*)(srcp + (offset >> 3));
> > > > 261 scratch2 = offset & 0x07;
> > > > 262
> > > > 263 if(shift & ~31) {
> > > > 264 if(scratch2) {
> > > > 265 *(destptr++) = (*scratch >> scratch2) |
> > > > 266 (scratch[1] << (32 - scratch2));
> > > > 267 } else
> > > > 268 *(destptr++) = *scratch;
> > > > 269 } else {
> > > > (gdb) where
> > > > (gdb) p offset
> > > > $1 = 11
> > > > (gdb) p srcp
> > > > $2 = (unsigned char *) 0x1207f0860 'ÿ' <repeats 112 times>, "à"
> > > > (gdb)
> > >
> > > Hmm.. srcp works ok, what the destptr points to ?
> >
> >
> >
> >
> > --
> > To unsubscribe: send e-mail to axp-list-request@redhat.com with
> > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
> >
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~1998-09-22 18:45 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-11 17:41 my X server crashes Uncle George
1998-09-11 18:50 ` Matti Aarnio
1998-09-11 19:33 ` Uncle George
1998-09-12 2:09 ` Wes Bauske
1998-09-12 19:00 ` Michal Jaegermann
1998-09-12 18:55 ` Uncle George
1998-09-13 0:06 ` Matti Aarnio
1998-09-17 19:05 ` Uncle George
1998-09-22 2:12 ` Uncle George
1998-09-22 15:40 ` Matti Aarnio
1998-09-22 18:52 ` Uncle George
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox