[SERVER-7924] Windows debug builds display dialog on abort() -- they should just abort Created: 13/Dec/12  Updated: 11/Jul/16  Resolved: 15/Dec/12

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

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows debug builds


Attachments: PNG File AbortDialog.png    
Operating System: Windows
Participants:

 Description   

If a Windows debug build executable tries to abort by calling the C runtime function "abort()", the C runtime displays a dialog saying "Debug Error!" and "R6010 - abort() has been called". This screws up our tests, which are expecting abort() to exit the program, and causes the build slave to hang until the buildbot master kills it after 3 hours of no output.

We should tell the C runtime to just exit on abort and not display a dialog.



 Comments   
Comment by auto [ 15/Dec/12 ]

Author:

{u'date': u'2012-12-14T21:32:24Z', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}

Message: SERVER-7924 Disable Windows CRT dialog on abort()

Use _set_abort_behavior() to prevent the C runtime from displaying
a dialog box in Windows debug builds when abort() is called.
Branch: master
https://github.com/mongodb/mongo/commit/d80594835a3e447951f147c0be7ffa0c19ae8d41

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