[SERVER-1450] Assertion failure false db/btree.cpp 672 Created: 19/Jul/10  Updated: 12/Jul/16  Resolved: 19/Jul/10

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

Type: Bug Priority: Major - P3
Reporter: bret barker Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS X 10.6.4, running mongodb-osx-x86_64-1.5.4 on a MBP 2.5ghz, 6GB, Java client v.2.0


Attachments: Text File mongotest.java    
Operating System: OS X
Participants:

 Description   

running the server as:

./bin/mongod --dbpath=/tmp/mongo/ --cpu

client (to be attached) as:

java mongotest localhost 100000 5

I can repro it even with just 2 threads as well.

Here's the output of the assertion:

[conn7] Mon Jul 19 17:04:09 ERROR k(keypos+1).prevChildBucket != lchild
[conn7] Mon Jul 19 17:04:09 thisLoc: 0:3065990 test_databasej.test_collectionj.$date_-1
[conn7] Mon Jul 19 17:04:09 keyPos: 10 n:193
[conn7] Mon Jul 19 17:04:09 k(keypos+1).pcb: 0:2c59940 lchild: null
[conn7] Mon Jul 19 17:04:09 recordLoc: 0:5d16dc rchild: null
[conn7] Mon Jul 19 17:04:09 key: { : new Date(1279573449277) }
[conn7] Mon Jul 19 17:04:09 DUMP btreebucket n:193 parent:306f9e0
0 { : new Date(1279573449509) } left:3375200 RecLoc:0:6914d4
1 { : new Date(1279573449462) } left:2cafbf0 RecLoc:0:68dbac
2 { : new Date(1279573449461) } left:3220760 RecLoc:0:68b470
3 { : new Date(1279573449438) } left:320a6b0 RecLoc:0:6343dc
4 { : new Date(1279573449437) } left:2cb5c20 RecLoc:0:6335d0
5 { : new Date(1279573449402) } left:2ca1b80 RecLoc:0:62ff14
6 { : new Date(1279573449310) } left:31e0560 RecLoc:0:6850a8
7 { : new Date(1279573449309) } left:29b5820 RecLoc:0:62fc2c
8 { : new Date(1279573449307) } left:2c71a00 RecLoc:0:629f2c
9 { : new Date(1279573449284) } left:300b6c0 RecLoc:0:64bd31 UNUSED
10 { : new Date(1279573449277) } left:0 RecLoc:0:5d16dc
11 { : new Date(1279573449109) } left:2c59940 RecLoc:0:641cdd UNUSED
12 { : new Date(1279573449108) } left:2b17f30 RecLoc:0:628b50
13 { : new Date(1279573449077) } left:3019730 RecLoc:0:6400c5 UNUSED
14 { : new Date(1279573449059) } left:2c9bb50 RecLoc:0:643970
15 { : new Date(1279573449019) } left:2e80a70 RecLoc:0:622d58
16 { : new Date(1279573448973) } left:31e2570 RecLoc:0:5cc76c
17 { : new Date(1279573448947) } left:2c7da60 RecLoc:0:5c68f8
18 { : new Date(1279573448946) } left:2e3e860 RecLoc:0:5c4dd8
19 { : new Date(1279573448918) } left:31e6590 RecLoc:0:67a818
20 { : new Date(1279573448915) } left:2ed2d00 RecLoc:0:5c15a8
21 { : new Date(1279573448909) } left:2ecacc0 RecLoc:0:5bf24c
22 { : new Date(1279573448908) } left:32126f0 RecLoc:0:5bd5b8
23 { : new Date(1279573448845) } left:2c55920 RecLoc:0:635a25 UNUSED
24 { : new Date(1279573448837) } left:2e287b0 RecLoc:0:5b91e8
25 { : new Date(1279573448836) } left:31b6410 RecLoc:0:5b7174
26 { : new Date(1279573448825) } left:316c1c0 RecLoc:0:63a2cc
27 { : new Date(1279573448812) } left:2dee5e0 RecLoc:0:6173d4
28 { : new Date(1279573448711) } left:2edad40 RecLoc:0:6735c8
29 { : new Date(1279573448710) } left:2cadbe0 RecLoc:0:638731 UNUSED
30 { : new Date(1279573448709) } left:2ea2b80 RecLoc:0:5b536c
31 { : new Date(1279573448708) } left:2995820 RecLoc:0:5b3564
32 { : new Date(1279573448707) } left:2e78a30 RecLoc:0:5afac8
33 { : new Date(1279573448707) } left:2ef2e00 RecLoc:0:6349ad UNUSED
34 { : new Date(1279573448680) } left:2e488b0 RecLoc:0:5ac6f4
35 { : new Date(1279573448652) } left:3184280 RecLoc:0:630181 UNUSED
36 { : new Date(1279573448578) } left:31e85a0 RecLoc:0:66c850
37 { : new Date(1279573448575) } left:2e74a10 RecLoc:0:668670
38 { : new Date(1279573448559) } left:2e58930 RecLoc:0:610184
39 { : new Date(1279573448510) } left:2e94b10 RecLoc:0:628391 UNUSED
40 { : new Date(1279573448509) } left:2c37830 RecLoc:0:5aa9e4
41 { : new Date(1279573448508) } left:321c740 RecLoc:0:666cc4
42 { : new Date(1279573448507) } left:2c498c0 RecLoc:0:60921c
43 { : new Date(1279573448501) } left:2c7ba50 RecLoc:0:662970
44 { : new Date(1279573448500) } left:31f8620 RecLoc:0:661fc0
45 { : new Date(1279573448454) } left:2c699c0 RecLoc:0:620715 UNUSED
46 { : new Date(1279573448442) } left:31fe650 RecLoc:0:65dce8
47 { : new Date(1279573448441) } left:31fa630 RecLoc:0:65b5ac
48 { : new Date(1279573448396) } left:31c4480 RecLoc:0:5a388c
49 { : new Date(1279573448315) } left:2ecece0 RecLoc:0:5a1e64
50 { : new Date(1279573448313) } left:2ec0c70 RecLoc:0:61ab0d UNUSED
51 { : new Date(1279573448311) } left:2e0c6d0 RecLoc:0:652d90
52 { : new Date(1279573448309) } left:2ea8bb0 RecLoc:0:604138
53 { : new Date(1279573448308) } left:31d8520 RecLoc:0:60104c
54 { : new Date(1279573448306) } left:31d4500 RecLoc:0:5fb634
55 { : new Date(1279573448271) } left:322e7d0 RecLoc:0:616ff5 UNUSED
56 { : new Date(1279573448241) } left:31da530 RecLoc:0:651e8c
57 { : new Date(1279573448240) } left:2c9fb70 RecLoc:0:6518bc
58 { : new Date(1279573448135) } left:3222770 RecLoc:0:59c6b8
59 { : new Date(1279573448107) } left:2ec4c90 RecLoc:0:6134dd UNUSED
60 { : new Date(1279573448038) } left:323c840 RecLoc:0:5937d4
61 { : new Date(1279573448005) } left:29a3890 RecLoc:0:5f97b0
62 { : new Date(1279573448004) } left:2e56920 RecLoc:0:5f7b1c
63 { : new Date(1279573447977) } left:2ca7bb0 RecLoc:0:63fb71 UNUSED
64 { : new Date(1279573447911) } left:2c73a10 RecLoc:0:590bc0
65 { : new Date(1279573447910) } left:3204680 RecLoc:0:63bfdd UNUSED
66 { : new Date(1279573447909) } left:322a7b0 RecLoc:0:639c05 UNUSED
67 { : new Date(1279573447908) } left:2c4f8f0 RecLoc:0:636929 UNUSED
68 { : new Date(1279573447906) } left:2e84a90 RecLoc:0:60c7e1 UNUSED
69 { : new Date(1279573447709) } left:0 RecLoc:0:5f2f8c
70 { : new Date(1279573447709) } left:0 RecLoc:0:5f3008
71 { : new Date(1279573447709) } left:0 RecLoc:0:5f3084
72 { : new Date(1279573447709) } left:0 RecLoc:0:5f3100
73 { : new Date(1279573447709) } left:0 RecLoc:0:5f317c
74 { : new Date(1279573447709) } left:0 RecLoc:0:5f31f8
75 { : new Date(1279573447709) } left:0 RecLoc:0:5f3274
76 { : new Date(1279573447709) } left:0 RecLoc:0:5f32f0
77 { : new Date(1279573447709) } left:0 RecLoc:0:5f336c
78 { : new Date(1279573447709) } left:0 RecLoc:0:5f33e8
79 { : new Date(1279573447709) } left:0 RecLoc:0:5f3464
80 { : new Date(1279573447709) } left:0 RecLoc:0:5f34e0
81 { : new Date(1279573447709) } left:0 RecLoc:0:5f355c
82 { : new Date(1279573447709) } left:0 RecLoc:0:5f35d8
83 { : new Date(1279573447709) } left:0 RecLoc:0:5f3654
84 { : new Date(1279573447709) } left:0 RecLoc:0:5f36d0
85 { : new Date(1279573447709) } left:0 RecLoc:0:5f374c
86 { : new Date(1279573447709) } left:0 RecLoc:0:5f37c8
87 { : new Date(1279573447709) } left:0 RecLoc:0:5f3844
88 { : new Date(1279573447709) } left:0 RecLoc:0:5f38c0
89 { : new Date(1279573447709) } left:0 RecLoc:0:5f393c
90 { : new Date(1279573447709) } left:0 RecLoc:0:5f39b8
91 { : new Date(1279573447709) } left:0 RecLoc:0:5f3a34
92 { : new Date(1279573447709) } left:0 RecLoc:0:5f3ab0
93 { : new Date(1279573447709) } left:0 RecLoc:0:5f3b2c
94 { : new Date(1279573447709) } left:0 RecLoc:0:5f3ba8
95 { : new Date(1279573447709) } left:0 RecLoc:0:5f3c24
96 { : new Date(1279573447709) } left:0 RecLoc:0:5f3ca0
97 { : new Date(1279573447709) } left:0 RecLoc:0:5f3d1c
98 { : new Date(1279573447709) } left:0 RecLoc:0:5f3d98
99 { : new Date(1279573447709) } left:0 RecLoc:0:5f3e14
100 { : new Date(1279573447709) } left:0 RecLoc:0:5f3e90
101 { : new Date(1279573447709) } left:0 RecLoc:0:5f3f0c
102 { : new Date(1279573447709) } left:0 RecLoc:0:5f3f88
103 { : new Date(1279573447709) } left:0 RecLoc:0:5f4004
104 { : new Date(1279573447709) } left:0 RecLoc:0:5f4080
105 { : new Date(1279573447709) } left:0 RecLoc:0:5f40fc
106 { : new Date(1279573447709) } left:0 RecLoc:0:5f4178
107 { : new Date(1279573447709) } left:0 RecLoc:0:5f41f4
108 { : new Date(1279573447709) } left:0 RecLoc:0:5f4270
109 { : new Date(1279573447709) } left:0 RecLoc:0:5f42ec
110 { : new Date(1279573447709) } left:0 RecLoc:0:5f4368
111 { : new Date(1279573447709) } left:0 RecLoc:0:5f43e4
112 { : new Date(1279573447709) } left:0 RecLoc:0:5f4460
113 { : new Date(1279573447709) } left:0 RecLoc:0:5f44dc
114 { : new Date(1279573447709) } left:0 RecLoc:0:5f4558
115 { : new Date(1279573447709) } left:0 RecLoc:0:5f45d4
116 { : new Date(1279573447709) } left:0 RecLoc:0:5f4650
117 { : new Date(1279573447709) } left:0 RecLoc:0:5f46cc
118 { : new Date(1279573447709) } left:0 RecLoc:0:5f4748
119 { : new Date(1279573447709) } left:0 RecLoc:0:5f47c4
120 { : new Date(1279573447709) } left:0 RecLoc:0:5f4840
121 { : new Date(1279573447709) } left:0 RecLoc:0:5f48bc
122 { : new Date(1279573447709) } left:0 RecLoc:0:5f4938
123 { : new Date(1279573447709) } left:0 RecLoc:0:5f49b4
124 { : new Date(1279573447709) } left:0 RecLoc:0:5f4a30
125 { : new Date(1279573447709) } left:0 RecLoc:0:5f4aac
126 { : new Date(1279573447708) } left:31de550 RecLoc:0:609299 UNUSED
127 { : new Date(1279573447707) } left:2edcd50 RecLoc:0:634b9d UNUSED
128 { : new Date(1279573447706) } left:2ed0cf0 RecLoc:0:631c25 UNUSED
129 { : new Date(1279573447660) } left:2e7aa40 RecLoc:0:605c59 UNUSED
130 { : new Date(1279573447621) } left:2c87ab0 RecLoc:0:5e6514
131 { : new Date(1279573447594) } left:2c7fa70 RecLoc:0:62aa51 UNUSED
132 { : new Date(1279573447508) } left:29ef9f0 RecLoc:0:600795 UNUSED
133 { : new Date(1279573447505) } left:2e2c7d0 RecLoc:0:5dfd6c
134 { : new Date(1279573447478) } left:2c85aa0 RecLoc:0:6205a1 UNUSED
135 { : new Date(1279573447428) } left:2e14710 RecLoc:0:5d8c90
136 { : new Date(1279573447381) } left:2c4b8d0 RecLoc:0:5d7f7c
137 { : new Date(1279573447354) } left:2eaebe0 RecLoc:0:61aa15 UNUSED
138 { : new Date(1279573447308) } left:3234800 RecLoc:0:612d99 UNUSED
139 { : new Date(1279573447306) } left:2eb0bf0 RecLoc:0:5d1bb4
140 { : new Date(1279573447305) } left:2c297c0 RecLoc:0:5d04f1 UNUSED
141 { : new Date(1279573447105) } left:2a05aa0 RecLoc:0:5c6139 UNUSED
142 { : new Date(1279573446906) } left:0 RecLoc:0:577008
143 { : new Date(1279573446906) } left:0 RecLoc:0:577084
144 { : new Date(1279573446906) } left:0 RecLoc:0:577100
145 { : new Date(1279573446906) } left:0 RecLoc:0:57717c
146 { : new Date(1279573446906) } left:0 RecLoc:0:5771f8
147 { : new Date(1279573446906) } left:0 RecLoc:0:577274
148 { : new Date(1279573446906) } left:0 RecLoc:0:5772f0
149 { : new Date(1279573446906) } left:0 RecLoc:0:57736c
150 { : new Date(1279573446906) } left:0 RecLoc:0:5773e8
151 { : new Date(1279573446905) } left:0 RecLoc:0:574280
152 { : new Date(1279573446905) } left:0 RecLoc:0:5742fc
153 { : new Date(1279573446905) } left:0 RecLoc:0:574378
154 { : new Date(1279573446905) } left:0 RecLoc:0:5743f4
155 { : new Date(1279573446905) } left:0 RecLoc:0:574470
156 { : new Date(1279573446905) } left:0 RecLoc:0:5744ec
157 { : new Date(1279573446905) } left:0 RecLoc:0:574568
158 { : new Date(1279573446905) } left:0 RecLoc:0:5745e4
159 { : new Date(1279573446905) } left:0 RecLoc:0:574660
160 { : new Date(1279573446905) } left:0 RecLoc:0:5746dc
161 { : new Date(1279573446905) } left:0 RecLoc:0:574758
162 { : new Date(1279573446905) } left:0 RecLoc:0:5747d4
163 { : new Date(1279573446905) } left:0 RecLoc:0:574850
164 { : new Date(1279573446905) } left:0 RecLoc:0:5748cc
165 { : new Date(1279573446905) } left:0 RecLoc:0:574948
166 { : new Date(1279573446905) } left:0 RecLoc:0:5749c4
167 { : new Date(1279573446905) } left:0 RecLoc:0:574a40
168 { : new Date(1279573446905) } left:0 RecLoc:0:574abc
169 { : new Date(1279573446905) } left:0 RecLoc:0:574b38
170 { : new Date(1279573446905) } left:0 RecLoc:0:574bb4
171 { : new Date(1279573446905) } left:0 RecLoc:0:574c30
172 { : new Date(1279573446905) } left:0 RecLoc:0:574cac
173 { : new Date(1279573446905) } left:0 RecLoc:0:574d28
174 { : new Date(1279573446905) } left:0 RecLoc:0:574da4
175 { : new Date(1279573446905) } left:0 RecLoc:0:574e20
176 { : new Date(1279573446905) } left:0 RecLoc:0:574e9c
177 { : new Date(1279573446851) } left:298d7e0 RecLoc:0:56e504
178 { : new Date(1279573446830) } left:3216710 RecLoc:0:5d95c5 UNUSED
179 { : new Date(1279573446517) } left:0 RecLoc:0:56d48c
180 { : new Date(1279573446517) } left:0 RecLoc:0:56d508
181 { : new Date(1279573446517) } left:0 RecLoc:0:56d584
182 { : new Date(1279573446517) } left:0 RecLoc:0:56d600
183 { : new Date(1279573446517) } left:0 RecLoc:0:56d67c
184 { : new Date(1279573446517) } left:0 RecLoc:0:56d6f8
185 { : new Date(1279573446517) } left:0 RecLoc:0:56d774
186 { : new Date(1279573446517) } left:0 RecLoc:0:56d7f0
187 { : new Date(1279573446517) } left:0 RecLoc:0:56d86c
188 { : new Date(1279573446513) } left:2eb4c10 RecLoc:0:5c6421 UNUSED
189 { : new Date(1279573446482) } left:2c41880 RecLoc:0:565718
190 { : new Date(1279573446430) } left:2c8faf0 RecLoc:0:5de345 UNUSED
191 { : new Date(1279573446374) } left:3218720 RecLoc:0:5d4e91 UNUSED
192 { : new Date(1279573446307) } left:2ca3b90 RecLoc:0:55b838 right:2c99b40
[conn7] Mon Jul 19 17:04:09 test_databasej.test_collectionj Assertion failure false db/btree.cpp 672
0x10006f50e 0x10007d71c 0x100152c45 0x1001556a6 0x100155976 0x1001558a9 0x100155976 0x10023b044 0x100138be1 0x10013a40b 0x10020f96d 0x100216320 0x10032df22 0x100341144 0x7fff85aaf456 0x7fff85aaf309
0 mongod 0x000000010006f50e _ZN5mongo12sayDbContextEPKc + 174
1 mongod 0x000000010007d71c _ZN5mongo8assertedEPKcS1_j + 284
2 mongod 0x0000000100152c45 _ZN5mongo11BtreeBucket10insertHereENS_7DiskLocEiS1_RKNS_7BSONObjERKNS_8OrderingES1_S1_RNS_12IndexDetailsE + 1077
3 mongod 0x00000001001556a6 _ZN5mongo11BtreeBucket7_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbS1_S1_RNS_12IndexDetailsE + 326
4 mongod 0x0000000100155976 _ZN5mongo11BtreeBucket9bt_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbRNS_12IndexDetailsEb + 166
5 mongod 0x00000001001558a9 _ZN5mongo11BtreeBucket7_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbS1_S1_RNS_12IndexDetailsE + 841
6 mongod 0x0000000100155976 _ZN5mongo11BtreeBucket9bt_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbRNS_12IndexDetailsEb + 166
7 mongod 0x000000010023b044 _ZN5mongo11DataFileMgr12updateRecordEPKcPNS_16NamespaceDetailsEPNS_25NamespaceDetailsTransientEPNS_6RecordERKNS_7DiskLocES2_iRNS_7OpDebugERb + 3428
8 mongod 0x0000000100138be1 _ZN5mongo14_updateObjectsEbPKcRKNS_7BSONObjES2_bbbRNS_7OpDebugE + 4577
9 mongod 0x000000010013a40b _ZN5mongo13updateObjectsEPKcRKNS_7BSONObjES2_bbbRNS_7OpDebugE + 299
10 mongod 0x000000010020f96d _ZN5mongo14receivedUpdateERNS_7MessageERNS_5CurOpE + 1149
11 mongod 0x0000000100216320 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 4288
12 mongod 0x000000010032df22 _ZN5mongo10connThreadEv + 530
13 mongod 0x0000000100341144 thread_proxy + 132
14 libSystem.B.dylib 0x00007fff85aaf456 _pthread_start + 331
15 libSystem.B.dylib 0x00007fff85aaf309 thread_start + 13
[conn7] Mon Jul 19 17:04:09 test_databasej.test_collectionj caught assertion update index test_databasej.test_collectionj.$date_-1 0 assertion db/btree.cpp:672
[snapshotthread] Mon Jul 19 17:04:10 cpu: elapsed:4000 writelock: 85%



 Comments   
Comment by bret barker [ 19/Jul/10 ]

I had asked on IRC first, and was told to open a bug, but I'll make a point of trying the latest in the future before filing.

In any case, this is Confirmed fixed w/the latest nightly. Thanks for the quick reply and of course for the great piece of software that is MongoDB.

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

this was fixed in 1.5.5 i believe.
you should always try the latest builds - ESPECIALLY on the unstable branch

Comment by bret barker [ 19/Jul/10 ]

java test code - is just a simple multi-threaded hammer.

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