Ticket #99 (closed bug: fixed)

Opened 16 years ago

Last modified 16 years ago

Data structure not properly initialized in PosixMutex

Reported by: andysan Assigned to: ppalmers
Priority: major Milestone: FFADO 2.0
Component: Version: FFADO 2.0-beta2 (1.999.21)
Keywords: Cc:
The device the bug applies to:

Description

The pthread_mutexattr_t structure used in the constructor of PosixMutex? is not properly initialized/destroyed. This leads to undefined mutex behavior.

Attachments

mutex_fix.patch (0.6 kB) - added by andysan on 05/02/08 10:57:08.
Patch to do proper initialization and destruction of the data structure.

Change History

05/02/08 10:57:08 changed by andysan

  • attachment mutex_fix.patch added.

Patch to do proper initialization and destruction of the data structure.

05/02/08 11:35:53 changed by ppalmers

  • owner set to ppalmers.
  • status changed from new to assigned.

05/02/08 11:57:53 changed by ppalmers

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [1091]) fixes #99

05/02/08 12:02:19 changed by ppalmers

thanks

05/02/08 13:02:07 changed by andysan

  • status changed from closed to reopened.
  • resolution deleted.

[1091] does not fix the reported problem. The issue is that pthread_mutexattr_init and pthread_mutexattr_destroy aren't used on the pthread_mutexattr_t structure in PosixMutex::PosixMutex?() causing pthread_mutexattr_settype and pthread_mutex_init to have undefined behavior. See the attached patch for details.

05/02/08 14:32:10 changed by ppalmers

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [1095]) fixes #99. for real this time (committed wrong file)