|Anonymous | Login | Signup for a new account||2021-05-11 10:51 UTC|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000714||Taste||[All Projects] Ocarina - C code generation||public||2017-11-14 13:41||2018-04-15 20:46|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
Make the task start before calling their init function
At the moment the task's initialization function (as defined in the AADL model) is called before the task start.
This prevents calling a RI from within the startup code.
It would make sense to create the tasks first (allocate input/output buffers) and then call the init code when they are running.
|Tags||No tags attached.|
Activate_Entrypoint is the "init" function called by the thread once after it has been created
Both are supported.
I have replaced "Initialize_Entrypoint_Source_Text" with "Activate_Entrypoint_Source_Text" in the AADL file.
This works with POHI-Ada but not with POHI-C :
the activate was called before the initialisation of the queue, my bad
Ok, thanks for the fix
It seems to still crash both in C and in Ada.
Thread 11 "groundstation" received signal SIGSEGV, Segmentation fault.
And in Ada, it is a bit different, but "The_Periodic_Task" crashes apparently if one of the startup() function takes some time to complete.
|2017-11-14 13:41||maxime||New Issue|
new => assigned
|2017-11-14 13:41||maxime||Assigned To||
|2017-11-14 13:54||hugues||Note Added: 0003112|
|2018-04-14 19:33||maxime||Note Added: 0003280|
|2018-04-15 11:04||hugues||Note Added: 0003281|
|2018-04-15 13:17||maxime||Note Added: 0003282|
assigned => resolved
open => fixed
|2018-04-15 20:46||maxime||Note Added: 0003283|
resolved => new
|Copyright © 2000 - 2011 MantisBT Group|