Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3277

Comment on: "manual/tutorial/build-a-2d-index.txt"

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: Server
    • Environment:

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            spirit.jay@163.com Jay Meng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 1 week, 6 days ago