Skip to content
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

A bug in OS_TaskExit workwith vxworks #904

Closed
sfzyk opened this issue Mar 14, 2021 · 2 comments
Closed

A bug in OS_TaskExit workwith vxworks #904

sfzyk opened this issue Mar 14, 2021 · 2 comments

Comments

@sfzyk
Copy link

sfzyk commented Mar 14, 2021

very sorry to bother you
i work with vxwork6.7
got an error when task exiting
OS_Unlock_Global():730:ERROR: global 1 released by task 0xffffffff when owned by task <my_task_id>

when exiting a task , in OS_TaskExit
OS_ObjectIdFinalizeDelete(OS_SUCCESS, &token); will change final id to UNDEFINED

in OS_ObjectIdFinalizeDelete
OS_ObjectIdTransactionFinish change task_record_active_id to final_id(i.e UNDEFINED)
and then OS_Unlock_Global(token->obj_type)

but when OS_lock_Global(token->obj_type) is called task id is true task id
OS_Unlock_Global(token->obj_type) get taskid from task record active id (i.e UNDEFINED) So produce an error

Maybe changing OS_ObjectIdFinalizeDelete(OS_SUCCESS, &token) to OS_ObjectIdFinalizeDelete(OS_ERROR, &token) help?

very very appreciate your reply

@jphickey
Copy link
Contributor

Can you confirm which baseline/version of OSAL you are running?

This sounds like a duplicate of #645 which was fixed by PR #704 a couple months ago. If your baseline is older than this please update to latest and re-check.

@sfzyk
Copy link
Author

sfzyk commented Mar 16, 2021

Thanks! i'm running OSAL4.x and fixed in 5.0.0 by your pr :) !

@sfzyk sfzyk closed this as completed Mar 16, 2021
jphickey pushed a commit to jphickey/osal that referenced this issue Aug 10, 2022
jphickey pushed a commit to jphickey/osal that referenced this issue Aug 10, 2022
Fix nasa#904, Update cpuname targets.cmake documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants