From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22906 invoked from network); 22 Sep 1998 18:45:18 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 22 Sep 1998 18:45:18 -0000 Received: from voicenet.com (mail11.voicenet.com [207.103.0.37]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id OAA14601 for ; Tue, 22 Sep 1998 14:44:32 -0400 Received: (qmail 22836 invoked from network); 22 Sep 1998 18:41:09 -0000 Received: from rotary913-pri.voicenet.com (HELO voicenet.com) (209.71.52.13) by mail11.voicenet.com with SMTP; 22 Sep 1998 18:41:09 -0000 Message-ID: <3607F1FD.6350B40D@voicenet.com> Date: Tue, 22 Sep 1998 14:52:47 -0400 From: Uncle George Organization: None Avail X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: Matti Aarnio CC: axp-list@redhat.com Subject: Re: my X server crashes References: <19980922154047Z92249-461+1@mea.tmt.tele.fi> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 'ÿ' , "à" > > > > (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 > >