From: Matti Aarnio <matti.aarnio@sonera.fi>
To: axp-list@redhat.com
Cc: gatgul@voicenet.com
Subject: Re: my X server crashes
Date: Tue, 22 Sep 1998 18:40:45 +0300 (EEST) [thread overview]
Message-ID: <19980922154047Z92249-461+1@mea.tmt.tele.fi> (raw)
In-Reply-To: <36070789.13CA8643@voicenet.com> from Uncle George at "Sep 21, 98 10:12:27 pm"
> 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
>
next prev parent reply other threads:[~1998-09-22 15:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
1998-09-22 18:52 ` Uncle George
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox