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

Clean command crashes mongod on windows - unhandled exception

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.2.4, 2.4.4
    • Component/s: None
    • None
    • Environment:
      Windows 2008 R2 SP1
    • ALL
    • Hide
      > db.test.clean()
      Wed May 15 09:07:57.715 trying reconnect to 127.0.0.1:27017
      Wed May 15 09:07:57.730 reconnect 127.0.0.1:27017 ok
      Wed May 15 09:07:58.574 Socket recv() errno:10054 An existing connection was for
      cibly closed by the remote host. 127.0.0.1:27017
      Wed May 15 09:07:58.574 SocketException: remote: 127.0.0.1:27017 error: 9001 soc
      ket exception [1] server [127.0.0.1:27017]
      Wed May 15 09:07:58.574 DBClientCursor::init call() failed
      Wed May 15 09:07:58.574 JavaScript execution failed: Error: error doing query: f
      ailed at src/mongo/shell/query.js:L78
      >
      
      Show
      > db.test.clean() Wed May 15 09:07:57.715 trying reconnect to 127.0.0.1:27017 Wed May 15 09:07:57.730 reconnect 127.0.0.1:27017 ok Wed May 15 09:07:58.574 Socket recv() errno:10054 An existing connection was for cibly closed by the remote host. 127.0.0.1:27017 Wed May 15 09:07:58.574 SocketException: remote: 127.0.0.1:27017 error: 9001 soc ket exception [1] server [127.0.0.1:27017] Wed May 15 09:07:58.574 DBClientCursor::init call() failed Wed May 15 09:07:58.574 JavaScript execution failed: Error: error doing query: f ailed at src/mongo/shell/query.js:L78 >

      Wed May 15 09:07:01.497 [initandlisten] MongoDB starting : pid=2872 port=27017 dbpath=.\data 64-bit host=gregortest
      Wed May 15 09:07:01.497 [initandlisten] db version v2.4.4-pre-
      Wed May 15 09:07:01.497 [initandlisten] git version: f4ddf51ef4c4712cb3d4e6b5b0a70dc1a12d7ae9
      Wed May 15 09:07:01.497 [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_49
      Wed May 15 09:07:01.497 [initandlisten] allocator: system
      Wed May 15 09:07:01.497 [initandlisten] options: { dbpath: ".\data" }
      Wed May 15 09:07:01.528 [initandlisten] journal dir=.\data\journal
      Wed May 15 09:07:01.528 [initandlisten] recover begin
      Wed May 15 09:07:01.528 [initandlisten] recover lsn: 0
      Wed May 15 09:07:01.528 [initandlisten] recover .\data\journal\j._0
      Wed May 15 09:07:01.606 [initandlisten] recover cleaning up
      Wed May 15 09:07:01.606 [initandlisten] removeJournalFiles
      Wed May 15 09:07:01.606 [initandlisten] recover done
      Wed May 15 09:07:01.606 [initandlisten] preallocating a journal file .\data\journal\prealloc.0
      Wed May 15 09:07:30.746 [websvr] admin web console waiting for connections on port 28017
      Wed May 15 09:07:30.746 [initandlisten] waiting for connections on port 27017
      Wed May 15 09:07:57.715 [initandlisten] connection accepted from 127.0.0.1:49171 #1 (1 connection now open)
      Wed May 15 09:07:57.730 [conn1] CMD: clean test.test
      Wed May 15 09:07:57.730 [conn1] *** unhandled exception (access violation) at 0x00000001401289A0, terminating
      Wed May 15 09:07:57.730 [conn1] *** access violation was a write to 0x00000040795068C0
      Wed May 15 09:07:57.730 [conn1] *** stack trace for unhandled exception:
      Wed May 15 09:07:58.511 [conn1] mongod.exe    ...\src\mongo\db\dbcommands_admin.cpp(84)                        mongo::CleanCmd::run+0x250
      Wed May 15 09:07:58.511 [conn1] mongod.exe    ...\src\mongo\db\dbcommands.cpp(1908)                            mongo::_execCommand+0x5e
      Wed May 15 09:07:58.511 [conn1] mongod.exe    ...\src\mongo\db\dbcommands.cpp(2048)                            mongo::Command::execCommand+0xb84
      Wed May 15 09:07:58.511 [conn1] mongod.exe    ...\src\mongo\db\dbcommands.cpp(2109)                            mongo::_runCommands+0x3fd
      Wed May 15 09:07:58.511 [conn1] mongod.exe    ...\src\mongo\db\ops\query.cpp(46)                               mongo::runCommands+0x46
      Wed May 15 09:07:58.511 [conn1] mongod.exe    ...\src\mongo\db\ops\query.cpp(952)                              mongo::runQuery+0x43f
      Wed May 15 09:07:58.511 [conn1] mongod.exe    ...\src\mongo\db\instance.cpp(262)                               mongo::receivedQuery+0x35d
      Wed May 15 09:07:58.511 [conn1] mongod.exe    ...\src\mongo\db\instance.cpp(401)                               mongo::assembleResponse+0x2f0
      Wed May 15 09:07:58.511 [conn1] mongod.exe    ...\src\mongo\db\db.cpp(194)                                     mongo::MyMessageHandler::process+0xfa
      Wed May 15 09:07:58.511 [conn1] mongod.exe    ...\src\mongo\util\net\message_server_port.cpp(207)              mongo::PortMessageServer::handleIncomingMsg+0x56a
      Wed May 15 09:07:58.511 [conn1] mongod.exe    ...\src\third_party\boost\libs\thread\src\win32\thread.cpp(180)  boost::`anonymous namespace'::thread_start_function+0x21
      Wed May 15 09:07:58.511 [conn1] mongod.exe    f:\dd\vctools\crt_bld\self_64_amd64\crt\src\threadex.c(314)      _callthreadstartex+0x17
      Wed May 15 09:07:58.511 [conn1] mongod.exe    f:\dd\vctools\crt_bld\self_64_amd64\crt\src\threadex.c(292)      _threadstartex+0x7f
      Wed May 15 09:07:58.511 [conn1] kernel32.dll                                                                   BaseThreadInitThunk+0xd
      Wed May 15 09:07:58.511 [conn1] writing minidump diagnostic file mongo.dmp
      Wed May 15 09:07:58.558 [conn1] *** immediate exit due to unhandled exception
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            gregor Gregor Macadam
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: