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

mongodump crashs on empty database

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.2
    • Component/s: None
    • None
    • Linux

      mongodump crashs on empty database admin:

      Tue Dec 25 17:15:56 DATABASE: admin to dump/admin
      Logstream::get called in uninitialized state
      Tue Dec 25 17:15:56 deleting replica set monitor for: akashi/mongo1.rt.bradburylab.tv:27018,mongo2.rt.bradburylab.tv:27018,mongo4.rt.bradburylab.tv:27018

      Program received signal SIGSEGV, Segmentation fault.
      std::local_Rb_tree_rotate_left (__x=0x7ffff8692100, __root=@0x7ffff8225890)
      at /var/tmp/portage/sys-devel/gcc-4.5.4/work/gcc-4.5.4/libstdc++-v3/src/tree.cc:124
      124 /var/tmp/portage/sys-devel/gcc-4.5.4/work/gcc-4.5.4/libstdc++-v3/src/tree.cc: No such file or directory.
      in /var/tmp/portage/sys-devel/gcc-4.5.4/work/gcc-4.5.4/libstdc++-v3/src/tree.cc

      Note admin is really empty database:

      mongo2 ~ # mongo mongo1.rt.bradburylab.tv:27018
      MongoDB shell version: 2.2.2
      connecting to: mongo1.rt.bradburylab.tv:27018/test
      akashi:PRIMARY> use admin
      switched to db admin
      akashi:PRIMARY> show collections
      akashi:PRIMARY> db.stats()
      {
      "db" : "admin",
      "collections" : 0,
      "objects" : 0,
      "avgObjSize" : 0,
      "dataSize" : 0,
      "storageSize" : 0,
      "numExtents" : 0,
      "indexes" : 0,
      "indexSize" : 0,
      "fileSize" : 0,
      "nsSizeMB" : 0,
      "ok" : 1
      }

      Full backtrace is in attachment.

      mongodump versions 2.0.7 and 2.3.1 work as expected.

            Assignee:
            Unassigned Unassigned
            Reporter:
            pva Peter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: