Skip to content

Fix #591, Avoid deadlock in CFE_ES_CreatObjects#619

Merged
astrogeco merged 1 commit intonasa:integration-candidatefrom
skliper:fix591-writetosys-deadlock
Apr 28, 2020
Merged

Fix #591, Avoid deadlock in CFE_ES_CreatObjects#619
astrogeco merged 1 commit intonasa:integration-candidatefrom
skliper:fix591-writetosys-deadlock

Conversation

@skliper
Copy link
Contributor

@skliper skliper commented Apr 15, 2020

Describe the contribution
Now uses CFE_ES_SysLogWrite_Unsync inside shared data lock
Fixes #591

Testing performed

  1. CI - https://travis-ci.com/github/skliper/cFS/builds/160449984

Expected behavior changes
No longer locks while locked (no issue observed on linux/posix, but user reported issue on FreeRTOS 10)

System(s) tested on

  • Hardware: CI
  • OS: Ubuntu 18.04
  • Versions: bundle w/ this commit

Additional context
None

Third party code
None

Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

Now uses CFE_ES_SysLogWrite_Unsync inside shared data lock
@skliper skliper added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Apr 15, 2020
@skliper skliper added this to the 6.8.0 milestone Apr 15, 2020
@skliper
Copy link
Contributor Author

skliper commented Apr 15, 2020

ping @thewonderidiot want to see if this works for you?

@thewonderidiot
Copy link

Yep, this matches the changes I made locally to work around the problem. I've since gotten cFE 6.7.0 / OSAL 5.0.0 to fully boot on FreeRTOS, so these are the only instances of this issue that are encountered in the normal boot path, at least. Thanks!

@astrogeco
Copy link
Contributor

CCB 20200422 - Open an issue for an osal debug feature @jphickey. APPROVED

@jphickey
Copy link
Contributor

Added nasa/osal#434 as an enhancement for OSAL to detect and warn about this.

@astrogeco astrogeco added CCB - 20200422 CCB:Approved Indicates code review and approval by community CCB and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Apr 23, 2020
@astrogeco astrogeco changed the base branch from master to integration-candidate April 27, 2020 23:02
@astrogeco astrogeco merged commit 7566f2f into nasa:integration-candidate Apr 28, 2020
@skliper skliper deleted the fix591-writetosys-deadlock branch February 1, 2021 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CCB:Approved Indicates code review and approval by community CCB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CFE_ES_CreateObjects calls CFE_ES_WriteToSysLog while holding shared data lock

4 participants