From: Kevin Hilman <khilman@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [patch] Real-Time Preemption, -RT-2.6.10-rc3-mm1-V0.7.34-01
Date: Tue, 11 Jan 2005 16:34:49 +0100 [thread overview]
Message-ID: <aa667b8b0501110734266a44ab@mail.gmail.com> (raw)
Using V0.7.34-01, I'm seeing the 'lock held at task exit time' bug.
It's coming from a kernel module which in its init function creates a
thread. The thread does a daemonize() and then goes to sleep waiting
on a semaphore which will be up'ed elsewhere. In other words:
init_module()
- sema_init(&sem, 0)
- kernel_thread(thread_func, 0, 0);
thread_func()
- daemonize()
- down(&sem)
The BUG() (see below for log) seems to be triggered when insmod exits.
BUG: insmod/2115, lock held at task exit time!
[c883225c] {&tinfo[i].sem}
.. held by: insmod: 2115 [c7b6f340, 0]
... acquired at: threads_init+0x8e/0x170 [rt_kthreads]
hm, PI interest held at exit time? Task:
insmod: 2115 [c7b6f340, 0]-------------------------
| waiter struct c4c1bf74:
| w->task:
insmod: 2123 [c7e68680, 0]
| lock:
[c883225c] {&tinfo[i].sem}
.. held by: insmod: 2115 [c7b6f340, 0]
... acquired at: threads_init+0x8e/0x170 [rt_kthreads]
| blocked at: thread_func+0x3d/0xb0 [rt_kthreads]
-------------------------
--
Kevin Hilman
http://hilman.org/kevin/
reply other threads:[~2005-01-11 15:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa667b8b0501110734266a44ab@mail.gmail.com \
--to=khilman@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.