[SERVER-5964] invoke failed in evald.js Created: 30/May/12  Updated: 11/Jun/12  Resolved: 11/Jun/12

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

Type: Bug Priority: Major - P3
Reporter: Ian Whalen (Inactive) Assignee: Antoine Girbal
Resolution: Cannot Reproduce Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

sh19970| connecting to: 127.0.0.1:30100/test
sh19970| Wed May 30 07:15:17 exec error: src/mongo/shell/db.js:477 {
sh19970| 	"errno" : 1,
sh19970| 	"errmsg" : "invoke failed: error in invoke: _funcs1:0 Interruption in V8 native callback\n_funcs1 = function(){ while( true ) { sleep(1);}}\n                                      ^\n",
sh19970| 	"ok" : 0
sh19970| }
sh19970| throw tojson( res );
sh19970|       ^

http://buildbot.mongodb.org/builders/Nightly%20Linux%2064-bit%20v8/builds/895/steps/test_1/logs/stdio



 Comments   
Comment by Antoine Girbal [ 31/May/12 ]

The interruption error is normal since the test kills commands.
Looks like one of the interruption triggered a segv which made test fail:

 m30100| Wed May 30 07:15:17 [conn56] command test.$cmd command: { $eval: "while( true ) { sleep(1);}" } ntoreturn:1 keyUpdates:0 reslen:232 2148ms
sh19970| connecting to: 127.0.0.1:30100/test
sh19970| Wed May 30 07:15:17 exec error: src/mongo/shell/db.js:477 {
sh19970| 	"errno" : 1,
sh19970| 	"errmsg" : "invoke failed: error in invoke: _funcs1:0 Interruption in V8 native callback\n_funcs1 = function(){ while( true ) { sleep(1);}}\n                                      ^\n",
sh19970| 	"ok" : 0
sh19970| }
sh19970| throw tojson( res );
sh19970|       ^
sh19970| 
 m30100| Wed May 30 07:15:17 [conn56] end connection 127.0.0.1:37645 (1 connection now open)
Wed May 30 07:15:18 shell: started program /data/slave/Linux_64bit_v8_Nightly/mongo/mongo --eval TestData = {
	"testPath" : "/data/slave/Linux_64bit_v8_Nightly/mongo/jstests/slowNightly/dur_passthrough.js",
	"testFile" : "dur_passthrough.js",
	"testName" : "dur_passthrough",
	"noJournal" : false,
	"noJournalPrealloc" : false,
	"auth" : false,
	"keyFile" : null,
	"keyFileData" : null
};jsTest.authenticate(db.getMongo());db.eval( 'while( 1 ) { for( var i = 0; i < 10000; ++i ) {;} db.jstests_evald.count( {i:10} ); }' ) 127.0.0.1:30100
Wed May 30 07:15:20 [conn19] end connection 127.0.0.1:38198 (0 connections now open)
sh19975| MongoDB shell version: 2.1.2-pre-
 m30100| Wed May 30 07:15:18 [initandlisten] connection accepted from 127.0.0.1:37646 #57 (2 connections now open)
 m30100| Wed May 30 07:15:18 [clientcursormon] mem (MB) res:91 virt:8017 mapped:512
 m30100| Wed May 30 07:15:18 [clientcursormon] warning virtual/mapped memory differential is large. journaling:1
 m30100| Wed May 30 07:15:20 [conn1] going to kill op: op: 1243216.0
 m30100| Wed May 30 07:15:20 Invalid access at address: 0 from thread: conn57
 m30100| 
 m30100| Wed May 30 07:15:20 Got signal: 11 (Segmentation fault).
 m30100| 
 m30100| Wed May 30 07:15:20 Backtrace:
 m30100| 0x580f26 0x55e5bd 0x55e927 0x7fe8c9aeb490 0x9fd388 0x734dd1 0x73c85e 0x9794fc 0x7388b6 0x16484694212a 
 m30100|  /data/slave/Linux_64bit_v8_Nightly/mongo/mongod(_ZN5mongo15printStackTraceERSo+0x26) [0x580f26]
 m30100|  /data/slave/Linux_64bit_v8_Nightly/mongo/mongod(_ZN5mongo10abruptQuitEi+0x39d) [0x55e5bd]
 m30100|  /data/slave/Linux_64bit_v8_Nightly/mongo/mongod(_ZN5mongo24abruptQuitWithAddrSignalEiP7siginfoPv+0x247) [0x55e927]
 m30100|  /lib64/libpthread.so.0(+0xf490) [0x7fe8c9aeb490]
 m30100|  /data/slave/Linux_64bit_v8_Nightly/mongo/mongod() [0x9fd388]
 m30100|  /data/slave/Linux_64bit_v8_Nightly/mongo/mongod(_ZN5mongo7V8Scope14wrapBSONObjectEN2v85LocalINS1_6ObjectEEEPNS_10BSONHolderE+0x31) [0x734dd1]
 m30100|  /data/slave/Linux_64bit_v8_Nightly/mongo/mongod(_ZN5mongo7V8Scope11mongoToLZV8ERKNS_7BSONObjEbb+0x2fe) [0x73c85e]
 m30100|  /data/slave/Linux_64bit_v8_Nightly/mongo/mongod(_ZN5mongo18internalCursorNextEPNS_7V8ScopeERKN2v89ArgumentsE+0x14c) [0x9794fc]
 m30100|  /data/slave/Linux_64bit_v8_Nightly/mongo/mongod(_ZN5mongo7V8Scope10v8CallbackERKN2v89ArgumentsE+0x76) [0x7388b6]
 m30100|  [0x16484694212a]
 m30100| 
sh19975| connecting to: 127.0.0.1:30100/test
sh19975| Wed May 30 07:15:20 DBClientCursor::init call() failed
sh19975| Wed May 30 07:15:20 exec error: src/mongo/shell/collection.js:154 error doing query: failed
sh19975| var cursor = this._mongo.find( this._fullName , this._massageObject( query ) |
sh19975|                          ^
sh19975| 
Wed May 30 07:15:20 shell: started program /data/slave/Linux_64bit_v8_Nightly/mongo/mongo --eval TestData = {
	"testPath" : "/data/slave/Linux_64bit_v8_Nightly/mongo/jstests/slowNightly/dur_passthrough.js",
	"testFile" : "dur_passthrough.js",
	"testName" : "dur_passthrough",
	"noJournal" : false,
	"noJournalPrealloc" : false,
	"auth" : false,
	"keyFile" : null,
	"keyFileData" : null
};jsTest.authenticate(db.getMongo());db.eval( 'while( 1 ) { for( var i = 0; i < 10000; ++i ) {;} db.jstests_evald.count( {i:10} ); }' ) 127.0.0.1:30100
Wed May 30 07:15:20 DBClientCursor::init call() failed
Wed May 30 07:15:20 exec error: src/mongo/shell/collection.js:154 error doing query: failed
var cursor = this._mongo.find( this._fullName , this._massageObject( query ) |
                         ^
 
dur_passthrough.js FAIL
dur_passthrough.js failed test : jstests/evald.js

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