Skip to content

Fix thread syncronization problems (1.3.x)#2211

Merged
Mab879 merged 6 commits intoOpenSCAP:maint-1.3from
evgenyz:sync-1.3
Apr 2, 2025
Merged

Fix thread syncronization problems (1.3.x)#2211
Mab879 merged 6 commits intoOpenSCAP:maint-1.3from
evgenyz:sync-1.3

Conversation

@evgenyz
Copy link
Copy Markdown
Contributor

@evgenyz evgenyz commented Mar 25, 2025

Back-port of #2204.

evgenyz added 6 commits March 21, 2025 11:58
There are a lot of possible memory overruns reported by helgrind
coming from rbt_* operations without this flag.
We should not re-initialize thread_barrier, it is an UB.
This is implementation dependent, frown upon and triggering
for sanitizers.
We should make sure that receiver gets something (error should do it),
even if the worker thread suddenly terminates (e.g. thread_exit).
SEAP_cmd_exec function waiting branch was prone to spurious wakeups.
Use pthread_cond_broadcast __SEAP_cmd_sync_handler to make sure
all possible listeners are notified.
These log records were introduced in anticipation of the
PCRE -> PCRE2 migration problems. We can get rid of them now.
@evgenyz evgenyz changed the title Sync problems. Experimental. DO NOT MERGE (1.3.x) Sync problems. Experimental. DO NOT MERGE (1.3.x) Mar 25, 2025
@evgenyz evgenyz changed the title Sync problems. Experimental. DO NOT MERGE (1.3.x) Fix thread syncronization problems (1.3.x) Mar 28, 2025
@evgenyz evgenyz added this to the 1.3.12 milestone Mar 31, 2025
@evgenyz evgenyz requested a review from Mab879 April 1, 2025 22:20
@Mab879 Mab879 self-assigned this Apr 2, 2025
@Mab879 Mab879 merged commit 38706d6 into OpenSCAP:maint-1.3 Apr 2, 2025
13 of 17 checks passed
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.

2 participants