Re: next-0704: WARNING: at kernel/sched.c:4254 add_preempt_count;PANIC

From: Ingo Molnar
Date: Mon Jul 07 2008 - 02:35:42 EST



* Alexander Beregalov <a.beregalov@xxxxxxxxx> wrote:

> Hi
>
> WARNING: at kernel/sched.c:4254 add_preempt_count+0x61/0x63()
> Modules linked in: i2c_nforce2
> Pid: 3620, comm: rtorrent Not tainted 2.6.26-rc8-next-20080704 #5

this warning is what triggers:

#ifdef CONFIG_DEBUG_PREEMPT
/*
* Underflow?
*/
if (DEBUG_LOCKS_WARN_ON((preempt_count() < 0)))
return;

i.e. preempt counter underflow. That can happen either due to unbalanced
preempt_disable()/preempt_enable() pairs, or can happen due to stack
overflow/corruption.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/