[SERVER-4988] printStackTrace on Windows Created: 16/Feb/12  Updated: 11/Jul/16  Resolved: 04/Jun/12

Status: Closed
Project: Core Server
Component/s: Diagnostics, Internal Code, Logging, Stability, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.1.2

Type: Improvement Priority: Minor - P4
Reporter: Eric Milkie Assignee: Tad Marshall
Resolution: Done Votes: 1
Labels: Windows, crash
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
Depends
is depended on by SERVER-2942 MapViewOfFileEx failed during large i... Closed
Related
Backwards Compatibility: Fully Compatible
Participants:

 Description   

printStackTrace needs to work on Windows. I'm concerned we're going to get more users with crashes and we'll have too little information to diagnose



 Comments   
Comment by Tad Marshall [ 28/Jun/12 ]

Removing 2.0.7 backport version, but leaving Backport set to Yes for consideration in the future. The Windows version of stack trace isn't useful without including the PDB (symbol) files in the distribution, and we haven't done that on the master branch yet, so this feature isn't ready for backport yet.

Comment by auto [ 05/Jun/12 ]

Author:

{u'login': u'tadmarshall', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-4988 refactor printStackTrace for Windows

Break out helper routines from printStackTrace for Windows to reduce
the length of the function.
Branch: master
https://github.com/mongodb/mongo/commit/3aca308a1cf6e8f2e796354b6ce15611684357cb

Comment by auto [ 05/Jun/12 ]

Author:

{u'login': u'tadmarshall', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-4988 reset ostream to std::dec at end of line

The Windows stack trace was leaving its ostream set to std:hex on
return, causing the next user of that stream to display hexadecimal
without intending to do so. Reset it to std::dec after every line.
Branch: master
https://github.com/mongodb/mongo/commit/e0c7e39f0b78c0d5515336177287359f6d9faf6b

Comment by auto [ 04/Jun/12 ]

Author:

{u'login': u'tadmarshall', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-4988 Implement printStackTrace for Windows
Branch: master
https://github.com/mongodb/mongo/commit/f771b167bf6edc931a37436e7b3463759ed7e915

Comment by Eric Milkie [ 16/Feb/12 ]

can use CaptureStackBackTrace for this

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