[camkes] deadlock within a basic hello world example....

1 message Options
Embed this post
Permalink
Hugues Balp-2

[camkes] deadlock within a basic hello world example....

Reply Threaded More More options
Print post
Permalink

    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.


                                                     
                                 






_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer

hello5.tgz (1K) Download Attachment
hello6.tgz (1K) Download Attachment
hello5.log.tgz (1K) Download Attachment
hello6.log.tgz (1K) Download Attachment