All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [bug] lock-up by failing rt_task_spawn/create
Date: Tue, 09 May 2006 22:32:16 +0200	[thread overview]
Message-ID: <4460FC50.6030904@domain.hid> (raw)

[-- Attachment #1: Type: text/plain, Size: 1255 bytes --]

Hi,

originally, I was hunting some mutex issue (still on it, report will
follow soon). But due to a typo I revealed some nasty clean-up issue of
current trunk (2.1.x seems to contain the same code). Try to create two
tasks like this:

        rt_task_spawn(&task1, "task1", 0, 20, 0, task1_fnc, 0);
        rt_task_spawn(&task2, "task1", 0, 10, 0, task2_fnc, 0);
	[I think rt_task_create would "work" as well.]

The second call will fail due to duplicate names - and will trigger the
lock-up at this chance. It's actually a NULL pointer fault caused like this:

(gdb) bt
#0  schedule_linux_call (type=4, p=0x0, arg=9) at shadow.c:343
                                 ^^^^^
                                 oops!
#1  0xc013b184 in xnshadow_send_sig (thread=<value optimized out>,
    sig=9, specific=<value optimized out>) at shadow.c:1087
#2  0xc492d7d0 in rt_task_delete (task=0xc1120d20) at task.c:591
#3  0xc492d4f7 in rt_task_create (task=0xc1120d20, name=0xc1375f1c
    "task1", stksize=0, prio=10, mode=3145728) at task.c:287

Sorry, no patch yet, I have to move on to the mutex issue first.

BTW, this reminds me the ask for a merging plan of the kgdb support for
ipipe - this bug was tracked down via kgdb...

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

             reply	other threads:[~2006-05-09 20:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-09 20:32 Jan Kiszka [this message]
2006-05-09 20:42 ` [Xenomai-core] [bug] lock-up by failing rt_task_spawn/create Gilles Chanteperdrix
2006-05-09 20:54   ` Jan Kiszka
2006-05-10 13:35     ` Gilles Chanteperdrix
2006-05-10 14:55       ` Jan Kiszka
2006-05-10 15:30         ` Gilles Chanteperdrix
2006-05-09 21:48 ` Philippe Gerum

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=4460FC50.6030904@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.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.