RPM

RPM expects PTHREAD_MUTEX_DEFAULT == PTHREAD_MUTEX_NORMAL

Bug #638587 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
Fedora
Won't Fix
Medium

Bug Description

tracker

Revision history for this message
In , Mark (mark-redhat-bugs) wrote :

Description of problem:
rpmsq.c uses mutexs to manage the child processes. These mutexes are defined
using default parameters. RPM expects that PTHREAD_MUTEX_DEFAULT will have the
effects of PTHREAD_MUTEX_NORMAL. POSIX 1003.1-2004 states that
PTHREAD_MUTEX_DEFAULT may be set to any standard POSIX mutex type, not
necessarily NORMAL. This can lead to many unexpected problems, especially when
porting RPM to new OSes.

Version-Release number of selected component (if applicable):
4.3+

Additional info:

My suggestion is to add a simple:

#if PTHREAD_MUTEX_DEFAULT != PTHREAD_MUTEX_NORMAL
  #error RPM Expected PTHREAD_MUTEX_DEFAULT == PTHREAD_MUTEX_NORMAL
#endif

to the rpmio/rpmsq.c to help prevent future porting issues.. or if the defaults
ever change in an existing port.

Revision history for this message
In , Jeff (jeff-redhat-bugs) wrote :

Added to rpm-4_4 cvs, should be in rpm-4.4.2-0.8 when built. Thanks for the suggestion.

Jeff Johnson (n3npq)
tags: added: fedora hpux portability
Changed in fedora:
importance: Unknown → Medium
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.