[okl4-developer] [camkes] deadlock within a basic hello world example....
Hugues Balp
hugues.balp at free.fr
Sun Jan 4 08:22:44 EST 2009
Thanks for the first release of the camkes tool.
After having tested the release through the tutorial examples, I have
written some
other examples just a little different from the one you have provided in
order to test
the runtime behavior.
The first one named "hello5" seems to be not multi-thread safe whereas
the second one named "hello6" fails
with some kind of deadlock that I don't better understand....
As illustrated with the figure below and the related hello5.camkes and
hello6.camkes files provided within the
joined archives the only difference between both examples is an
additionnal connection "hello" in example "hello6".
---------------- ----------------
---------------- ----------------
| | | | world
| | | |
| "hello" | helloworld | "hello" |----( O-----|
"world" | helloworld | "world" |
| <control> |----( O-------| |
| |----O )-----| <control> |
| HelloWorld- | | Hello- | \ / |
World- | | HelloWorld- |
| Client | | Component |----O \)-----|
Component | | Client |
| | | | hello
| | | |
---------------- ---------------- / \
---------------- ----------------
As illustrated by the joined logs the resulting behavior leads to some
inconsistencies for the hello5 example
and to a deadlock case for the hello6 example tested with skyeye for the
gumstix platform.
Here are the build and test command I use:
tools/build.py machine=gumstix project=iguana mutex_type=kernel
apps=hello5 simulate
tools/build.py machine=gumstix project=iguana mutex_type=kernel
apps=hello6 simulate
Logs are provided in files hello5.log.tgz and hello6.log.tgz...
I am not sure if those bugs are only related to my examples or to
camkes....
I would appreciate any help on those examples.
Best regards,
Hugues Balp.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello5.tgz
Type: application/x-compressed-tar
Size: 1305 bytes
Desc: not available
Url : http://lists.okl4.org/pipermail/developer/attachments/20090103/aaf359e1/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello6.tgz
Type: application/x-compressed-tar
Size: 1423 bytes
Desc: not available
Url : http://lists.okl4.org/pipermail/developer/attachments/20090103/aaf359e1/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello5.log.tgz
Type: application/x-compressed-tar
Size: 918 bytes
Desc: not available
Url : http://lists.okl4.org/pipermail/developer/attachments/20090103/aaf359e1/attachment-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello6.log.tgz
Type: application/x-compressed-tar
Size: 1097 bytes
Desc: not available
Url : http://lists.okl4.org/pipermail/developer/attachments/20090103/aaf359e1/attachment-0003.bin
More information about the Developer
mailing list