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

Avoid a stack trace in Benchrun if the server stops/killed

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 2.8.0-rc5
    • Component/s: Shell
    • Product Performance

      Problem

      Running a benchRun task and shutting down / killing the mongod it is connected to causes the shell to stack trace.

      Dumps/Logs

      > runTests([1,2,4,8,12,16,20], 1, 8, 5, 7, "test")
      @@@START@@@
      Queries.v1.NoMatch
      2015-01-15T09:57:40.956-0800 I NETWORK  DBClientCursor::init call() failed
      2015-01-15T09:57:40.956-0800 F -        Invalid access at address: 0
      2015-01-15T09:57:41.068-0800 F -        Got signal: 11 (Segmentation fault).
      
       0x819109 0x8187b2 0x818ade 0x7ffff7bce8d0 0x784f47 0x789a9d 0x864484 0x7ffff7bc70a4 0x7ffff6ccec2d
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"400000","o":"419109"},{"b":"400000","o":"4187B2"},{"b":"400000","o":"418ADE"},{"b":"7FFFF7BBF000","o":"F8D0"},{"b":"400000","o":"384F47"},{"b":"400000","o":"389A9D"},{"b":"400000","o":"464484"},{"b":"7FFFF7BBF000","o":"80A4"},{"b":"7FFFF6BE9000","o":"E5C2D"}],"processInfo":{ "mongodbVersion" : "2.8.0-rc5", "gitVersion" : "b9a65ff0c5cef00d73dfc36956a2a86aceaf969c", "uname" : { "sysname" : "Linux", "release" : "3.14-1-amd64", "version" : "#1 SMP Debian 3.14.7-1 (2014-06-16)", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000" }, { "b" : "7FFFF88FA000", "path" : "linux-vdso.so.1", "elfType" : 3 }, { "b" : "7FFFF7BBF000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3 }, { "b" : "7FFFF79B7000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3 }, { "b" : "7FFFF77B3000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3 }, { "b" : "7FFFF74A8000", "path" : "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3 }, { "b" : "7FFFF71A7000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3 }, { "b" : "7FFFF6F91000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3 }, { "b" : "7FFFF6BE9000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3 }, { "b" : "7FFFF7DDC000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3 } ] }}
       mongo(_ZN5mongo15printStackTraceERSo+0x29) [0x819109]
       mongo(+0x4187B2) [0x8187b2]
       mongo(+0x418ADE) [0x818ade]
       libpthread.so.0(+0xF8D0) [0x7ffff7bce8d0]
       mongo(_ZN5mongo14BenchRunWorker24generateLoadOnConnectionEPNS_12DBClientBaseE+0x1F27) [0x784f47]
       mongo(_ZN5mongo14BenchRunWorker3runEv+0xED) [0x789a9d]
       mongo(+0x464484) [0x864484]
       libpthread.so.0(+0x80A4) [0x7ffff7bc70a4]
       libc.so.6(clone+0x6D) [0x7ffff6ccec2d]
      -----  END BACKTRACE  -----
      

            Assignee:
            backlog-server-perf [DO NOT USE] Backlog - Performance Team
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: