[SERVER-674] Uncaught std::exception: St9bad_alloc, terminating Created: 24/Feb/10  Updated: 12/Jul/16  Resolved: 26/Feb/10

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

Type: Bug Priority: Critical - P2
Reporter: Bob T. Terminal Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

x86_64


Attachments: Text File mongo_st9bad_1.txt     Text File mongo_st9bad_2.txt    
Participants:

 Description   

Using mongodb in repl pair master randomly terminates due to St9bad_alloc, have seen 5 times now within 24hrs on multiple servers.

db version v1.3.3
git version: e74ce5f592a4f5cb899962f388d1d111f4c439e1

scons options used: --64 --prefix=$(PREFIX) --extrapath=$(PREFIX)
with spidermonkey js-1.7.0, boost-1.40

Server setup (repl pair)


db01 <----> db02

top at time of incident


top - 15:49:47 up 27 days, 3:32, 4 users, load average: 0.90, 0.83, 0.62
Tasks: 656 total, 1 running, 655 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.9%us, 0.3%sy, 0.0%ni, 84.7%id, 13.7%wa, 0.0%hi, 0.4%si, 0.0%st
Mem: 12302944k total, 10173664k used, 2129280k free, 71176k buffers

server options used


dbpath, logpath, nohttpinterface, noauth = true, pairwith = xxx



 Comments   
Comment by Eliot Horowitz (Inactive) [ 26/Feb/10 ]

uses a new ThreadSafeString

Comment by auto [ 26/Feb/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: make info thread safe SERVER-674
http://github.com/mongodb/mongo/commit/27e94db45caa61293da51898c3df72e538f18805

Comment by Aaron Staple [ 25/Feb/10 ]

Yeah, so I think the only problem is with the "info" string describing the context in which a master state changed. Probably we can ignore info if level == 0, otherwise we should get a lock and report info.

Comment by Eliot Horowitz (Inactive) [ 24/Feb/10 ]

aaron: seems that maybe appendReplicationInfo might not be thread safe.
can you take a look?

Generated at Thu Feb 08 02:54:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.