Project

General

Profile

Actions

Optimization #4589

open
VJ OD

threading: debug validate mutexes with PTHREAD_MUTEX_ERRORCHECK

Optimization #4589: threading: debug validate mutexes with PTHREAD_MUTEX_ERRORCHECK

Added by Victor Julien over 4 years ago. Updated 1 day ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

The idea is that if we compile with --debug-validation, we:

- pass a pthread_mutexattr_t with PTHREAD_MUTEX_ERRORCHECK to all SCMutexInit calls
- add a check for each init/lock/unlock that aborts if the return code is not 0

Would have found #4478

VJ Updated by Victor Julien almost 3 years ago Actions #1

@Philippe Antoine would this be helpful in fuzzing?

PA Updated by Philippe Antoine almost 3 years ago Actions #2

would this be helpful in fuzzing?

Only if fuzzing use multiple threads, which is not the case right now...

PA Updated by Philippe Antoine almost 2 years ago Actions #3

  • Assignee set to OISF Dev
  • Target version set to TBD

PA Updated by Philippe Antoine 1 day ago Actions #4

  • Tracker changed from Task to Optimization
Actions

Also available in: PDF Atom