[SERVER-7650] V8 segfault in jstests/ora.js on all platforms Created: 13/Nov/12  Updated: 11/Jul/16  Resolved: 22/Nov/12

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

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Buildbot as well as testing by hand on Macbook Air and Ubuntu 12.04 64-bit


Issue Links:
Related
is related to SERVER-2407 Switch to v8 Closed
Operating System: ALL
Participants:

 Description   

http://buildlogs.mongodb.org/Linux%2064-bit/builds/4880/test/js/ora.js

MongoDB shell version: 2.3.1-pre-
Tue Nov 13 18:33:56.121 [initandlisten] connection accepted from 127.0.0.1:40788 #20 (1 connection now open)
connecting to: 127.0.0.1:27999/test
null
Tue Nov 13 18:33:56.124 [conn20] CMD: drop test.jstests_ora
Tue Nov 13 18:33:56.125 [conn20] build index test.jstests_ora { _id: 1 }
Tue Nov 13 18:33:56.126 [conn20] build index done.  scanned 0 total records. 0 secs
Tue Nov 13 18:33:56.192 [conn20] CMD: drop test.jstests_ora
Tue Nov 13 18:33:56.193 [conn20] build index test.jstests_ora { _id: 1 }
Tue Nov 13 18:33:56.194 [conn20] build index done.  scanned 0 total records. 0 secs
Tue Nov 13 18:33:56.194 [conn20] info: creating collection test.jstests_ora on add index
Tue Nov 13 18:33:56.194 [conn20] build index test.jstests_ora { loc: "2d" }
Tue Nov 13 18:33:56.194 [conn20] build index done.  scanned 0 total records. 0 secs
Tue Nov 13 18:33:56.195 [conn20] assertion 13291 $or may not contain 'special' query ns:test.jstests_ora query:{ $or: [ { loc: { $near: [ 11.0, 11.0 ] } } ] }
Tue Nov 13 18:33:56.195 [conn20]  ntoskip:0 ntoreturn:1
Tue Nov 13 18:33:56.195 [conn20] problem detected during query over test.jstests_ora : { $err: "$or may not contain 'special' query", code: 13291 }
 
Tue Nov 13 18:33:56.198 [conn20] end connection 127.0.0.1:40788 (0 connections now open)
Tue Nov 13 18:33:56.199 Invalid access at address: 0 from thread: conn20
 
Tue Nov 13 18:33:56.199 Got signal: 11 (Segmentation fault).
 
Tue Nov 13 18:33:56.203 Backtrace:
0xb7a5c6 0x6ff63d 0x6ff9a7 0x7f8d481e74a0 0xd742b7 0xb2480c 0xb24a49 0xb22947 0xb69682 0x7f8d481df7f1 0x7f8d47585ccd 
 /data/buildslaves/Linux_64bit/mongo/mongod(_ZN5mongo15printStackTraceERSo+0x26) [0xb7a5c6]
 /data/buildslaves/Linux_64bit/mongo/mongod(_ZN5mongo10abruptQuitEi+0x39d) [0x6ff63d]
 /data/buildslaves/Linux_64bit/mongo/mongod(_ZN5mongo24abruptQuitWithAddrSignalEiP7siginfoPv+0x247) [0x6ff9a7]
 /lib64/libpthread.so.0(+0xf4a0) [0x7f8d481e74a0]
 /data/buildslaves/Linux_64bit/mongo/mongod(_ZN2v88internal7Isolate5EnterEv+0xa7) [0xd742b7]
 /data/buildslaves/Linux_64bit/mongo/mongod(_ZN5mongo7V8ScopeD1Ev+0x4c) [0xb2480c]
 /data/buildslaves/Linux_64bit/mongo/mongod(_ZN5mongo7V8ScopeD0Ev+0x9) [0xb24a49]
 /data/buildslaves/Linux_64bit/mongo/mongod(_ZN5mongo10ScopeCache5clearEv+0x107) [0xb22947]
 /data/buildslaves/Linux_64bit/mongo/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x4a2) [0xb69682]
 /lib64/libpthread.so.0(+0x77f1) [0x7f8d481df7f1]
 /lib64/libc.so.6(clone+0x6d) [0x7f8d47585ccd]

