From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 23 Aug 2012 12:24:59 -0400 To: cinap_lenrek@gmx.de, 9fans@9fans.net Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] devmnt crash, fix. Topicbox-Message-UUID: af0723aa-ead7-11e9-9d60-3106f5b1d025 > sleep(&up->waitr, haswaitq, up); > > lock(&up->exl); > wq = up->waitq; > up->waitq = wq->next; <-- wq == nil, boom! its gone! > up->nwait--; > unlock(&up->exl); > > > if sleep returns or is spuriously woken up even tho up->waitq == nil. ah, right. looks like a bug. - erik