From: Maksym Veremeyenko <verem@domain.hid>
To: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] Strange deadlock.
Date: Fri, 09 Feb 2007 23:39:08 +0200 [thread overview]
Message-ID: <45CCE9FC.50805@domain.hid> (raw)
In-Reply-To: <1171054472.25642.10.camel@domain.hid>
Philippe Gerum пишет:
>> seems bus_monitor_proc[0] locked mutex and want to lock again but its
>> blocked. (i still looking for stack corruption point, but no success.)
>> It have the same behavior on two configuration 2.6.17.4 + 2.2.4 and
>> 2.6.19.2 + 2.3.0 + 1.7-01
>> i checked with GDB - two task are wating for mutex.
>> All task perform switching to secondary mode.
>
> Could you strip your code to a bare minimum that still exhibits this bug
> and post it here ? TIA,
unfortunately i can reproduce this situation only on working model with
serial controlled device in one of this threads.
>> 1. On program start after previous crash i unable to create named mutex,
>> because it [-EEXIST], after bind it's unable to operate with it because
>> it locked by task from early died program, i have to restart computer.
>> Any suggestions?
>
> Something like this would do:
>
> if (rt_mutex_bind("...", &desc) == 0)
> rt_mutex_delete(&desc);
>
> rt_mutex_create("...", &desc);
YES! this works fine for me.
________________________________________
Maksym Veremeyenko
next prev parent reply other threads:[~2007-02-09 21:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-09 19:35 [Xenomai-help] Strange deadlock Maksym Veremeyenko
2007-02-09 20:54 ` Philippe Gerum
2007-02-09 21:39 ` Maksym Veremeyenko [this message]
2007-02-09 21:14 ` Dmitry Adamushko
2007-02-09 22:10 ` Maksym Veremeyenko
2007-02-09 23:53 ` Dmitry Adamushko
2007-02-10 4:07 ` Maksym Veremeyenko
2007-02-10 10:34 ` Jan Kiszka
2007-02-11 18:28 ` Maksym Veremeyenko
2007-02-11 19:05 ` 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=45CCE9FC.50805@domain.hid \
--to=verem@domain.hid \
--cc=Xenomai-help@domain.hid \
/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.