All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Strange deadlock.
@ 2007-02-09 19:35 Maksym Veremeyenko
  2007-02-09 20:54 ` Philippe Gerum
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Maksym Veremeyenko @ 2007-02-09 19:35 UTC (permalink / raw)
  To: Xenomai-help

Hi!

I found dead lock in my program and looking for reason, but i found 
something strange. Is possible mutex state looks like:
[root@domain.hid /]# cat /proc/xenomai/registry/native/mutexes/coll_VDCP_1
=locked by bus_monitor_proc[0] depth=1
+vdcp[0030]m
+bus_monitor_proc[0]

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.


Also have a questions:

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?

2. Does exist API function to detect mutex owner?



-- 
________________________________________
Maksym Veremeyenko



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-02-11 19:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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.