-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.6.3
-
Component/s: None
-
None
-
Environment:10gen official on 64 bit Ubuntu 10.10
-
ALL
> db.aviga.find({}).sort("_id").explain()
Wed Oct 20 19:33:35 uncaught exception: error:
> db.aviga.find({}).sort("_id")
error:
If I use sort(
{"_id": 1}) then it works fine.
Wed Oct 20 19:33:35 [conn11] Assertion failure 0 db/query.h 262
0x534771 0x54134f 0x610ae3 0x5ffce0 0x70547a 0x708ab6 0x8235ef 0x837460 0x7eff5d617971 0x7eff5cbd491d
/usr/bin/mongod(_ZN5mongo12sayDbContextEPKc+0xb1) [0x534771]
/usr/bin/mongod(_ZN5mongo8assertedEPKcS1_j+0x10f) [0x54134f]
/usr/bin/mongod(_ZN5mongo11ParsedQuery8_initTopERKNS_7BSONObjE+0x573) [0x610ae3]
/usr/bin/mongod(ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1+0x1670) [0x5ffce0]
/usr/bin/mongod() [0x70547a]
/usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x14d6) [0x708ab6]
/usr/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x30f) [0x8235ef]
/usr/bin/mongod(thread_proxy+0x80) [0x837460]
/lib/libpthread.so.0(+0x7971) [0x7eff5d617971]
/lib/libc.so.6(clone+0x6d) [0x7eff5cbd491d]
Wed Oct 20 19:33:35 [conn11] assertion 0 assertion db/query.h:262 ns:thumbplay.aviga query:{ query: {}, orderby: "_id", $explain: true }
Wed Oct 20 19:34:07 [conn11] Assertion failure 0 db/query.h 262
0x534771 0x54134f 0x610ae3 0x5ffce0 0x70547a 0x708ab6 0x8235ef 0x837460 0x7eff5d617971 0x7eff5cbd491d
/usr/bin/mongod(_ZN5mongo12sayDbContextEPKc+0xb1) [0x534771]
/usr/bin/mongod(_ZN5mongo8assertedEPKcS1_j+0x10f) [0x54134f]
/usr/bin/mongod(_ZN5mongo11ParsedQuery8_initTopERKNS_7BSONObjE+0x573) [0x610ae3]
/usr/bin/mongod(ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1+0x1670) [0x5ffce0]
/usr/bin/mongod() [0x70547a]
/usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x14d6) [0x708ab6]
/usr/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x30f) [0x8235ef]
/usr/bin/mongod(thread_proxy+0x80) [0x837460]
/lib/libpthread.so.0(+0x7971) [0x7eff5d617971]
/lib/libc.so.6(clone+0x6d) [0x7eff5cbd491d]
Wed Oct 20 19:34:07 [conn11] assertion 0 assertion db/query.h:262 ns:thumbplay.aviga query:{ query: {}, orderby: "_id" }