Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13177

mongooplog crashes on assertion when it cannot connect to "from" host

    • ALL
    • Hide

      With nothing running on "localhost:27017" and a mongod on "localhost:30001":

      $ ./mongooplog --verbose --from localhost:27017 --host localhost:30001
      2014-03-12T17:36:54.783-0400 creating new connection to:localhost:30001
      2014-03-12T17:36:54.784-0400 [ConnectBG] BackgroundJob starting: ConnectBG
      2014-03-12T17:36:54.785-0400 connected to server localhost:30001 (127.0.0.1)
      2014-03-12T17:36:54.785-0400 connected connection!
      connected to: localhost:30001
      2014-03-12T17:36:54.785-0400 going to connect
      2014-03-12T17:36:54.785-0400 [ConnectBG] BackgroundJob starting: ConnectBG
      2014-03-12T17:36:54.785-0400 [oplogreplay] warning: Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
      2014-03-12T17:36:54.785-0400 [oplogreplay] repl: couldn't connect to server localhost:27017 (127.0.0.1), connection attempt failed
      2014-03-12T17:36:54.785-0400 connected
      2014-03-12T17:36:54.785-0400 starting from Mar 11 17:36:54:0
      Assertion failed: (px != 0), function operator->, file src/third_party/boost/boost/smart_ptr/shared_ptr.hpp, line 424.
      Abort trap: 6
      
      Show
      With nothing running on "localhost:27017" and a mongod on "localhost:30001": $ ./mongooplog --verbose --from localhost:27017 --host localhost:30001 2014-03-12T17:36:54.783-0400 creating new connection to:localhost:30001 2014-03-12T17:36:54.784-0400 [ConnectBG] BackgroundJob starting: ConnectBG 2014-03-12T17:36:54.785-0400 connected to server localhost:30001 (127.0.0.1) 2014-03-12T17:36:54.785-0400 connected connection! connected to: localhost:30001 2014-03-12T17:36:54.785-0400 going to connect 2014-03-12T17:36:54.785-0400 [ConnectBG] BackgroundJob starting: ConnectBG 2014-03-12T17:36:54.785-0400 [oplogreplay] warning: Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused 2014-03-12T17:36:54.785-0400 [oplogreplay] repl: couldn't connect to server localhost:27017 (127.0.0.1), connection attempt failed 2014-03-12T17:36:54.785-0400 connected 2014-03-12T17:36:54.785-0400 starting from Mar 11 17:36:54:0 Assertion failed: (px != 0), function operator ->, file src/third_party/boost/boost/smart_ptr/shared_ptr.hpp, line 424. Abort trap: 6

      When mongooplog tries to connect to the from host, it assumes it has connected successfully and tries to access the connection object.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            sverch Shaun Verch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: