[DOCS-3277] Comment on: "manual/tutorial/build-a-2d-index.txt" Created: 26/Apr/14  Updated: 03/Nov/17  Resolved: 28/Apr/14

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Improvement Priority: Major - P3
Reporter: Jay Meng Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mac osx 10.9.2, mongodb-osx-x86_64-2.6.0

Location: http://docs.mongodb.org/manual/tutorial/build-a-2d-index/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Referrer: http://docs.mongodb.org/manual/tutorial/query-a-2dsphere-index/
Screen Resolution: 1440 x 900
repo: docs
source: tutorial/build-a-2d-index


Issue Links:
Duplicate
duplicates SERVER-13751 mongod crash on geo nearSphere query Closed
Participants:
Days since reply: 9 years, 42 weeks, 5 days ago

 Description   

Hi,I might found a bug about Geospatial(mongodb-osx-x86_64-2.6.0):
scripts listed below:
step 1:
db.places.ensureIndex(

{ loc : "2dsphere" }

)
step 2:
db.places.insert( {_id: NumberLong(1), loc :

{ "longitude" : 121.3449, "latitude" : 31.17528 }

,"title" :"aa"} )
step 3:
db.places.find({loc:{$nearSphere: [121.4905, 31.2646]}})

everythings fine until now....then

step 4(longitude or latitude might illeagal,I'm not sure):
db.places.find({loc:{$nearSphere: [200.4905, 300.2646]}})

then the whole mongod process crash!
(btw,all the scripts above running well under mongodb-osx-x86_64-2.4.8)

mongo.log attached below:

2014-04-26T10:12:13.765+0800 [conn1] SEVERE: src/third_party/s2/s2cap.cc:35: Check failed: S2::IsUnitLength(axis)
2014-04-26T10:12:13.765+0800 [conn1] test.places Fatal Assertion 0
2014-04-26T10:12:13.770+0800 [conn1] test.places 0x1006a7d0b 0x10065f972 0x10064f4ee 0x100728208 0x10072efe7 0x10021493e 0x10021535c 0x1003e3a10 0x1003ced58 0x10029f9e0 0x100006754 0x10066d0b1 0x1006dc115 0x7fff8a97c899 0x7fff8a97c72a 0x7fff8a980fc9
0 mongod 0x00000001006a7d0b _ZN5mongo15printStackTraceERSo + 43
1 mongod 0x000000010065f972 _ZN5mongo10logContextEPKc + 114
2 mongod 0x000000010064f4ee _ZN5mongo13fassertFailedEi + 110
3 mongod 0x0000000100728208 _ZN15LogMessageFatalD1Ev + 22
4 mongod 0x000000010072efe7 _ZN5S2Cap13FromAxisAngleERK7Vector3IdERK7S1Angle + 93
5 mongod 0x000000010021493e _ZN5mongo11S2NearStage11nextAnnulusEv + 172
6 mongod 0x000000010021535c _ZN5mongo11S2NearStage4workEPm + 372
7 mongod 0x00000001003e3a10 _ZN5mongo12PlanExecutor7getNextEPNS_7BSONObjEPNS_7DiskLocE + 274
8 mongod 0x00000001003ced58 ZN5mongo11newRunQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1 + 4776
9 mongod 0x000000010029f9e0 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 1968
10 mongod 0x0000000100006754 _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 308
11 mongod 0x000000010066d0b1 _ZN5mongo17PortMessageServer17handleIncomingMsgEPv + 1681
12 mongod 0x00000001006dc115 thread_proxy + 229
13 libsystem_pthread.dylib 0x00007fff8a97c899 _pthread_body + 138
14 libsystem_pthread.dylib 0x00007fff8a97c72a _pthread_struct_init + 0
15 libsystem_pthread.dylib 0x00007fff8a980fc9 thread_start + 13
2014-04-26T10:12:13.770+0800 [conn1]

***aborting after fassert() failure

2014-04-26T10:12:13.774+0800 [conn1] SEVERE: Got signal: 6 (Abort trap: 6).
Backtrace:0x1006a7d0b 0x1006a7a4f 0x7fff920bb5aa 0 0x7fff8e4afb1a 0x10064f560 0x100728208 0x10072efe7 0x10021493e 0x10021535c 0x1003e3a10 0x1003ced58 0x10029f9e0 0x100006754 0x10066d0b1 0x1006dc115 0x7fff8a97c899 0x7fff8a97c72a 0x7fff8a980fc9
0 mongod 0x00000001006a7d0b _ZN5mongo15printStackTraceERSo + 43
1 mongod 0x00000001006a7a4f ZN5mongo12_GLOBAL_N_110abruptQuitEi + 191
2 libsystem_platform.dylib 0x00007fff920bb5aa _sigtramp + 26
3 ??? 0x0000000000000000 0x0 + 0
4 libsystem_c.dylib 0x00007fff8e4afb1a abort + 125
5 mongod 0x000000010064f560 _ZN5mongo13fassertFailedEi + 224
6 mongod 0x0000000100728208 _ZN15LogMessageFatalD1Ev + 22
7 mongod 0x000000010072efe7 _ZN5S2Cap13FromAxisAngleERK7Vector3IdERK7S1Angle + 93
8 mongod 0x000000010021493e _ZN5mongo11S2NearStage11nextAnnulusEv + 172
9 mongod 0x000000010021535c _ZN5mongo11S2NearStage4workEPm + 372
10 mongod 0x00000001003e3a10 _ZN5mongo12PlanExecutor7getNextEPNS_7BSONObjEPNS_7DiskLocE + 274
11 mongod 0x00000001003ced58 ZN5mongo11newRunQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1 + 4776
12 mongod 0x000000010029f9e0 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 1968
13 mongod 0x0000000100006754 _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 308
14 mongod 0x000000010066d0b1 _ZN5mongo17PortMessageServer17handleIncomingMsgEPv + 1681
15 mongod 0x00000001006dc115 thread_proxy + 229
16 libsystem_pthread.dylib 0x00007fff8a97c899 _pthread_body + 138
17 libsystem_pthread.dylib 0x00007fff8a97c72a _pthread_struct_init + 0
18 libsystem_pthread.dylib 0x00007fff8a980fc9 thread_start + 13



 Comments   
Comment by Jay Meng [ 26/Apr/14 ]

btw,I run below first:
db.places.ensureIndex(

{ loc : "2dsphere" }

)

Generated at Thu Feb 08 07:45:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.