Skip to content

Fix recursive set bug - #141

Merged
AlexanderWells-diamond merged 2 commits into
masterfrom
fix_recursive_set_bug
Dec 4, 2023
Merged

AlexanderWells-diamond merged 2 commits into
masterfrom
fix_recursive_set_bug

Conversation

@AlexanderWells-diamond

Copy link
Copy Markdown
Collaborator

Prevent a deadlock by ensuring the GIL is released when attempting to acquire EPICS record locks.

Closes #119

This fixes a potential deadlock between the GIL and EPICS record lock
@codecov

codecov Bot commented Dec 1, 2023 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (906e058) 87.73% compared to head (43bb3dd) 87.73%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #141   +/-   ##
=======================================
  Coverage   87.73%   87.73%           
=======================================
  Files          14       14           
  Lines        1019     1019           
=======================================
  Hits          894      894           
  Misses        125      125           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions

github-actions Bot commented Dec 1, 2023 •

Copy link
Copy Markdown

Unit Test Results

     15 files  ±  0       15 suites  ±0   27m 57s ⏱️ +9s
   278 tests +  1     262 ✔️ +  1    16 💤 ±0  0 ❌ ±0 
4 170 runs  +15  3 575 ✔️ +10  595 💤 +5  0 ❌ ±0 

Results for commit 43bb3dd. ± Comparison against base commit 906e058.

♻️ This comment has been updated with latest results.

@Araneidae Araneidae left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Note that this test is most recreatable with cothread==2.19.1, but that
version doesn't support Python3.6, which pythonSoftIOC still declares
support for. So just leave it unpinned and assume users will likely get
that version!
@AlexanderWells-diamond
AlexanderWells-diamond merged commit 43bb3dd into master Dec 4, 2023
@Araneidae
Araneidae deleted the fix_recursive_set_bug branch December 13, 2023 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible deadlock when record.set called in on_update callback

2 participants