http://buildlogs.mongodb.org/Linux%2064-bit%20DUR%20OFF/builds/1726/test/small%20oplog/ora.js

MongoDB shell version: 2.3.1-pre-
Tue Nov 13 13:57:26.275 [initandlisten] connection accepted from 127.0.0.1:52389 #1733 (11 connections now open)
connecting to: 127.0.0.1:27999/test
true
Tue Nov 13 13:57:26.277 [conn1733] CMD: drop test.jstests_ora
Tue Nov 13 13:57:26.278 [conn1733] build index test.jstests_ora { _id: 1 }
Tue Nov 13 13:57:26.279 [conn1733] build index done.  scanned 0 total records. 0 secs
Tue Nov 13 13:57:26.345 [conn1733] CMD: drop test.jstests_ora
Tue Nov 13 13:57:26.348 [conn1733] build index test.jstests_ora { _id: 1 }
Tue Nov 13 13:57:26.348 [conn1733] build index done.  scanned 0 total records. 0 secs
Tue Nov 13 13:57:26.348 [conn1733] info: creating collection test.jstests_ora on add index
Tue Nov 13 13:57:26.348 [conn1733] build index test.jstests_ora { loc: "2d" }
Tue Nov 13 13:57:26.348 [conn1733] build index done.  scanned 0 total records. 0 secs
Tue Nov 13 13:57:26.349 [conn1733] assertion 13291 $or may not contain 'special' query ns:test.jstests_ora query:{ $or: [ { loc: { $near: [ 11.0, 11.0 ] } } ] }
Tue Nov 13 13:57:26.349 [conn1733]  ntoskip:0 ntoreturn:1
Tue Nov 13 13:57:26.349 [conn1733] problem detected during query over test.jstests_ora : { $err: "$or may not contain 'special' query", code: 13291 }
 
Tue Nov 13 13:57:26.352 [conn1733] end connection 127.0.0.1:52389 (10 connections now open)
Tue Nov 13 13:57:26.353 Invalid access at address: 0 from thread: conn1733
 
Tue Nov 13 13:57:26.353 Got signal: 11 (Segmentation fault).
 
Tue Nov 13 13:57:26.359 Backtrace:
0xb98fd6 0x6d9144 0x6de50e 0x7f352944bb40 0xda9b97 0xb3dacc 0xb3b027 0xb86e9f 0x7f3529443971 0x7f35287f892d 
 /home/yellow/buildslave/Linux_64bit_DUR_OFF/mongo/mongod(_ZN5mongo15printStackTraceERSo+0x26) [0xb98fd6]
 /home/yellow/buildslave/Linux_64bit_DUR_OFF/mongo/mongod(_ZN5mongo10abruptQuitEi+0x3c4) [0x6d9144]
 /home/yellow/buildslave/Linux_64bit_DUR_OFF/mongo/mongod(_ZN5mongo24abruptQuitWithAddrSignalEiP7siginfoPv+0x25e) [0x6de50e]
 /lib/libpthread.so.0(+0xfb40) [0x7f352944bb40]
 /home/yellow/buildslave/Linux_64bit_DUR_OFF/mongo/mongod(_ZN2v88internal7Isolate5EnterEv+0xa7) [0xda9b97]
 /home/yellow/buildslave/Linux_64bit_DUR_OFF/mongo/mongod(_ZN5mongo7V8ScopeD0Ev+0x4c) [0xb3dacc]
 /home/yellow/buildslave/Linux_64bit_DUR_OFF/mongo/mongod(_ZN5mongo10ScopeCache5clearEv+0x107) [0xb3b027]
 /home/yellow/buildslave/Linux_64bit_DUR_OFF/mongo/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x47f) [0xb86e9f]
 /lib/libpthread.so.0(+0x7971) [0x7f3529443971]
 /lib/libc.so.6(clone+0x6d) [0x7f35287f892d]
