[SERVER-5594] missed check of node index when initializing replica set with host down Created: 13/Apr/12  Updated: 11/Jul/16  Resolved: 13/Apr/12

Status: Closed
Project: Core Server
Component/s: Replication, Sharding
Affects Version/s: None
Fix Version/s: 2.0.7, 2.1.1

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

V8


Issue Links:
Depends
Duplicate
duplicates SERVER-6654 Determine if a shard hitting its conn... Closed
Operating System: ALL
Participants:

 Description   

 m30999| *** glibc detected *** /data/slave/Linux_64bit_v8/mongo/mongos: corrupted double-linked list: 0x00007f3ab8007420 ***

This caused the test to hang in the V8 builder.
http://buildbot.mongodb.org/builders/Linux%2064-bit%20v8/builds/3316/steps/test_9/logs/stdio



 Comments   
Comment by auto [ 09/Jul/12 ]

Author:

{u'date': u'2012-04-13T11:18:27-07:00', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-5594 memory corruption in sharding/auth1.js V8 builder

Signed-off-by: Eric Milkie <milkie@10gen.com>
Branch: v2.0
https://github.com/mongodb/mongo/commit/97d9c1b81567b76b8a1b111a20024386d39343cd

Comment by auto [ 13/Apr/12 ]

Author:

{u'login': u'', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-5594 memory corruption in sharding/auth1.js V8 builder
Branch: master
https://github.com/mongodb/mongo/commit/cc1d653e00cad3f4ffab47af3f1b3489c6cdd55f

Comment by Eric Milkie [ 13/Apr/12 ]

Might be due to ec1dfbd4d7baa79d1f74d6325383461d371142fe from SERVER-5110

Comment by Eric Milkie [ 13/Apr/12 ]

When I run the test under Valgrind, I get this memory error:

 m30999| ==18076== Thread 7:
 m30999| ==18076== Invalid write of size 1
 m30999| ==18076==    at 0x620861: mongo::ReplicaSetMonitor::_checkConnection(mongo::DBClientConnection*, std::string&, bool, int) (dbclient_rs.cpp:562)
 m30999| ==18076==    by 0x623E48: mongo::ReplicaSetMonitor::ReplicaSetMonitor(std::string const&, std::vector<mongo::HostAndPort, std::allocator<mongo::HostAndPort> > const&) (dbclient_rs.cpp:121)
 m30999| ==18076==    by 0x6246E2: mongo::ReplicaSetMonitor::get(std::string const&, std::vector<mongo::HostAndPort, std::allocator<mongo::HostAndPort> > const&) (dbclient_rs.cpp:140)
 m30999| ==18076==    by 0x6247BA: mongo::DBClientReplicaSet::DBClientReplicaSet(std::string const&, std::vector<mongo::HostAndPort, std::allocator<mongo::HostAndPort> > const&, double) (dbclient_rs.cpp:744)
 m30999| ==18076==    by 0x62F0EA: mongo::ConnectionString::connect(std::string&, double) const (dbclient.cpp:88)
 m30999| ==18076==    by 0x58278A: mongo::DBConnectionPool::get(mongo::ConnectionString const&, double) (connpool.cpp:174)
 m30999| ==18076==    by 0x72DBB5: mongo::Grid::addShard(std::string*, mongo::ConnectionString const&, long long, std::string&) (connpool.h:217)
 m30999| ==18076==    by 0x50DC99: mongo::dbgrid_cmds::AddShard::run(std::string const&, mongo::BSONObj&, int, std::string&, mongo::BSONObjBuilder&, bool) (commands_admin.cpp:872)
 m30999| ==18076==    by 0x518E06: mongo::Command::runAgainstRegistered(char const*, mongo::BSONObj&, mongo::BSONObjBuilder&, int) (commands_public.cpp:1575)
 m30999| ==18076==    by 0x505B61: mongo::SingleStrategy::queryOp(mongo::Request&) (strategy_single.cpp:58)
 m30999| ==18076==    by 0x4FE63A: mongo::ShardStrategy::queryOp(mongo::Request&) (strategy_shard.cpp:42)
 m30999| ==18076==    by 0x52DD1B: mongo::Request::process(int) (request.cpp:129)
 m30999| ==18076==  Address 0x4daad20 is not stack'd, malloc'd or (recently) free'd
 m30999| ==18076== 
 m30999| ==18076== 

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