pthread_mutex calls do not always check return code

Bug #1419906 reported by Dave George
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
New
Medium
Unassigned

Bug Description

In quite a few places, the code shows:
  pthread_mutex_lock(<mutex>) or pthread_mutex_unlock(<mutex>)
The return code from these calls should be checked.

A more generic summary would be something like:
return codes from functions that return error codes should be checked.

It may be possible to use coverity or other such tool in trying to automate the more general issue.

Tags: foundation
Revision history for this message
Dave George (d-george-b) wrote :

I will add more notes later - but there is a checker:
coverity/6.0.2/cov-analysis/sdk/sq/return-check

Changed in trafodion:
importance: Undecided → Medium
milestone: none → r2.0
tags: added: foundation
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.