Tue Nov 13 13:57:26.280 [replslave] build index done.  scanned 0 total records. 0 secs
Tue Nov 13 13:57:26.347 [replslave] CMD: drop test.jstests_ora
Tue Nov 13 13:57:26.349 [replslave] build index test.jstests_ora { _id: 1 }
Tue Nov 13 13:57:26.350 [replslave] build index done.  scanned 0 total records. 0 secs
Tue Nov 13 13:57:26.350 [replslave] info: creating collection test.jstests_ora on add index
Tue Nov 13 13:57:26.350 [replslave] build index test.jstests_ora { loc: "2d" }
Tue Nov 13 13:57:26.350 [replslave] build index done.  scanned 0 total records. 0 secs
Tue Nov 13 13:57:26.492 [replslave] repl: AssertionException dbclient error communicating with server: localhost:27999
Tue Nov 13 13:57:26.492 [replslave] repl: sleep 2 sec before next pass
 
Tue Nov 13 13:57:28.492 [replslave] repl: syncing from host:localhost:27999
Tue Nov 13 13:57:28.492 [replslave] repl: couldn't connect to server localhost:27999
Tue Nov 13 13:57:28.492 [replslave] repl: sleep 3 sec before next pass
Tue Nov 13 13:57:31.492 [replslave] repl: syncing from host:localhost:27999
Tue Nov 13 13:57:31.492 [replslave] repl: couldn't connect to server localhost:27999
Tue Nov 13 13:57:31.492 [replslave] repl: sleep 3 sec before next pass
Tue Nov 13 13:57:34.493 [replslave] repl: syncing from host:localhost:27999
Tue Nov 13 13:57:34.493 [replslave] repl: couldn't connect to server localhost:27999
Tue Nov 13 13:57:34.493 [replslave] repl: sleep 3 sec before next pass
Tue Nov 13 13:57:36.537 got signal 15 (Terminated), will terminate after current cmd ends
Tue Nov 13 13:57:36.537 [interruptThread] now exiting
Tue Nov 13 13:57:36.537 dbexit: 
Tue Nov 13 13:57:36.537 [interruptThread] shutdown: going to close listening sockets...
Tue Nov 13 13:57:36.537 [interruptThread] closing listening socket: 6
Tue Nov 13 13:57:36.537 [interruptThread] closing listening socket: 7
Tue Nov 13 13:57:36.537 [interruptThread] closing listening socket: 8
Tue Nov 13 13:57:36.537 [interruptThread] removing socket file: /tmp/mongodb-28000.sock
Tue Nov 13 13:57:36.537 [interruptThread] shutdown: going to flush diaglog...
Tue Nov 13 13:57:36.537 [interruptThread] shutdown: going to close sockets...
Tue Nov 13 13:57:36.537 [interruptThread] shutdown: waiting for fs preallocator...
Tue Nov 13 13:57:36.537 [interruptThread] shutdown: closing all files...
Tue Nov 13 13:57:36.577 [interruptThread] closeAllFiles() finished
Tue Nov 13 13:57:36.577 [interruptThread] shutdown: removing fs lock...
Tue Nov 13 13:57:36.577 dbexit: really exiting now



 Comments   
Comment by Tad Marshall [ 22/Nov/12 ]

Test seems to be passing on all platforms now.

Comment by Tad Marshall [ 19/Nov/12 ]

I think that this may be fixed by the updated fix to SERVER-7617, but I need to see the jstests pass on all platforms to be sure. We're currently failing in other tests, so I'll leave this open for now.

Comment by Tad Marshall [ 15/Nov/12 ]

Symptoms change between debug and release builds, and with and without the patch (for SERVER-7617), but this test still has issues in V8.

Comment by Tad Marshall [ 14/Nov/12 ]

Stack trace from Windows release build. The test runs successfully; the crash is on thread exit when the connection is closed:

First-chance exception at 0x000000013f57f415 in mongod_v8.exe: 0xC0000005: Access violation writing location 0x0000000000000000.
Unhandled exception at 0x000000013f57f415 in mongod_v8.exe: 0xC0000005: Access violation writing location 0x0000000000000000.
 
>Debug.ListCallStack
 Index  Function
