[SERVER-6716] The Windows version of mongos needs an unhandled exception filter Created: 05/Aug/12  Updated: 11/Jul/16  Resolved: 07/Dec/12

Status: Closed
Project: Core Server
Component/s: Sharding
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: Windows
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
Depends
Operating System: Windows
Participants:

 Description   

Access violations in mongos.exe are not logged the way they are in mongod.exe. We should port the code from db/db.cpp to s/server.cpp, or break it out into a shared source file, so that crashes in mongos.exe give us information we can use to debug the crash.



 Comments   
Comment by Tad Marshall [ 08/Dec/12 ]

If this is backported, you also need commit 0ae3d6e06642f3ec741837b0f1b749ad605f5fb3 in which I fixed a 32-bit Windows compile issue I introduced in the above commit. I should have labeled the commit with this ticket number but didn't.

https://github.com/mongodb/mongo/commit/0ae3d6e06642f3ec741837b0f1b749ad605f5fb3

Comment by auto [ 07/Dec/12 ]

Author:

{u'date': u'2012-12-07T13:03:45Z', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-6716 Add Windows unhandled exception filter to mongos

Move code for displaying access violations and other unhandled exceptions
from mongo/db/db.cpp to a new mongo/util/exception_filter_win32.cpp file,
invoke it from mongod.exe and mongos.exe.
Branch: master
https://github.com/mongodb/mongo/commit/90440532fca3ce59383ad7e36437191f4819b3fc

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