[SERVER-18919] TCMalloc failures should redirected to MongoDB log file Created: 11/Jun/15  Updated: 06/Dec/22  Resolved: 20/Apr/20

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

Type: Bug Priority: Minor - P4
Reporter: Eitan Klein Assignee: Backlog - Security Team
Resolution: Done Votes: 0
Labels: 32qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Security
Operating System: ALL
Participants:

 Description   

Enviroment :
MongoDb 3.1.4, Windows
Stand alone , hammer.mongo insert only workload

During stress test the machine reached to out of memory state and produce allocation errors to the console windows instead to the log file.

 
src\third_party\gperftools-2.2\src\central_freelist.cc:333] tcmalloc: allocation
 failed 32768
src\third_party\gperftools-2.2\src\central_freelist.cc:333] tcmalloc: allocation
 failed 32768
src\third_party\gperftools-2.2\src\central_freelist.cc:333] tcmalloc: allocation
 failed 32768
src\third_party\gperftools-2.2\src\central_freelist.cc:333] tcmalloc: allocation
 failed 32768
src\third_party\gperftools-2.2\src\central_freelist.cc:333] tcmalloc: allocation
 failed 32768
src\third_party\gperftools-2.2\src\central_freelist.cc:333] tcmalloc: allocation
 failed 32768
src\third_party\gperftools-2.2\src\central_freelist.cc:333] tcmalloc: allocation
 failed 32768
src\third_party\gperftools-2.2\src\central_freelist.cc:333] tcmalloc: allocation
 failed 32768

Per discussion w/ Mark we should call to
log_message_writer in internal_loggging.h and set our own custom logging function.



 Comments   
Comment by Sara Williamson [ 20/Apr/20 ]

We are closing this ticket as Works as Designed. Our reason for not pursuing this change is that logging can allocate memory. This can result in recursion if allocation failures result in log messages which result in allocation failures.

CC spencer.jackson

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