--------------------------------------------------------------------------------
*1      mongod_v8.exe!v8::internal::Isolate::Enter() 
 2      mongod_v8.exe!mongo::V8Scope::~V8Scope() 
 3      mongod_v8.exe!mongo::V8Scope::`scalar deleting destructor'() 
 4      mongod_v8.exe!mongo::ScopeCache::clear() 
 5      mongod_v8.exe!mongo::MyMessageHandler::disconnected(mongo::AbstractMessagingPort * p=0x0000000000000000) 
 6      mongod_v8.exe!mongo::pms::threadRun(mongo::MessagingPort * inPort=0x00000000003bafb0) 
 7      mongod_v8.exe!boost::`anonymous namespace'::thread_start_function(void * param=0x0000000000000000) 
 8      mongod_v8.exe!_callthreadstartex() 
 9      mongod_v8.exe!_threadstartex(void * ptd=0x0000000000000000) 
 10     kernel32.dll!BaseThreadInitThunk() 
 11     ntdll.dll!RtlUserThreadStart() 
 
>

The code being executed is Isolate::Enter(); entry_stack_->entry_count++; (line 14 here):

void Isolate::Enter() {
  Isolate* current_isolate = NULL;
  PerIsolateThreadData* current_data = CurrentPerIsolateThreadData();
  if (current_data != NULL) {
    current_isolate = current_data->isolate_;
    ASSERT(current_isolate != NULL);
    if (current_isolate == this) {
      ASSERT(Current() == this);
      ASSERT(entry_stack_ != NULL);
      ASSERT(entry_stack_->previous_thread_data == NULL ||
             entry_stack_->previous_thread_data->thread_id().Equals(
                 ThreadId::Current()));
      // Same thread re-enters the isolate, no need to re-init anything.
      entry_stack_->entry_count++;
      return;
    }
  }
... // routine continues

Comment by Tad Marshall [ 14/Nov/12 ]

Stack trace from Windows debug build. Note that debug builds fail because of V8 checks that fail, so no access violation here.
Log:

Wed Nov 14 14:19:15.640 [initandlisten] MongoDB starting : pid=1976 port=27999 dbpath=c:\cleandb 64-bit host=Tad-W7-VBox
Wed Nov 14 14:19:15.640 [initandlisten] _DEBUG build (which is slower)
Wed Nov 14 14:19:15.640 [initandlisten]
Wed Nov 14 14:19:15.640 [initandlisten] ** NOTE: This is a development version (2.3.1-pre-) of MongoDB.
Wed Nov 14 14:19:15.640 [initandlisten] **       Not recommended for production.
Wed Nov 14 14:19:15.640 [initandlisten]
Wed Nov 14 14:19:15.640 [initandlisten] db version v2.3.1-pre-, pdfile version 4.5
Wed Nov 14 14:19:15.655 [initandlisten] git version: not-scons
Wed Nov 14 14:19:15.655 [initandlisten] build info: not-scons win mscver:160040219 built:Nov 14 2012 boostver:1049001
Wed Nov 14 14:19:15.655 [initandlisten] options: { dbpath: "c:\cleandb", port: 27999 }
Wed Nov 14 14:19:15.671 [initandlisten] journal dir=c:\cleandb\journal
Wed Nov 14 14:19:15.671 [initandlisten] recover : no journal files present, no recovery needed
Wed Nov 14 14:19:15.733 [initandlisten] opening db:  local
Wed Nov 14 14:19:15.796 [IndexRebuilder] thread IndexRebuilder stack usage was 9120 bytes,  which is the most so far
Wed Nov 14 14:19:15.843 [initandlisten] waiting for connections on port 27999
Wed Nov 14 14:19:15.843 [websvr] admin web console waiting for connections on port 28999
Wed Nov 14 14:19:44.968 [initandlisten] connection accepted from 127.0.0.1:51408 #1 (1 connection now open)
Wed Nov 14 14:20:05.858 [conn1] opening db:  test
Wed Nov 14 14:20:05.858 [conn1] CMD: drop test.jstests_ora
Wed Nov 14 14:20:05.858 [FileAllocator] allocating new datafile c:\cleandb\test.ns, filling with zeroes...
Wed Nov 14 14:20:05.858 [FileAllocator] creating directory c:\cleandb\_tmp
Wed Nov 14 14:20:05.968 [FileAllocator] done allocating datafile c:\cleandb\test.ns, size: 16MB,  took 0.103 secs
Wed Nov 14 14:20:05.983 [FileAllocator] allocating new datafile c:\cleandb\test.0, filling with zeroes...
Wed Nov 14 14:20:06.374 [FileAllocator] done allocating datafile c:\cleandb\test.0, size: 64MB,  took 0.389 secs
Wed Nov 14 14:20:06.374 [conn1] datafileheader::init initializing c:\cleandb\test.0 n:0
Wed Nov 14 14:20:06.390 [FileAllocator] allocating new datafile c:\cleandb\test.1, filling with zeroes...
Wed Nov 14 14:20:06.390 [conn1] build index test.jstests_ora { _id: 1 }
Wed Nov 14 14:20:06.405 [conn1] build index done.  scanned 0 total records. 0.011 secs
Wed Nov 14 14:20:06.405 [conn1] insert test.jstests_ora keyUpdates:0 locks(micros) w:542781 546ms
Wed Nov 14 14:20:07.046 [conn1] info PageFaultRetryableSection will not yield, already locked upon reaching
Wed Nov 14 14:20:07.062 [conn1] command test.$cmd command: { count: "jstests_ora", query: { $or: [ { $where: "this.x === 2" } ] }, fields: {} } ntoreturn:1 keyUpdates:0 locks(micros) r:642686 reslen:48 640ms
Wed Nov 14 14:20:07.233 [FileAllocator] done allocating datafile c:\cleandb\test.1, size: 128MB,  took 0.838 secs
 
 
#
# Fatal error in c:\users\tad\documents\visual studio 2010\projects\mongodev\src\third_party\v8\src\objects-inl.h, line 1126
# CHECK(heap->isolate() == Isolate::Current()) failed
#

Stack trace:

>Debug.ListCallStack
 Index  Function
--------------------------------------------------------------------------------
*1      mongod_v8.exe!v8::internal::OS::DebugBreak() 
 2      mongod_v8.exe!v8::internal::OS::Abort() 
 3      mongod_v8.exe!V8_Fatal(const char * file=0x000000014103e740, int line=0x00000466, const char * format=0x0000000140ff5870, ...) 
 4      mongod_v8.exe!v8::internal::HeapObject::GetHeap() 
 5      mongod_v8.exe!v8::internal::Object::IsContext() 
 6      mongod_v8.exe!v8::internal::Context::cast(v8::internal::Object * context=0x00000000c2f14679) 
 7      mongod_v8.exe!v8::internal::GlobalObject::global_context() 
 8      mongod_v8.exe!v8::internal::Context::global_context() 
 9      mongod_v8.exe!v8::internal::Context::has_out_of_memory() 
 10     mongod_v8.exe!v8::Context::HasOutOfMemoryException() 
 11     mongod_v8.exe!mongo::V8Scope::hasOutOfMemoryException() 
 12     mongod_v8.exe!mongo::ScopeCache::done(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & pool="test.jstests_ora", mongo::Scope * s=0x0000000004f47000) 
 13     mongod_v8.exe!mongo::PooledScope::~PooledScope() 
 14     mongod_v8.exe!mongo::PooledScope::`scalar deleting destructor'() 
 15     mongod_v8.exe!std::auto_ptr<mongo::Scope>::~auto_ptr<mongo::Scope>() 
 16     mongod_v8.exe!mongo::Where::~Where() 
 17     mongod_v8.exe!mongo::Where::`scalar deleting destructor'() 
 18     mongod_v8.exe!mongo::Matcher::~Matcher() 
 19     mongod_v8.exe!mongo::Matcher::`scalar deleting destructor'() 
 20     mongod_v8.exe!boost::checked_delete<mongo::Matcher>(mongo::Matcher * x=0x0000000004fd3de0) 
 21     mongod_v8.exe!boost::detail::sp_counted_impl_p<mongo::Matcher>::dispose() 
 22     mongod_v8.exe!boost::detail::sp_counted_base::release() 
 23     mongod_v8.exe!boost::detail::shared_count::~shared_count() 
 24     mongod_v8.exe!boost::shared_ptr<mongo::Matcher>::~shared_ptr<mongo::Matcher>() 
 25     mongod_v8.exe!std::_List_nod<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::_Node::~_Node() 
 26     mongod_v8.exe!std::_List_nod<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::_Node::`scalar deleting destructor'() 
 27     mongod_v8.exe!std::_Destroy<std::_List_nod<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::_Node>(std::_List_nod<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::_Node * _Ptr=0x0000000004fd4570) 
 28     mongod_v8.exe!std::allocator<std::_List_nod<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::_Node>::destroy(std::_List_nod<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::_Node * _Ptr=0x0000000004fd4570) 
 29     mongod_v8.exe!std::_Dest_val<std::allocator<std::_List_nod<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::_Node>,std::_List_nod<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::_Node>(std::allocator<std::_List_nod<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::_Node> & _Alval={...}, std::_List_nod<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::_Node * _Pdest=0x0000000004fd4570) 
 30     mongod_v8.exe!std::list<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::clear() 
 31     mongod_v8.exe!std::list<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::_Tidy() 
 32     mongod_v8.exe!std::list<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >::~list<boost::shared_ptr<mongo::Matcher>,std::allocator<boost::shared_ptr<mongo::Matcher> > >() 
 33     mongod_v8.exe!mongo::Matcher::~Matcher() 
 34     mongod_v8.exe!mongo::Matcher::`scalar deleting destructor'() 
 35     mongod_v8.exe!boost::checked_delete<mongo::Matcher>(mongo::Matcher * x=0x0000000004fd37c0) 
 36     mongod_v8.exe!boost::detail::sp_counted_impl_p<mongo::Matcher>::dispose() 
 37     mongod_v8.exe!boost::detail::sp_counted_base::release() 
 38     mongod_v8.exe!boost::detail::shared_count::~shared_count() 
 39     mongod_v8.exe!boost::shared_ptr<mongo::Matcher>::~shared_ptr<mongo::Matcher>() 
 40     mongod_v8.exe!mongo::CoveredIndexMatcher::~CoveredIndexMatcher() 
 41     mongod_v8.exe!mongo::CoveredIndexMatcher::`scalar deleting destructor'() 
 42     mongod_v8.exe!boost::checked_delete<mongo::CoveredIndexMatcher>(mongo::CoveredIndexMatcher * x=0x0000000004fd3560) 
 43     mongod_v8.exe!boost::detail::sp_counted_impl_p<mongo::CoveredIndexMatcher>::dispose() 
 44     mongod_v8.exe!boost::detail::sp_counted_base::release() 
 45     mongod_v8.exe!boost::detail::shared_count::~shared_count() 
 46     mongod_v8.exe!boost::shared_ptr<mongo::CoveredIndexMatcher>::~shared_ptr<mongo::CoveredIndexMatcher>() 
 47     mongod_v8.exe!mongo::BasicCursor::~BasicCursor() 
 48     mongod_v8.exe!mongo::BasicCursor::`scalar deleting destructor'() 
 49     mongod_v8.exe!boost::checked_delete<mongo::BasicCursor>(mongo::BasicCursor * x=0x0000000004fd34a0) 
 50     mongod_v8.exe!boost::detail::sp_counted_impl_p<mongo::BasicCursor>::dispose() 
 51     mongod_v8.exe!boost::detail::sp_counted_base::release() 
 52     mongod_v8.exe!boost::detail::shared_count::~shared_count() 
 53     mongod_v8.exe!boost::shared_ptr<mongo::Cursor>::~shared_ptr<mongo::Cursor>() 
 54     mongod_v8.exe!mongo::runCount(const char * ns=0x0000000001c6c870, const mongo::BSONObj & cmd={...}, std::basic_string<char,std::char_traits<char>,std::allocator<char> > & err="", int & errCode=0xcccccccc) 
 55     mongod_v8.exe!mongo::CmdCount::run(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & dbname="test", mongo::BSONObj & cmdObj={...}, int __formal=0x00000000, std::basic_string<char,std::char_traits<char>,std::allocator<char> > & errmsg="", mongo::BSONObjBuilder & result={...}, int __formal=0x00000000) 
 56     mongod_v8.exe!mongo::_execCommand(mongo::Command * c=0x0000000141d5ea60, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & dbname="test", mongo::BSONObj & cmdObj={...}, int queryOptions=0x00000000, mongo::BSONObjBuilder & result={...}, bool fromRepl=false) 
 57     mongod_v8.exe!mongo::execCommand(mongo::Command * c=0x0000000141d5ea60, mongo::Client & client={...}, int queryOptions=0x00000000, const char * cmdns=0x0000000001c5e494, mongo::BSONObj & cmdObj={...}, mongo::BSONObjBuilder & result={...}, bool fromRepl=false) 
 58     mongod_v8.exe!mongo::_runCommands(const char * ns=0x0000000001c5e494, mongo::BSONObj & _cmdobj={...}, mongo::_BufBuilder<mongo::TrivialAllocator> & b={...}, mongo::BSONObjBuilder & anObjBuilder={...}, bool fromRepl=false, int queryOptions=0x00000000) 
 59     mongod_v8.exe!mongo::runCommands(const char * ns=0x0000000001c5e494, mongo::BSONObj & jsobj={...}, mongo::CurOp & curop={...}, mongo::_BufBuilder<mongo::TrivialAllocator> & b={...}, mongo::BSONObjBuilder & anObjBuilder={...}, bool fromRepl=false, int queryOptions=0x00000000) 
 60     mongod_v8.exe!mongo::runQuery(mongo::Message & m={...}, mongo::QueryMessage & q={...}, mongo::CurOp & curop={...}, mongo::Message & result={...}) 
 61     mongod_v8.exe!mongo::receivedQuery(mongo::Client & c={...}, mongo::DbResponse & dbresponse={...}, mongo::Message & m={...}) 
 62     mongod_v8.exe!mongo::assembleResponse(mongo::Message & m={...}, mongo::DbResponse & dbresponse={...}, const mongo::HostAndPort & remote={...}) 
 63     mongod_v8.exe!mongo::MyMessageHandler::process(mongo::Message & m={...}, mongo::AbstractMessagingPort * port=0x0000000001c58e30, mongo::LastError * le=0x0000000001c597d0) 
 64     mongod_v8.exe!mongo::pms::threadRun(mongo::MessagingPort * inPort=0x0000000001c58e30) 
 65     mongod_v8.exe!boost::_bi::list1<boost::_bi::value<mongo::MessagingPort * __ptr64> >::operator()<void (__cdecl*)(mongo::MessagingPort * __ptr64),boost::_bi::list0>(boost::_bi::type<void> __formal={...}, void (mongo::MessagingPort *)* & f=0x000000013fbb36b2, boost::_bi::list0 & a={...}, boost::_bi::type<void> __formal={...}) 
 66     mongod_v8.exe!boost::_bi::bind_t<void,void (__cdecl*)(mongo::MessagingPort * __ptr64),boost::_bi::list1<boost::_bi::value<mongo::MessagingPort * __ptr64> > >::operator()() 
 67     mongod_v8.exe!boost::detail::thread_data<boost::_bi::bind_t<void,void (__cdecl*)(mongo::MessagingPort * __ptr64),boost::_bi::list1<boost::_bi::value<mongo::MessagingPort * __ptr64> > > >::run() 
 68     mongod_v8.exe!boost::`anonymous namespace'::thread_start_function(void * param=0x000000000024ef30) 
 69     mongod_v8.exe!_callthreadstartex() 
 70     mongod_v8.exe!_threadstartex(void * ptd=0x0000000001c59380) 
 71     kernel32.dll!BaseThreadInitThunk() 
 72     ntdll.dll!RtlUserThreadStart() 
 
>

Comment by Tad Marshall [ 14/Nov/12 ]

Fix for SERVER-7617 reverted – https://github.com/mongodb/mongo/commit/789b09ef9bb6bb72a53953a364173f2aa5e48003 – fixing this.

Comment by Tad Marshall [ 14/Nov/12 ]

Crashes on Windows as well, but we don't get a stack trace for some reason.

 *******************************************
Wed Nov 14 09:56:46.451 [conn1] end connection 127.0.0.1:52760 (0 connections now open)
         Test : ora.js ...
      Command : C:\Users\Tad\Documents\Visual Studio 2010\Projects\mongodev\mongo.exe --port 27999 C:\Users\Tad\Documents\Visual Studio 2010\Projects\mongodev\jstests\ora.js --eval TestData = new Object();TestData.testPath = "C:\\Users\\Tad\\Documents\\Visual Studio 2010\\Projects\\mongodev\\jstests\\ora.js";TestData.testFile = "ora.js";TestData.testName = "ora";TestData.noJournal = false;TestData.noJournalPrealloc = false;TestData.auth = false;TestData.keyFile = null;TestData.keyFileData = null;
         Date : Wed Nov 14 09:56:46 2012
MongoDB shell version: 2.3.1-pre-
connecting to: 127.0.0.1:27999/test
Wed Nov 14 09:56:46.748 [initandlisten] connection accepted from 127.0.0.1:52761 #2 (1 connection now open)
null
Wed Nov 14 09:56:46.764 [conn2] CMD: drop test.jstests_ora
Wed Nov 14 09:56:46.764 [FileAllocator] allocating new datafile /data/db/sconsTests\test.ns, filling with zeroes...
Wed Nov 14 09:56:46.779 [FileAllocator] creating directory /data/db/sconsTests\_tmp
Wed Nov 14 09:56:46.826 [FileAllocator] done allocating datafile /data/db/sconsTests\test.ns, size: 16MB,  took 0.039 secs
Wed Nov 14 09:56:46.826 [FileAllocator] allocating new datafile /data/db/sconsTests\test.0, filling with zeroes...
Wed Nov 14 09:56:46.998 [FileAllocator] done allocating datafile /data/db/sconsTests\test.0, size: 64MB,  took 0.163 secs
Wed Nov 14 09:56:47.014 [FileAllocator] allocating new datafile /data/db/sconsTests\test.1, filling with zeroes...
Wed Nov 14 09:56:47.014 [conn2] build index test.jstests_ora { _id: 1 }
Wed Nov 14 09:56:47.014 [conn2] build index done.  scanned 0 total records. 0.002 secs
Wed Nov 14 09:56:47.014 [conn2] insert test.jstests_ora keyUpdates:0 locks(micros) w:244970 250ms
Wed Nov 14 09:56:47.107 [conn2] CMD: drop test.jstests_ora
Wed Nov 14 09:56:47.107 [conn2] build index test.jstests_ora { _id: 1 }
Wed Nov 14 09:56:47.107 [conn2] build index done.  scanned 0 total records. 0 secs
Wed Nov 14 09:56:47.107 [conn2] info: creating collection test.jstests_ora on add index
Wed Nov 14 09:56:47.107 [conn2] build index test.jstests_ora { loc: "2d" }
Wed Nov 14 09:56:47.123 [conn2] build index done.  scanned 0 total records. 0.001 secs
Wed Nov 14 09:56:47.123 [conn2] assertion 13291 $or may not contain 'special' query ns:test.jstests_ora query:{ $or: [ { loc: { $near: [ 11.0, 11.0 ] } } ] }
Wed Nov 14 09:56:47.123 [conn2]  ntoskip:0 ntoreturn:1
Wed Nov 14 09:56:47.123 [conn2] problem detected during query over test.jstests_ora : { $err: "$or may not contain 'special' query", code: 13291 }
Wed Nov 14 09:56:47.139 [conn2] end connection 127.0.0.1:52761 (0 connections now open)
Wed Nov 14 09:56:47.139 [conn2] *** unhandled exception (access violation) at 0x00000001401CAE85, terminating
 Wed Nov 14 09:56:47.139 [conn2] *** access violation was a write to 0x0000000000000000
Wed Nov 14 09:56:47.139 [conn2] *** stack trace for unhandled exception:
               625.000000ms
Wed Nov 14 09:56:47.154 [initandlisten] connection accepted from 127.0.0.1:52762 #3 (2 connections now open)
 
1 tests succeeded

Comment by Eric Milkie [ 13/Nov/12 ]

Solaris as well.

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