From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4C77B054.8080609@domain.hid> Date: Fri, 27 Aug 2010 14:32:20 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <4C7783C9.5090501@domain.hid> <4C7788A5.2020307@domain.hid> In-Reply-To: <4C7788A5.2020307@domain.hid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] False positive XENO_BUGON(NUCLEUS, need_resched == 0)? List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai-core Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Hi, >> >> I'm hitting that bug check in __xnpod_schedule after >> xnintr_clock_handler issued a xnpod_schedule like this: >> >> if (--sched->inesting == 0) { >> __clrbits(sched->status, XNINIRQ); >> xnpod_schedule(); >> } >> >> Either the assumption behind the bug check is no longer correct (no call >> to xnpod_schedule() without a real need), or we should check for >> __xnpod_test_resched(sched) in xnintr_clock_handler (but under nklock then). >> >> Comments? > > You probably have a real bug. This BUG_ON means that the scheduler is > about to switch context for real, whereas the resched bit is not set, > which is wrong. This happened over my 2.6.35 port - maybe some spurious IRQ enabling. Debugging further... Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux