[SERVER-5407] segfault in memory.js/ Created: 26/Mar/12  Updated: 28/May/12  Resolved: 28/May/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: Tad Marshall
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux 32-bit, Nightly Linux 32-bit


Operating System: ALL
Participants:

 Description   

Mon Mar 26 11:21:42 [conn724] Clearing all idle JS contexts due to out of memory
Mon Mar 26 11:21:42 [conn724] command test.$cmd command: { $eval: "f1(100000000)" } ntoreturn:1 keyUpdates:0 reslen:114 18177ms
Mon Mar 26 11:21:53 Invalid access at address: 0x5 from thread: conn724
 
Mon Mar 26 11:21:53 Got signal: 11 (Segmentation fault).
 
Mon Mar 26 11:21:53 Backtrace:
0x8161aef 0x816222f 0x409440 0x874b3bf 0x874b460 0x874b460 0x874b460 0x874b460 0x874b460 0x874ba54 0x8826981 0x8728829 0x8826c5a 0x874c857 0x874d889 0x86c1b95 0x86c1bdc 0x86c1c89 0x82b8247 0x83285e5 
 /mnt/slaves/Linux_32bit/mongo/mongod(_ZN5mongo10abruptQuitEi+0x3bf) [0x8161aef]
 /mnt/slaves/Linux_32bit/mongo/mongod(_ZN5mongo24abruptQuitWithAddrSignalEiP7siginfoPv+0x2af) [0x816222f]
 [0x409440]
 /mnt/slaves/Linux_32bit/mongo/mongod [0x874b3bf]
 /mnt/slaves/Linux_32bit/mongo/mongod [0x874b460]
 /mnt/slaves/Linux_32bit/mongo/mongod [0x874b460]
 /mnt/slaves/Linux_32bit/mongo/mongod [0x874b460]
 /mnt/slaves/Linux_32bit/mongo/mongod [0x874b460]
 /mnt/slaves/Linux_32bit/mongo/mongod [0x874b460]
 /mnt/slaves/Linux_32bit/mongo/mongod [0x874ba54]
 /mnt/slaves/Linux_32bit/mongo/mongod [0x8826981]
 /mnt/slaves/Linux_32bit/mongo/mongod(JS_HashTableEnumerateEntries+0x69) [0x8728829]
 /mnt/slaves/Linux_32bit/mongo/mongod(js_MarkAtomState+0x4a) [0x8826c5a]
 /mnt/slaves/Linux_32bit/mongo/mongod(js_GC+0x217) [0x874c857]
 /mnt/slaves/Linux_32bit/mongo/mongod(js_NewGCThing+0x109) [0x874d889]
 /mnt/slaves/Linux_32bit/mongo/mongod(js_NewDouble+0x35) [0x86c1b95]
 /mnt/slaves/Linux_32bit/mongo/mongod(js_NewDoubleValue+0x2c) [0x86c1bdc]
 /mnt/slaves/Linux_32bit/mongo/mongod(js_NewNumberValue+0x89) [0x86c1c89]
 /mnt/slaves/Linux_32bit/mongo/mongod [0x82b8247]
 /mnt/slaves/Linux_32bit/mongo/mongod(js_Invoke+0x3b5) [0x83285e5]

http://buildbot.mongodb.org/builders/Linux%2032-bit/builds/4457/steps/test_6/logs/stdio



 Comments   
Comment by Antoine Girbal [ 03/Apr/12 ]

the code for spidermonkey has changed very little in past months, I'll review the changes.
It may be an old issue that's only showing up now that we use more of the JS heap and GC actually kicks in.
It could be an issue with jsval objects not properly rooted/unrooted.

Comment by Ian Whalen (Inactive) [ 02/Apr/12 ]

Also just showed up in sharding_passthrough: http://buildbot.mongodb.org/builders/Nightly%20Linux%2064-bit/builds/926/steps/test_1/logs/stdio

Comment by Antoine Girbal [ 28/Mar/12 ]

segv in SM's GC when trying to use more than the memory limit..
will try to reproduce on linux 32b see if it happens often.

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