From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Fri, 11 Jun 2010 19:31:58 +0200." <4C12730E.8060601@bouyapop.org> References: <4C1242CD.5020202@bouyapop.org> <4C124F5E.10104@bouyapop.org> <20100611171151.2E04B5B8B@mail.bitblocks.com> <4C12730E.8060601@bouyapop.org> From: Bakul Shah Date: Fri, 11 Jun 2010 11:34:05 -0700 Message-Id: <20100611183405.831205B8B@mail.bitblocks.com> Subject: Re: [9fans] 9vx, kproc and *double sleep* Topicbox-Message-UUID: 31add0f8-ead6-11e9-9d60-3106f5b1d025 On Fri, 11 Jun 2010 19:31:58 +0200 Philippe Anel wrote: > > I only did my tests on 9vx. I have a version that I instrumented with > a circular log buffer, and I have some gdb macros which dumps the > buffer. > > I can put the whole source somewhere and even a log with my comments > of the bug if you want to see it. But please note that I made several Yes, please. Thanks! > changes (because I had to understand how it works) and I would rather > copy my changes to the latest 9vx source tree so that everyone can > read it. What do you think ? Agreed. Best to check this in on a separate branch though. Branching/merging is cheap in hg. > Please, I would like to insist on the fact I'm not saying the promela > model is wrong. And I realize that the fix I propose might not be the > good one. Maybe the problem is even elsewhere. All these is just > feelings, logs and headache. I haven't used promela so can't say anything about it. sleep() is pretty complicated so figuring it out will take some time and effort but I first have to understand the cause and from past experience I know that code to check a cause hypothesis can be quite valuable (hence my earlier question). An unambiguous proof of what went wrong somehow frees my mind to better focus on the solution! Thanks for your thought experiements & code!