From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] GUI toolkit for Plan 9 From: nigel@9fs.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-itfgkiasxuwczjfbnxszjqpzez" Message-Id: <20020304140240.F04DF199B3@mail.cse.psu.edu> Date: Mon, 4 Mar 2002 14:02:41 +0000 Topicbox-Message-UUID: 5e83d278-eaca-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-itfgkiasxuwczjfbnxszjqpzez Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit du -a . | grep ... panic iunlock can be caused by two things: if(l->key == 0) print("iunlock: not locked: pc %luX\n", getcallerpc(&l)); if(!l->isilock) print("iunlock of lock: pc %lux, held by %lux\n", getcallerpc(&l), l->pc); i.e. iunlocking something not locked at all, or iunlocking something that was locked. lock = spin lock ilock = disable interrupts and spin lock the real interest is the pc printed out, because it tells you where the iunlock() was called from. You can consult the kernel image to find out where this is. --upas-itfgkiasxuwczjfbnxszjqpzez Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by cpu; Mon Mar 4 13:49:45 GMT 2002 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.20.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 8BB72199BB; Mon, 4 Mar 2002 08:57:05 -0500 (EST) Delivered-To: 9fans@cse.psu.edu Received: from mx.opusvl.com (mx.opusvl.com [195.89.181.10]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id F114A199BB for <9fans@cse.psu.edu>; Mon, 4 Mar 2002 08:56:33 -0500 (EST) Received: from ppp-177-22.bng.vsnl.net.in ([203.197.177.22] helo=agni) by mx.opusvl.com with smtp (Exim 3.33 #2) id 16hsx2-000107-00 for 9fans@cse.psu.edu; Mon, 04 Mar 2002 13:56:29 +0000 From: Martin C.Atkins To: 9fans@cse.psu.edu Subject: Re: [9fans] GUI toolkit for Plan 9 Message-Id: <20020304192954.33a0cb67.martin@mca-ltd.com> In-Reply-To: <87elj1v3nd.fsf@becket.becket.net> References: <65cb447dbaf5f9da39d670e4f0596c79@plan9.bell-labs.com> <20020301135745.706f318b.martin@mca-ltd.com> <87elj1v3nd.fsf@becket.becket.net> Organization: Mission Critical Applications Ltd X-Mailer: Sylpheed version 0.6.6claws (GTK+ 1.2.8; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Default-Delivery: 9fans@cse.psu.edu Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.8 Precedence: bulk Reply-To: 9fans@cse.psu.edu X-Reply-To: martin@mca-ltd.com List-Help: List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Mon, 4 Mar 2002 19:29:54 +0530 On Mon, 4 Mar 2002 10:07:09 GMT "Thomas Bushnell, BSG" wrote: > martin@mca-ltd.com (Martin C.Atkins) writes: > > > I'm sorry that I can't remember *any* attribution, but I thought it > > was "common wisdom/knowledge" that gcc only really worked properly > > with -O turned on. That the optimiser "optimised away the bugs put in > > by the code generator". This is going back a few years, so it may be > > things have "improved"? > > One of the dangerous things about FUD is that people continue to > repeat it, when it was never true, without attribution except as > "common wisdom". That's as may be. But it never occurred to me that this might be FUD (until you kindly pointed it out). Rather, I thought it was a curiosity about the way that gcc's code generation worked (and not *inherently* incorrect, so long as one didn't regard compiling without -O as "compiling"), and - more importantly - a hint as to how to avoid unnecessary pain (to me, as a user of gcc, at that time, and still now). (After all, I'm still really a Linux lurker. Also, having lost most of yesterday trying to get Plan 9 to install on a new machine without destroying it's partition table (I tried 3 times before giving up and zeroing the disk), I'm not too well disposed to Plan9 right now. Although to be fair, it's working great now..... - BTW: What *does* "panic iunlock" mean (I think that was it), apart from "You're stuffed - go and hit your head on a nearby wall, and then start over..."? First time I thought it was because I had done something silly, but the second time I *hadn't* done the silly thing.... Still, at least the good side effect is that I no-longer have Windows on the machine :-) ) BTW: what's the Plan9 equivalent of Unix's "find . -name ... -print"? (always a good fallback for a beginner :-) Martin -- Martin C. Atkins martin@mca-ltd.com Mission Critical Applications Ltd, U.K. --upas-itfgkiasxuwczjfbnxszjqpzez--