Ubuntu 10.04 fails to compile due to builtin__memcpy_chk bug

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In file included from /usr/include/string.h:640,
                       from /usr/include/c++/4.4/cstring:45,
                       from src/mongo/platform/basic.h:27,
                       from src/mongo/pch.h:28,
                       from src/mongo/client/dbclientcursor.h:20,
                       from src/mongo/db/repl/oplogreader.h:23,
                       from src/mongo/db/repl/master_slave.h:19,
                       from src/mongo/db/repl/master_slave.cpp:27:
      In function 'void* memcpy(void*, const void*, size_t)',
          inlined from 'void mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data-inl.h:59,
          inlined from 'void mongo::nsToDatabase(const mongo::StringData&, char*)' at src/mongo/db/namespace_string.h:137,
          inlined from 'void mongo::ReplSource::sync_pullOpLog_applyOperation(mongo::BSONObj&, bool)' at src/mongo/db/repl/master_slave.cpp:575:
      /usr/include/bits/string3.h:52: error: call to void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int) will always overflow destination buffer
      scons: *** [build/linux2/release/ssl/mongo/db/repl/master_slave.o] Error 1
      

            Assignee:
            Andy Schwerin
            Reporter:
            Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: