[SERVER-20115] Coverity analysis defect 72817: Unchecked return value Created: 25/Aug/15  Updated: 19/Sep/15  Resolved: 03/Sep/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.1.8

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platform 9 (09/18/15)
Participants:

 Description   

Value returned from a function is not checked for errors before being used

Defect 72817 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/util/debugger.cpp
Function mongo::breakpoint()
/src/mongo/util/debugger.cpp, line: 52
Calling "sigaction" without checking return value (as is done elsewhere 15 out of 17 times).

            sigaction(SIGTRAP, NULL, &current);



 Comments   
Comment by Githook User [ 03/Sep/15 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-20115 Abort if unable to ensure that breakpoint() is established correctly
Branch: master
https://github.com/mongodb/mongo/commit/d40ef79d2b62860720031e54505b4eb73575df81

Generated at Thu Feb 08 03:53:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.