C:\mongo\mongodb-win32-x86_64-2011-03-25\bin>mongo.exe -verbose
MongoDB shell version: 1.9.0-pre-
Fri Mar 25 12:20:46 versionCmpTest passed
Fri Mar 25 12:20:46 versionArrayTest passed
connecting to: test
Fri Mar 25 12:20:46 creating new connection to:127.0.0.1
Fri Mar 25 12:20:46 BackgroundJob starting:
and crashes.
From the eventviewer
Faulting application name: mongo.exe, version: 0.0.0.0, time stamp: 0x4d8c3fd2
Faulting module name: kernel32.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdfdf
Exception code: 0xc0000005
Fault offset: 0x0000000000041bea
Faulting process id: 0x6c
Faulting application start time: 0x01cbeb21db1b7910
Faulting application path: C:\mongo\mongodb-win32-x86_64-2011-03-25\bin\mongo.exe
Faulting module path: C:\Windows\system32\kernel32.dll
Report Id: 18d4e4d0-5715-11e0-a505-f36a4ca9bbd5
BTW starting the shell with --eval works
C:\mongo\mongodb-win32-x86_64-2011-03-25\bin>mongo.exe --eval "printjson(db.stats())"
MongoDB shell version: 1.9.0-pre-
connecting to: test
{
"db" : "test",
"collections" : 7,
"objects" : 27,
"avgObjSize" : 52.592592592592595,
"dataSize" : 1420,
"storageSize" : 28928,
"numExtents" : 7,
"indexes" : 5,
"indexSize" : 40960,
"fileSize" : 67108864,
"ok" : 1
}