-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.10
-
Component/s: JavaScript
-
None
-
ALL
-
Running example from docs
(http://docs.mongodb.org/v2.6/reference/operator/query/where/):
db.test.find( { $where: "this.credits == this.debits" } );
produced instant segfault:
2015-07-01T12:36:12.331-0700 [conn1] SEVERE: Invalid access at address: 0x20 2015-07-01T12:36:12.654-0700 [conn1] SEVERE: Got signal: 11 (Segmentation fault). Backtrace:0x121eb61 0x121df3e 0x121e02f 0x7f038822a0d0 0x1504115 0x15d2e1f 0x150513e 0x1505159 0x15a0b8e 0x14e5b22 0x15a0cc0 0x1316e37 0x15a76da 0x117a005 0x118d539 0x116dd93 0xc10484 0xc10c0f 0xc086fc 0xc03226 /usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) [0x121eb61] /usr/bin/mongod() [0x121df3e] /usr/bin/mongod() [0x121e02f] /lib64/libpthread.so.0(+0x100d0) [0x7f038822a0d0] /usr/bin/mongod(_ZN2v88internal2OS8AllocateEmPmb+0xe5) [0x1504115] /usr/bin/mongod(_ZN2v88internal28CreateTranscendentalFunctionENS0_19TranscendentalCache4TypeE+0x3f) [0x15d2e1f] /usr/bin/mongod(_ZN2v88internal22init_fast_sin_functionEv+0xe) [0x150513e] /usr/bin/mongod(_ZN2v88internal14POSIXPostSetUpEv+0x9) [0x1505159] /usr/bin/mongod(_ZN2v88internal2V828InitializeOncePerProcessImplEv+0x3e) [0x15a0b8e] /usr/bin/mongod(_ZN2v88internal12CallOnceImplEPlPFvPvES2_+0x62) [0x14e5b22] /usr/bin/mongod(_ZN2v88internal2V810InitializeEPNS0_12DeserializerE+0x20) [0x15a0cc0] /usr/bin/mongod(_ZN2v82V810InitializeEv+0x47) [0x1316e37] /usr/bin/mongod(_ZN2v86LockerC1EPNS_7IsolateE+0x9a) [0x15a76da] /usr/bin/mongod(_ZN5mongo7V8ScopeC1EPNS_14V8ScriptEngineE+0x3c5) [0x117a005] /usr/bin/mongod(_ZN5mongo14V8ScriptEngine11createScopeEv+0x29) [0x118d539] /usr/bin/mongod(_ZN5mongo12ScriptEngine14getPooledScopeERKSsS2_+0x283) [0x116dd93] /usr/bin/mongod(_ZN5mongo20WhereMatchExpression4initERKNS_10StringDataES3_RKNS_7BSONObjE+0x2e4) [0xc10484] /usr/bin/mongod(_ZN5mongo33expressionParserWhereCallbackRealERKNS_11BSONElementE+0x22f) [0xc10c0f] /usr/bin/mongod(_ZN5boost6detail8function17function_invoker1IPFN5mongo10StatusWithIPNS3_15MatchExpressionEEERKNS3_11BSONElementEES7_SA_E6invokeERNS1_15function_bufferESA_+0xc) [0xc086fc] /usr/bin/mongod(_ZN5mongo21MatchExpressionParser6_parseERKNS_7BSONObjEi+0xf16) [0xc03226]
Server configs are defaults except:
added http interface
created replicaset with one member to get oplogs:
grep '^[^#]' /etc/mongod.conf rest=true nohttpinterface=false logpath=/var/log/mongodb/mongod.log logappend=true fork=true dbpath=/var/lib/mongo pidfilepath=/var/run/mongodb/mongod.pid bind_ip=127.0.0.1 replSet=localhost
- duplicates
-
SERVER-15920 Segmentation fault on mongod processes and mongo shell
- Closed
-
SERVER-12991 Segmentation fault during V8 initialization on grsecurity Linux kernel
- Closed
-
SERVER-16564 package installation should configure SELinux when necessary to run server
- Closed