[SERVER-6915] Replica set connection string ("rsName/host1,host2,...") causes segfault in mongooplog Created: 01/Sep/12  Updated: 08/Jan/13  Resolved: 13/Sep/12

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

Type: Bug Priority: Major - P3
Reporter: aleksey Assignee: siddharth.singh@10gen.com
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 5.8 x64, Ubuntu 12.04 x64


Attachments: Text File crash.log    
Issue Links:
Duplicate
duplicates SERVER-7006 mongo tools seg fault in 2.2.0 with r... Closed
Operating System: ALL
Participants:

 Description   

Steps to reproduce:

1. Setup two independent replica sets.

2. Make few data changes (say, {{db.test.insert(

{foo: "bar"}

)}} in replica set #1. We need to have something in oplog.

3. Run mongooplog, pass full replica set connection string in --host:

silver@silver-laptop:~/bin/mongodb-2.2.0$ ./mongooplog --from localhost:30001 --host rs2/localhost:30001,localhost:30002,localhost:30003 
Sat Sep  1 16:51:34 starting new replica set monitor for replica set rs2 with seed of localhost:30001,localhost:30002,localhost:30003
Sat Sep  1 16:51:34 successfully connected to seed localhost:30001 for replica set rs2
Sat Sep  1 16:51:34 warning: node: localhost:30001 isn't a part of set: rs2 ismaster: { setName: "rs", ismaster: true, secondary: false, hosts: [ "silver-laptop:30001" ], primary: "silver-laptop:30001", me: "silver-laptop:30001", maxBsonObjectSize: 16777216, localTime: new Date(1346507494332), ok: 1.0 }
Sat Sep  1 16:51:34 successfully connected to seed localhost:30002 for replica set rs2
Sat Sep  1 16:51:34 changing hosts to { 0: "silver-laptop:30002", 1: "silver-laptop:30004", 2: "silver-laptop:30003" } from rs2/
Sat Sep  1 16:51:34 trying to add new host silver-laptop:30002 to replica set rs2
Sat Sep  1 16:51:34 successfully connected to new host silver-laptop:30002 in replica set rs2
Sat Sep  1 16:51:34 trying to add new host silver-laptop:30003 to replica set rs2
Sat Sep  1 16:51:34 successfully connected to new host silver-laptop:30003 in replica set rs2
Sat Sep  1 16:51:34 trying to add new host silver-laptop:30004 to replica set rs2
Sat Sep  1 16:51:34 successfully connected to new host silver-laptop:30004 in replica set rs2
Sat Sep  1 16:51:34 successfully connected to seed localhost:30003 for replica set rs2
Sat Sep  1 16:51:34 Primary for replica set rs2 changed to silver-laptop:30004
Sat Sep  1 16:51:34 replica set monitor for replica set rs2 started, address is rs2/silver-laptop:30002,silver-laptop:30003,silver-laptop:30004
Sat Sep  1 16:51:34 [ReplicaSetMonitorWatcher] starting
connected to: rs2/localhost:30001,localhost:30002,localhost:30003
Sat Sep  1 16:51:34 [oplogreplay] going to connect
Sat Sep  1 16:51:34 [oplogreplay] connected
Sat Sep  1 16:51:34 [oplogreplay] starting from Aug 31 16:51:34:0
Logstream::get called in uninitialized state
Sat Sep  1 16:51:34 deleting replica set monitor for: rs2/silver-laptop:30002,silver-laptop:30003,silver-laptop:30004
Segmentation fault (core dumped)
 

Verbose log (-vvvvv) is in attachment



 Comments   
Comment by auto [ 08/Jan/13 ]

Author:

{u'date': u'2012-09-12T16:27:20Z', u'name': u'Siddharth Singh', u'email': u'singhsiddharth@gmail.com'}

Message: SERVER-6915 use ::_exit() in tools

use ::_exit() to prevent static destructors from running in tools
to prevent static destructors.

Conflicts:

src/mongo/tools/tool.cpp
Branch: v2.2
https://github.com/mongodb/mongo/commit/0878621290380f7300222b90fc7dde03da1122cb

Comment by auto [ 19/Sep/12 ]

Author:

{u'date': u'2012-09-14T12:58:57-07:00', u'email': u'singhsiddharth@gmail.com', u'name': u'Siddharth Singh'}

Message: SERVER-6915 Test cleanup plus add print messages
Branch: master
https://github.com/mongodb/mongo/commit/2b48ac27f5feae6c2bdf0ec53912870a8e2ee3e9

Comment by auto [ 14/Sep/12 ]

Author:

{u'date': u'2012-09-12T09:27:20-07:00', u'email': u'singhsiddharth@gmail.com', u'name': u'Siddharth Singh'}

Message: SERVER-6915 use ::_exit() in tools

use ::_exit() to prevent static destructors from running in tools
to prevent static destructors.
Branch: master
https://github.com/mongodb/mongo/commit/ca91de625f1b565f38621635f595326b70d30f37

Comment by Ian Whalen (Inactive) [ 13/Sep/12 ]

closing as duplicate and tracking in SERVER-7006

Comment by aleksey [ 01/Sep/12 ]

Sorry, this affects version 2.2.0, not 2.0.0 as I wrote in ticket's header.

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