[SERVER-3612] Add a new_handler that aborts on bad_alloc Created: 16/Aug/11  Updated: 11/Jul/16  Resolved: 14/Sep/11

Status: Closed
Project: Core Server
Component/s: Stability
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-3583 create a new_handler to better handle... Closed
Related
Participants:
Linked BF Score: 0

 Description   

Currently we usually segfault on out of memory conditions and users tend to only post the segfault backtrace and don't notice the bad_alloc line.



 Comments   
Comment by Mathias Stearn [ 14/Sep/11 ]

to test, add this line somewhere:

new char[1LL<<40];

Comment by auto [ 14/Sep/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Add a new_handler to print stack and exit when new fails SERVER-3612
Branch: master
https://github.com/mongodb/mongo/commit/d280fd8c0b0884a3fd1194743d58b1ba828132fe

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