Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2495

Missing memory initialization leads to crash on Windows

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.8.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      I ran some basic tests on Windows, and am seeing mongod crash with the following call stack:

      [MongoDFixture:job0] Waiting to connect to mongod on port 20000.
      mongod.exe    ...\src\mongo\util\stacktrace_windows.cpp(174)                     mongo::printStackTrace+0x43
      mongod.exe    ...\src\mongo\util\signal_handlers_synchronous.cpp(182)            mongo::`anonymous namespace'::printSignalAndBacktrace+0x73
      mongod.exe    ...\src\mongo\util\signal_handlers_synchronous.cpp(238)            mongo::`anonymous namespace'::abruptQuit+0x74
      mongod.exe    f:\dd\vctools\crt\crtw32\misc\winsig.c(587)                        raise+0x1e9
      mongod.exe    f:\dd\vctools\crt\crtw32\misc\abort.c(82)                          abort+0x18
      mongod.exe    ...\src\third_party\gperftools-2.2\src\internal_logging.cc(120)    tcmalloc::Log+0x24a
      mongod.exe    ...\src\third_party\gperftools-2.2\src\tcmalloc.cc(279)            `anonymous namespace'::InvalidFree+0x96
      mongod.exe    ...\src\third_party\gperftools-2.2\src\tcmalloc.cc(1220)           `anonymous namespace'::do_free_helper+0x1ad
      mongod.exe    ...\src\third_party\wiredtiger\src\os_win\os_open.c(264)           __wt_close+0x18b
      mongod.exe    ...\src\third_party\wiredtiger\src\conn\conn_api.c(1613)           __conn_single+0x382
      mongod.exe    ...\src\third_party\wiredtiger\src\conn\conn_api.c(1977)           wiredtiger_open+0x2dd
      mongod.exe    ...\src\mongo\db\storage\wiredtiger\wiredtiger_kv_engine.cpp(251)  mongo::WiredTigerKVEngine::WiredTigerKVEngine+0x80f
      mongod.exe    ...\src\mongo\db\storage\wiredtiger\wiredtiger_init.cpp(86)        mongo::`anonymous namespace'::WiredTigerFactory::create+0x1b3
      mongod.exe    ...\src\mongo\db\service_context_d.cpp(187)                        mongo::ServiceContextMongoD::initializeGlobalStorageEngine+0x778
      mongod.exe    ...\src\mongo\db\db.cpp(484)                                       mongo::_initAndListen+0x5c2
      mongod.exe    ...\src\mongo\db\db.cpp(671)                                       mongo::initAndListen+0x27
      mongod.exe    ...\src\mongo\db\db.cpp(895)                                       mongoDbMain+0x216
      mongod.exe    ...\src\mongo\db\db.cpp(710)                                       wmain+0x35
      mongod.exe    f:\dd\vctools\crt\crtw32\startup\crt0.c(255)                       __tmainCRTStartup+0x144
      
      kernel32.dll                                                                     BaseThreadInitThunk+0xd
      
      Got signal: 22 (SIGABRT).
      

      That is, it is crashing when freeing the file handle pointer for the WiredTiger file.

            Assignee:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: