From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 26815 invoked from network); 13 Sep 1998 00:07:58 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 13 Sep 1998 00:07:58 -0000 Received: from mea.tmt.tele.fi (root@mea.tmt.tele.fi [194.252.70.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id UAA05486 for ; Sat, 12 Sep 1998 20:08:37 -0400 Received: by mea.tmt.tele.fi id <92249-454>; Sun, 13 Sep 1998 03:06:00 +0300 Subject: Re: my X server crashes In-Reply-To: <35FAC39C.2483C490@voicenet.com> from Uncle George at "Sep 12, 98 02:55:27 pm" To: axp-list@redhat.com Date: Sun, 13 Sep 1998 03:06:00 +0300 (EEST) From: Matti Aarnio Phone: +358-20402082 (office, with redirection to cellular) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Message-Id: <19980913000603Z92249-454+14@mea.tmt.tele.fi> > 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 'ÿ' , "à" > (gdb) Hmm.. srcp works ok, what the destptr points to ? /Matti Aarnio