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

memory error in smoke test

    XMLWordPrintable

    Details

    • Operating System:
      ALL

      Description

      If you run 'test' under Valgrind Memcheck, you get this:

      Fri Jul 13 13:02:50 [testsuite] { $err: "can't have an empty ns", code: 16332 }
      ==31788== Invalid read of size 4
      ==31788==    at 0x776194: _ZNK5mongo7BSONObj8getFieldERKNS_10StringDataE.constprop.251 (bsonobj.h:280)
      ==31788==    by 0x77716C: DirectClientTests::BadNSQuery::run() (bsonobj.h:227)
      ==31788==    by 0x7772E2: void mongo::unittest::Suite::runTestObject<DirectClientTests::BadNSQuery>() (unittest.h:269)
      ==31788==    by 0xC67D36: mongo::unittest::Suite::run(std::string const&, int) (function_template.hpp:760)
      ==31788==    by 0xC68B74: mongo::unittest::Suite::run(std::vector<std::string, std::allocator<std::string> > const&, std::string const&, int) (unittest.cpp:207)
      ==31788==    by 0xBBA677: mongo::dbtests::runDbTests(int, char**, std::string) (framework.cpp:271)
      ==31788==    by 0x685A49: main (dbtests.cpp:29)
      ==31788==  Address 0x4f68854 is 36 bytes inside a block of size 512 free'd
      ==31788==    at 0x4A06624: free (vg_replace_malloc.c:427)
      ==31788==    by 0xB33242: mongo::Message::~Message() (message.h:229)
      ==31788==    by 0xDAC774: mongo::DBClientCursor::~DBClientCursor() (auto_ptr.h:170)
      ==31788==    by 0xDACC78: mongo::DBClientCursor::~DBClientCursor() (dbclientcursor.cpp:350)
      ==31788==    by 0x77710D: DirectClientTests::BadNSQuery::run() (auto_ptr.h:170)
      ==31788==    by 0x7772E2: void mongo::unittest::Suite::runTestObject<DirectClientTests::BadNSQuery>() (unittest.h:269)
      ==31788==    by 0xC67D36: mongo::unittest::Suite::run(std::string const&, int) (function_template.hpp:760)
      ==31788==    by 0xC68B74: mongo::unittest::Suite::run(std::vector<std::string, std::allocator<std::string> > const&, std::string const&, int) (unittest.cpp:207)
      ==31788==    by 0xBBA677: mongo::dbtests::runDbTests(int, char**, std::string) (framework.cpp:271)
      ==31788==    by 0x685A49: main (dbtests.cpp:29)
      ==31788== 
      ==31788== 
      ==31788== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ----

      This is probably the same reason why the Solaris and Windows debug builds are failing in the DirectClientTests suite.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                milkie Eric Milkie
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: