From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12601 invoked from network); 18 Aug 1999 22:11:06 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Aug 1999 22:11:06 -0000 Received: from henry.uncarved.co.uk (ndu-1-60.inweb.co.uk [212.38.69.159]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id SAA10286 for ; Wed, 18 Aug 1999 18:11:04 -0400 Received: (qmail 3748 invoked by uid 500); 18 Aug 1999 22:10:45 -0000 From: "Sean Hunter" Date: Wed, 18 Aug 1999 23:10:45 +0100 To: axp-list@redhat.com Subject: Re: Unaligned traps et al Message-ID: <19990818231045.Z28508@henry.uncarved.co.uk> Mail-Followup-To: axp-list@redhat.com References: <19990818215044.10522.rocketmail@web1005.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <19990818215044.10522.rocketmail@web1005.mail.yahoo.com>; from Jano Lukac on Wed, Aug 18, 1999 at 02:50:44PM -0700 X-Operating-System: Linux henry.uncarved.co.uk 2.2.10 X-Organisation: Uncarved Systems Ltd. X-Public-Key-URL: http://fido.bfriars.ox.ac.uk/~sean/pubkey.asc X-MSMail-Priority: High X-Priority: 1 On Wed, Aug 18, 1999 at 02:50:44PM -0700, Jano Lukac wrote: > Hi, > > The programming stuff is way beyond me, so please don't berate for my > ignorance. > > --- Sean Hunter wrote: > > > For those who don't know, its possible (as Michal told me, and rth's > > code snippet demonstrated) to exercise a small degree of control over > > what the kernel does when an app encounters an unaligned access. In > > particular, you can turn off the message, tell the kernel not to fix > > the access (this sounds like a bad idea), or (more usefully) get the > > kernel to send the app a SIGBUS, causing it to dump core. You can > > then plug the coredump into your favourite debugger and fix the > > access. > > So this means for the "regular" user (assuming an alpha linux system) that any > time there was this unaligned trap, the program would core dump? Therefore a > non-programmer-type person (like me) would be unable to continue using many > programs intended for x86 which were compiled on his/her alpha because of this. > That seems a little counter-productive to me, but might in fact spur some > programmer-types to finally fix other programs ;) > The idea is that you would have your alpha working exactly as it now does, whereas I (and others like me) would have a simple way to turn on debugging which would allow us to fix a lot of nasty unaligned traps that make your alpha slower than it should be. We can then post patches, and when you upgrade your apps, the traps go away, and your box speeds up. You don't have to suffer any breakage, and get the benefit of our hard work, whereas we can do the debugging we want, easier. Sean