From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id E75C6BBA7 for ; Sun, 18 Dec 2005 02:28:35 +0100 (CET) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.200]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jBI1SZcO007268 for ; Sun, 18 Dec 2005 02:28:35 +0100 Received: by zproxy.gmail.com with SMTP id z31so916738nzd for ; Sat, 17 Dec 2005 17:28:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QtRP/QejsAmzdE5vOOUwB/sd7JRIBPoRvwKzNIOAKTG1/mgf8+WXT7vlotTBY8kkpaMxyl5LfLe+G/T3p5kSnrHwoJ9biQcO2C5B38mj+sZXnU766Cusu/pNvb21R5GSYHjvvyIkgHttZOiRfv7cK8g41ElCVhQANjmCLLEhgg8= Received: by 10.64.233.2 with SMTP id f2mr1109033qbh; Sat, 17 Dec 2005 17:28:34 -0800 (PST) Received: by 10.65.22.12 with HTTP; Sat, 17 Dec 2005 17:28:34 -0800 (PST) Message-ID: Date: Sun, 18 Dec 2005 14:28:34 +1300 From: Jonathan Roewen To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] vmthreads... In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Miltered: at nez-perce with ID 43A4BB43.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 functor:01 debugging:01 queued:98 queued:98 inline:01 guess:02 dump:03 driver:03 let:03 locks:04 runs:09 runs:09 gmail:09 instance:09 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 Let me show you the code that is causing the problems ;-) http://rafb.net/paste/results/bk9vcK29.html -- figured less painful than pasting inline ;-) Anyways, what happens is I create an instance of a functor that builds a driver. When things don't lock up, it all runs fine. However, every couple of runs, it easily locks up -- nothing responds. Here's a dump of a sample session of my debugging statements: isr_contents =3D %x write: sent... write: sent... write: sent... write: sent... in ISR... isr_contents =3D 4 (* =3D> transmit_ok bit is set *) tx queued packet (* 'may' does this if there is a packet queued *) in ISR... (* we call ourselves again, because isr_contents <> 0 *) isr_contents =3D 4 (* I guess another packet has been transmitted.. *) tx queued packet in ISR... isr_contents =3D 0 (* so we can now return *) in ISR.. isr_contents =3D 0 write: sent... (* system completely locked up/dead *) Jonathan