[SERVER-1409] Error in db/update.h:243 after using update and upsert Created: 13/Jul/10  Updated: 29/Feb/12  Resolved: 02/Sep/11

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.5.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Michel Pereira Assignee: Eliot Horowitz (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Darwin KIDMumU.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:27:12 PDT 2010; root:xnu-1504.7.4~1/RELEASE_X86_64 x86_64


Operating System: OS X
Participants:

 Description   

I'm using a script in PHP that does an update incrementing a counter on the mongodb document, but I'm using upsert to insert if there isn't a document.
And I'm getting this error on mongod:

Tue Jul 13 17:48:46 update Twitter.Analyzed query:

{ url: "http://bit.ly/a2BKwO" }

exception assertion db/update.h:243 0ms
Tue Jul 13 17:48:46 Twitter.Analyzed Assertion failure fn[0] == '$' db/update.h 243
0x10005cd5e 0x100069fac 0x10010dca1 0x10010fa7d 0x100110fad 0x1001bc923 0x1001c2cf7 0x10027123f 0x1002834a4 0x7fff84ab6456 0x7fff84ab6309
0 mongod 0x000000010005cd5e _ZN5mongo12sayDbContextEPKc + 174
1 mongod 0x0000000100069fac _ZN5mongo8assertedEPKcS1_j + 284
2 mongod 0x000000010010dca1 ZN5mongo6ModSetC2ERKNS_7BSONObjERKSt3setISsSt4lessISsESaISsEEPS9 + 417
3 mongod 0x000000010010fa7d _ZN5mongo14_updateObjectsEbPKcRKNS_7BSONObjES2_bbbRNS_7OpDebugE + 4061
4 mongod 0x0000000100110fad _ZN5mongo13updateObjectsEPKcRKNS_7BSONObjES2_bbbRNS_7OpDebugE + 253
5 mongod 0x00000001001bc923 _ZN5mongo14receivedUpdateERNS_7MessageERNS_5CurOpE + 1187
6 mongod 0x00000001001c2cf7 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 4279
7 mongod 0x000000010027123f _ZN5mongo10connThreadEv + 495
8 mongod 0x00000001002834a4 thread_proxy + 132
9 libSystem.B.dylib 0x00007fff84ab6456 _pthread_start + 331
10 libSystem.B.dylib 0x00007fff84ab6309 thread_start + 13



 Comments   
Comment by Eliot Horowitz (Inactive) [ 13/Jul/10 ]

can't reproduce this myself.

can you send the exact update and a sample object?

Generated at Thu Feb 08 02:56:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.