-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requirement cES1008 Failure #952
Comments
Dug into this one today --- I believe this is an artifact of using I confirmed that there is no problem with the way CFE is invoking OSAL here - it is indeed calling This likely is related to the way Specifically this says:
Clearly, observations strongly suggest that the original module must have still has some references/relocations pointing to it, such that the runtime loader never unloads the original module, despite it being "closed". BUT - by using So using this flag solves the reload issue for apps but creates another problem on libraries - the libraries DO need to be loaded with This may necessitate a new API variant of |
My proposal is that we add something like:
My proposal is to make GLOBAL mode the default (unlike POSIX) because that is the only thing that RTEMS and VxWorks do, and it is the current behavior. CFE can then invoke |
Sounds good to me. @acudmore? |
Maybe the terms LOCAL/GLOBAL aren't the best - we could also use a more CFE-ish term like "LIBRARY" or "APPLICATION"? This also may necessitate a variant of |
Also worth noting - pretty much every other resource type already has a Perhaps just to make things consistent and simpler we should just add a flags option to I'll make a PR that does this, and we can discuss. |
|
Set the newly-added flags parameter on the OS_ModuleLoad properly to allow an app to be properly unloaded, which in turn allows the reload command to work as expected.
Set the newly-added flags parameter on the OS_ModuleLoad properly to allow an app to be properly unloaded, which in turn allows the reload command to work as expected.
Fix #952, OSAL module flags to permit app reload
Describe the bug
Requirement cES1008 specifies: Upon receipt of a Command the cFE shall Reload the Command specified cFE Application from the Command specified cFE Application file.
This is not consistent with how the FSW works. If a reload command is received, the FSW will restart the Application with the previously loaded version as long as the command specified cFE Application file exists. The same result is seen if an App is started/stopped - then loaded/started with a new version. The system/event log entries will indicate that the loading/starting of the new version of the App is successful...however the original version of the App will be the one that will actually be executed.
To Reproduce
Steps to reproduce the behavior:
Alternatively:
Expected behavior
Able to restart a task of the the same name.
Code snips
If applicable, add references to the software.
System observed on:
OS: ubuntu-19.10
Versions: cfe: v6.7.0+dev295; osal: v5.0.0+dev247; psp: v1.4.14.0
Reporter Info
Dan Knutsen
The text was updated successfully, but these errors were encountered: