[SERVER-7352] Do not try to exit cleanly after unhandled exception in Windows Created: 14/Oct/12  Updated: 11/Jul/16  Resolved: 15/Oct/12

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 2.2.0
Fix Version/s: 2.2.2, 2.3.0

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

Windows


Backwards Compatibility: Fully Compatible
Operating System: Windows
Participants:

 Description   

The current code for unhandled exceptions in Windows calls dbexit(EXIT_UNCAUGHT, "unhandled exception") in release builds. It passes the exception on to the default handler in debug builds.

It should do what we do on other platforms and call ::_exit(EXIT_ABRUPT) in both release and debug builds.



 Comments   
Comment by auto [ 06/Nov/12 ]

Author:

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

Message: SERVER-7352 do not try to exit cleanly in Windows exception handler

In Windows, exit after an access violation the same way we exit on other
platforms after a segfault; with ::_exit(EXIT_ABRUPT).
Branch: v2.2
https://github.com/mongodb/mongo/commit/7a5f506e0bef86cc0c68e982904fed4f536e1a57

Comment by auto [ 01/Nov/12 ]

Author:

{u'date': u'2012-11-01T14:55:26Z', u'email': u'randolph@10gen.com', u'name': u'Randolph Tan'}

Message: SERVER-7352 read_pref_cmd.js test fails if shell's ReplicaSetMonitor is not in sync
Branch: master
https://github.com/mongodb/mongo/commit/cd2ab499b795a08017b5d4de8ba03c0e3d4b60de

Comment by auto [ 15/Oct/12 ]

Author:

{u'date': u'2012-10-14T14:25:02-07:00', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-7352 do not try to exit cleanly in Windows exception handler

In Windows, exit after an access violation the same way we exit on other
platforms after a segfault; with ::_exit(EXIT_ABRUPT).
Branch: master
https://github.com/mongodb/mongo/commit/0e423542312e58347990e3842badcbde3896900b

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