<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:52:55 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-20027] MongoDB 3.0.3 Segfault after jscmd error</title>
                <link>https://jira.mongodb.org/browse/SERVER-20027</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2015-08-18T15:03:53+00:00 rs0db2 mongod.27018[66032]: [ID 702911 local7.error] [conn32213] ReferenceError: _$jscmd is not defined#012    at _funcs9 (_funcs9:2:17) near &apos;if (_$jscmd(&quot;api/models/concerns/se&apos;  (line 2)#012&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2015-08-18T15:03:53+00:00 rs0db2 mongod.27018[66032]: [ID 702911 local7.crit] [conn32213] Invalid access at address: 0#012&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2015-08-18T15:03:53+00:00 rs0db2 mongod.27018[66032]: [ID 702911 local7.crit] [conn32213] Got signal: 11 (Segmentation Fault).#012#012 0x14b5ef2 0x14b55a3 0x14b5cfe 0xfffffd7fff165176 0xfffffd7fff157f2b 0x1548fe0 0x1403454 0x14038d2 0x13fa4b1 0x13fa4e1 0xa807d9 0x13f334c 0x13f3de1 0xcae6af 0xcb2cb9 0xd4538c 0xd464df 0x&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;d4733e 0xfca785 0xe83b54 0xa8555e 0x14571f1 0xfffffd7fef354816 0xfffffd7fff164d9a 0xfffffd7fff1650b0#012----- BEGIN BACKTRACE -----#012{&quot;backtrace&quot;:[{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;10B5EF2&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;10B55A3&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;10B5CFE&quot;},{&quot;b&quot;:&quot;FFFFFD7FFF050000&quot;,&quot;o&quot;:&quot;115176&quot;},{&quot;b&quot;:&quot;FFFFFD7FFF050000&quot;,&quot;o&quot;:&quot;107F2B&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;1148FE0&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;1003454&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;10038D2&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;FFA4B1&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;FFA4E1&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;6807D9&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;FF334C&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;FF3DE1&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;8AE6AF&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;8B2CB9&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;94538C&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;:&quot;9464DF&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;94733E&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;BCA785&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot; [...]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;SunOS rs0db1.us-east-2 5.11 joyent_20150617T074149Z i86pc i386 i86pc Solaris&lt;/p&gt;</description>
                <environment></environment>
        <key id="226246">SERVER-20027</key>
            <summary>MongoDB 3.0.3 Segfault after jscmd error</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="sam.kleinman">Sam Kleinman</assignee>
                                    <reporter username="chris@selfie.com">Christopher Neill</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Aug 2015 15:24:51 +0000</created>
                <updated>Fri, 29 Jan 2016 13:23:58 +0000</updated>
                            <resolved>Tue, 25 Aug 2015 20:32:55 +0000</resolved>
                                    <version>3.0.3</version>
                                                    <component>JavaScript</component>
                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1157749" author="ramon.fernandez" created="Fri, 29 Jan 2016 13:23:58 +0000"  >&lt;p&gt;For the record, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-22334&quot; title=&quot;mongod crashes on map_reduce call at AdjustAmountOfExternalAllocatedMemory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-22334&quot;&gt;&lt;del&gt;SERVER-22334&lt;/del&gt;&lt;/a&gt; shows how a missing &quot;var&quot; keyword in the JS code could trigger this issue.  &lt;a href=&quot;https://docs.mongodb.org/manual/release-notes/3.2/#spidermonkey-javascript-engine&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB 3.2 uses SpiderMonkey as the JavaScript engine&lt;/a&gt; an it handles this case better than V8.&lt;/p&gt;</comment>
                            <comment id="1015459" author="nick.wisse@10gen.com" created="Wed, 26 Aug 2015 21:37:27 +0000"  >&lt;p&gt;Thanks Sam&lt;/p&gt;

&lt;p&gt;On Wed, Aug 26, 2015 at 5:29 PM, Sam Kleinman (JIRA) &amp;lt;jira@mongodb.org&amp;gt;&lt;/p&gt;




&lt;p&gt;&amp;#8211; &lt;/p&gt;

{ name  : &quot;Nick Wisse&quot;,

  title   : &quot;Corporate Account Executive&quot;,

 phone : &quot;+1 (866) 237-8815 Ext. 7143&quot;,

 email  : &quot;nick.wisse@MongoDB.com &amp;lt;nick.wisse@10gen.com&amp;gt;[image: Look up in
Salesforce]&quot;,

 location : &quot;New York, NY&quot;,

 twitter  : [&quot;@NickMongoDB &amp;lt;https://twitter.com/NickMongoDB&amp;gt;&quot;, &quot;@M
&amp;lt;https://twitter.com/mongodb&amp;gt;ongoDBinc&quot;],
 facebook : [&quot;MongoDB &amp;lt;https://www.facebook.com/mongodb&amp;gt;&quot;] }

&lt;p&gt;Hot New News:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;*MongoDB 3.0 has been released!&lt;br/&gt;
   &amp;lt;&lt;a href=&quot;http://www.mongodb.com/blog/post/announcing-mongodb-30&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.com/blog/post/announcing-mongodb-30&lt;/a&gt;&amp;gt;*&lt;/li&gt;
	&lt;li&gt;MongoDB Acquires WiredTiger &amp;lt;&lt;a href=&quot;http://www.mongodb.com/press/wired-tiger&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.com/press/wired-tiger&lt;/a&gt;&amp;gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1015132" author="chris@selfie.com" created="Wed, 26 Aug 2015 17:02:42 +0000"  >&lt;p&gt;Sorry to bother you, but none of those conditions apply, we are not using a newer compiler and certainly not Linux:&lt;/p&gt;

&lt;p&gt;Information for &lt;a href=&quot;http://10.117.69.27/2015Q1/mongodb-3.0.3.tgz:&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://10.117.69.27/2015Q1/mongodb-3.0.3.tgz:&lt;/a&gt;&lt;br/&gt;
Build information:&lt;br/&gt;
ABI=64&lt;br/&gt;
BUILD_DATE=2015-07-10 21:36:25 +0000&lt;br/&gt;
BUILD_HOST=SunOS pkgsrc-pbulk-2014Q4-1.local 5.11 joyent_20141030T081701Z i86pc i386 i86pc&lt;br/&gt;
CATEGORIES=databases&lt;br/&gt;
CC_VERSION=gcc-4.9.2&lt;br/&gt;
CFLAGS=-O2 -pipe -O2 -I/opt/local/include -I/usr/include&lt;br/&gt;
CPPFLAGS= -fno-jump-tables   -I/opt/local/include -I/usr/include&lt;br/&gt;
FFLAGS=-O&lt;br/&gt;
HOMEPAGE=&lt;a href=&quot;http://mongodb.org/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://mongodb.org/&lt;/a&gt;&lt;br/&gt;
LDFLAGS=   -L/opt/local/gcc49/lib/gcc/x86_64-sun-solaris2.11/4.9.2 -Wl,-R/opt/local/gcc49/lib/gcc/x86_64-sun-solaris2.11/4.9.2 -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -lnsl -lsocket&lt;br/&gt;
LICENSE=gnu-agpl-v3&lt;br/&gt;
LOCALBASE=/opt/local&lt;br/&gt;
MACHINE_ARCH=x86_64&lt;br/&gt;
MACHINE_GNU_ARCH=x86_64&lt;br/&gt;
MAINTAINER=bartosz.kuzma@gmail.com&lt;br/&gt;
MONGODB_DBPATH=/var/mongodb&lt;br/&gt;
MONGODB_GROUP=mongodb&lt;br/&gt;
MONGODB_LOGPATH=/var/log/mongodb&lt;br/&gt;
MONGODB_USER=mongodb&lt;br/&gt;
NO_BIN_ON_CDROM=&lt;br/&gt;
NO_BIN_ON_FTP=&lt;br/&gt;
NO_SRC_ON_CDROM=&lt;br/&gt;
NO_SRC_ON_FTP=&lt;br/&gt;
OBJECT_FMT=ELF&lt;br/&gt;
OPSYS=SunOS&lt;br/&gt;
OS_VERSION=5.11&lt;br/&gt;
PKGGNUDIR=&lt;br/&gt;
PKGINFODIR=info&lt;br/&gt;
PKGMANDIR=man&lt;br/&gt;
PKGPATH=joyent/mongodb30&lt;br/&gt;
PKGTOOLS_VERSION=20091115&lt;br/&gt;
PKG_OPTIONS=ssl&lt;br/&gt;
PKG_SYSCONFBASEDIR=/opt/local/etc&lt;br/&gt;
PKG_SYSCONFDIR=/opt/local/etc&lt;br/&gt;
REQUIRES=/lib/amd64/libc.so.1&lt;br/&gt;
REQUIRES=/lib/amd64/libdl.so.1&lt;br/&gt;
REQUIRES=/lib/amd64/libm.so.2&lt;br/&gt;
REQUIRES=/lib/amd64/libnsl.so.1&lt;br/&gt;
REQUIRES=/lib/amd64/libpthread.so.1&lt;br/&gt;
REQUIRES=/lib/amd64/libresolv.so.2&lt;br/&gt;
REQUIRES=/lib/amd64/librt.so.1&lt;br/&gt;
REQUIRES=/lib/amd64/libsocket.so.1&lt;br/&gt;
REQUIRES=/lib/amd64/libumem.so.1&lt;br/&gt;
REQUIRES=/opt/local/gcc49/x86_64-sun-solaris2.11/lib/amd64/libgcc_s.so.1&lt;br/&gt;
REQUIRES=/opt/local/gcc49/x86_64-sun-solaris2.11/lib/amd64/libstdc++.so.6&lt;br/&gt;
REQUIRES=/opt/local/lib/libboost_filesystem.so.1.57.0&lt;br/&gt;
REQUIRES=/opt/local/lib/libboost_program_options.so.1.57.0&lt;br/&gt;
REQUIRES=/opt/local/lib/libboost_system.so.1.57.0&lt;br/&gt;
REQUIRES=/opt/local/lib/libboost_thread.so.1.57.0&lt;br/&gt;
REQUIRES=/opt/local/lib/libcrypto.so.1.0.0&lt;br/&gt;
REQUIRES=/opt/local/lib/libpcap.so.0&lt;br/&gt;
REQUIRES=/opt/local/lib/libpcre.so.1&lt;br/&gt;
REQUIRES=/opt/local/lib/libpcrecpp.so.0&lt;br/&gt;
REQUIRES=/opt/local/lib/libsnappy.so.1&lt;br/&gt;
REQUIRES=/opt/local/lib/libssl.so.1.0.0&lt;br/&gt;
REQUIRES=/usr/lib/amd64/liblgrp.so.1&lt;br/&gt;
RESTRICTED=&lt;br/&gt;
SSLBASE=/opt/local&lt;br/&gt;
SSLCERTS=/opt/local/etc/openssl/certs&lt;br/&gt;
SSLDIR=/opt/local/etc/openssl&lt;br/&gt;
SSLKEYS=/opt/local/etc/openssl/private&lt;br/&gt;
VARBASE=/var&lt;br/&gt;
_PLIST_IGNORE_FILES=&lt;br/&gt;
_USE_DESTDIR=user-destdir&lt;/p&gt;</comment>
                            <comment id="1014336" author="samk" created="Tue, 25 Aug 2015 20:32:31 +0000"  >&lt;p&gt;Sorry for not getting back to you sooner. &lt;/p&gt;

&lt;p&gt;We see errors around &lt;tt&gt;AdjustAmountOfExternalAllocatedMemory&lt;/tt&gt; in situations with newer compilers (e.g. GCC 5.2) that are incompatible with the version of V8 embedded in MongoDB, as well as deployments with some SELinux/grsecurity policies affecting memory use. You could experiment with your security policy settings and and the standard build if you are not using this build already.&lt;/p&gt;

&lt;p&gt;Starting in the 3.1.7 development release for the 3.2.0 stable release, MongoDB no longer embeds the V8 JavaScript engine, which should resolve this issue.&lt;/p&gt;

&lt;p&gt;Also, you may have some luck addressing questions like these to the &lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user forum&lt;/a&gt; for help with additional troubleshooting and support. I&apos;m going to go ahead and close this issue, but feel free to reopen if you have more information, or are able to reproduce without security policies that restrict memory use and the standard build.&lt;/p&gt;</comment>
                            <comment id="1014184" author="chris@selfie.com" created="Tue, 25 Aug 2015 18:20:52 +0000"  >&lt;p&gt;Requesting a status update.&lt;/p&gt;</comment>
                            <comment id="1013477" author="chris@selfie.com" created="Tue, 25 Aug 2015 01:16:16 +0000"  >&lt;p&gt;From Joyent Support:&lt;/p&gt;

&lt;p&gt;Max Bruning (Joyent Support)&lt;br/&gt;
Aug 24, 16:46&lt;/p&gt;

&lt;p&gt;Hi Chris,&lt;/p&gt;

&lt;p&gt;From running, in the global zone:&lt;/p&gt;

&lt;p&gt;$ dtrace -w -n &apos;proc:::signal-handle/pid == $target &amp;amp;&amp;amp; args&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; == 11 &amp;amp;&amp;amp; args&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;/&lt;/p&gt;
{print(*args[1]); ustack(); stop();}
&lt;p&gt;&apos; -p 70914&lt;br/&gt;
dtrace: description &apos;proc:::signal-handle&apos; matched 1 probe&lt;br/&gt;
dtrace: allowing destructive actions&lt;br/&gt;
I see:&lt;/p&gt;

&lt;p&gt;CPU     ID                    FUNCTION:NAME&lt;br/&gt;
 12  13728               psig:signal-handle siginfo_t {&lt;br/&gt;
    int si_signo = 0xb&lt;br/&gt;
    int si_code = 0x1&lt;br/&gt;
    int si_errno = 0&lt;br/&gt;
    int si_pad = 0&lt;br/&gt;
    union __data = {&lt;br/&gt;
        int &lt;span class=&quot;error&quot;&gt;&amp;#91;60&amp;#93;&lt;/span&gt; __pad = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2000c003, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xd1882e22, 0xddec3d, 0, 0, 0x520633fb, 0xdded95, 0x15d67519, 0x3, 0xa0350298, 0 ]&lt;br/&gt;
        struct __proc = {&lt;br/&gt;
            pid_t __pid = 0&lt;br/&gt;
            union __pdata = {&lt;br/&gt;
                struct __kill = {&lt;br/&gt;
                    uid_t __uid = 0&lt;br/&gt;
                    union sigval __value = &lt;/p&gt;
{
                        int sival_int = 0
                        void *sival_ptr = 0
                    }
&lt;p&gt;                }&lt;br/&gt;
                struct __cld = &lt;/p&gt;
{
                    clock_t __utime = 0
                    int __status = 0
                    clock_t __stime = 0
                }
&lt;p&gt;            }&lt;br/&gt;
            ctid_t __ctid = 0&lt;br/&gt;
            zoneid_t __zoneid = 0&lt;br/&gt;
        }&lt;br/&gt;
        struct __fault = &lt;/p&gt;
{
            void *__addr = 0
            int __trapno = 0
            caddr_t __pc = 0
        }
&lt;p&gt;        struct __file = &lt;/p&gt;
{
            int __fd = 0
            long __band = 0
        }
&lt;p&gt;        struct __prof = {&lt;br/&gt;
            caddr_t __faddr = 0&lt;br/&gt;
            timestruc_t __tstamp = &lt;/p&gt;
{
                time_t tv_sec = 0
                long tv_nsec = 0
            }
&lt;p&gt;            short __syscall = 0&lt;br/&gt;
            char __nsysarg = &apos;\0&apos;&lt;br/&gt;
            char __fault = &apos;\0&apos;&lt;br/&gt;
            long &lt;span class=&quot;error&quot;&gt;&amp;#91;8&amp;#93;&lt;/span&gt; __sysarg = [ 0, 0x2000c003, 0, 0, 0, 0, 0, 0 ]&lt;br/&gt;
            int &lt;span class=&quot;error&quot;&gt;&amp;#91;10&amp;#93;&lt;/span&gt; __mstate = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]&lt;br/&gt;
        }&lt;br/&gt;
        struct __rctl = &lt;/p&gt;
{
            int32_t __entity = 0
        }
&lt;p&gt;    }&lt;br/&gt;
}&lt;br/&gt;
              mongod`_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x20&lt;br/&gt;
              mongod`_ZN5boost6detail17sp_counted_impl_pIN5mongo10BSONHolderEE7disposeEv+0x34&lt;br/&gt;
              mongod`_ZN5mongo10ObjTrackerINS_10BSONHolderEED1Ev+0x92&lt;br/&gt;
              mongod`_ZN5mongo7V8ScopeD1Ev+0x161&lt;br/&gt;
              mongod`_ZN5mongo7V8ScopeD0Ev+0x11&lt;br/&gt;
              mongod`_ZN5boost6detail12shared_countD1Ev+0x39&lt;br/&gt;
              mongod`_ZN5mongo11PooledScopeD1Ev+0xdc&lt;br/&gt;
              mongod`_ZN5mongo11PooledScopeD0Ev+0x11&lt;br/&gt;
              mongod`_ZN5mongo2mr5StateD1Ev+0x6f&lt;br/&gt;
              mongod`_ZN5mongo2mr16MapReduceCommand3runEPNS_16OperationContextERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x14f9&lt;br/&gt;
              mongod`_ZN5mongo12_execCommandEPNS_16OperationContextEPNS_7CommandERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x2c&lt;br/&gt;
              mongod`_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_iPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0xecf&lt;br/&gt;
              mongod`_ZN5mongo12_runCommandsEPNS_16OperationContextEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x57e&lt;br/&gt;
              mongod`&lt;em&gt;ZN5mongo8runQueryEPNS_16OperationContextERNS_7MessageERNS_12QueryMessageERKNS_15NamespaceStringERNS_5CurOpES3&lt;/em&gt;+0x1f45&lt;br/&gt;
              mongod`_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xba4&lt;br/&gt;
              mongod`_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xee&lt;br/&gt;
              mongod`_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x321&lt;br/&gt;
              libboost_thread.so.1.57.0`thread_proxy+0x66&lt;br/&gt;
              libc.so.1`_thrp_setup+0x8a&lt;br/&gt;
              libc.so.1`_lwp_start&lt;/p&gt;


&lt;p&gt;After this, I ran&lt;/p&gt;

&lt;p&gt;$ gcore 70914&lt;br/&gt;
Once gcore finished, I ran&lt;/p&gt;

&lt;p&gt;$ prun 70914&lt;/p&gt;

&lt;p&gt;to get mongod to continue from its stopped state.&lt;/p&gt;

&lt;p&gt;Using mdb on the core file (and from the stack backtrace shown above via DTrace, it is dying at&lt;/p&gt;

&lt;p&gt; mongod`_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x20&lt;br/&gt;
This is:&lt;/p&gt;

&lt;p&gt;_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x20/ai&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x20:                cmpl   $0x1,(%rax)&lt;/p&gt;

&lt;p&gt;The %rax register should be a pointer to thread specific data, but it is null. mongod is dying because of using a null pointer.&lt;br/&gt;
The %rax register is used to pass return values from function calls.&lt;/p&gt;

&lt;p&gt;_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x20::dis&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl:     pushq  %rbp&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+1:   movq   %rsp,%rbp&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+4:   pushq  %r13&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+6:   pushq  %r12&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+8:   pushq  %rbx&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+9:   movq   %rdi,%r13&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0xc: subq   $0x8,%rsp&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x10:movq   +0x62a7c1(%rip),%r12     &amp;lt;0x1b73798&amp;gt;&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x17:movl   (%r12),%edi&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x1b:call   +0x189ef0      &amp;lt;_ZN2v88internal6Thread14GetThreadLocalENS1_15LocalStorageKeyE&amp;gt;&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x20:cmpl   $0x1,(%rax)&lt;br/&gt;
The %rax value at this location is the return value from&lt;/p&gt;

&lt;p&gt;call   +0x189ef0        &amp;lt;_ZN2v88internal6Thread14GetThreadLocalENS1_15LocalStorageKeyE&amp;gt;&lt;br/&gt;
and _ZN2v88internal6Thread14GetThreadLocalENS1_15LocalStorageKeyE is:&lt;/p&gt;

&lt;p&gt;_ZN2v88internal6Thread14GetThreadLocalENS1_15LocalStorageKeyE::dis&lt;br/&gt;
_ZN2v88internal6Thread14GetThreadLocalENS1_15LocalStorageKeyE:  jmp    -0xc5827d        &amp;lt;PLT=libc.so.1`pthread_getspecific&amp;gt;&lt;/p&gt;

&lt;p&gt;So pthread_getspecific is returning a NULL for some piece of thread specific data, and _ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x20 tries to indirect through that causing a segv.&lt;/p&gt;

&lt;p&gt;_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl is:&lt;/p&gt;

&lt;p&gt;&amp;gt; ::dem _ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl&lt;br/&gt;
_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl == v8::V8::AdjustAmountOfExternalAllocatedMemory&lt;/p&gt;

&lt;p&gt;Searching for &quot;mongodb AdjustAmountOfExternalAllocatedMemory segmentation violation&quot; shows a few hits, but not quite the same.&lt;/p&gt;</comment>
                            <comment id="1009973" author="chris@selfie.com" created="Wed, 19 Aug 2015 19:46:09 +0000"  >&lt;p&gt;FYI - per Joyent&apos;s recommendation, we doubled the size of the replica set members to go from 4GB to 8GB of RAM. Same thing:&lt;/p&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@logger1 us-east-2 /var/log/mongodb&amp;#93;&lt;/span&gt;# grep crit mongodb-remote.log &lt;br/&gt;
2015-08-19T19:29:20+00:00 rs0db1 mongod.27018&lt;span class=&quot;error&quot;&gt;&amp;#91;33668&amp;#93;&lt;/span&gt;: &lt;span class=&quot;error&quot;&gt;&amp;#91;ID 702911 local7.crit&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;conn399&amp;#93;&lt;/span&gt; Invalid access at address: 0#012&lt;br/&gt;
2015-08-19T19:29:20+00:00 rs0db1 mongod.27018&lt;span class=&quot;error&quot;&gt;&amp;#91;33668&amp;#93;&lt;/span&gt;: &lt;span class=&quot;error&quot;&gt;&amp;#91;ID 702911 local7.crit&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;conn399&amp;#93;&lt;/span&gt; Got signal: 11 (Segmentation Fault).#012#012 0x14b5ef2 0x14b55a3 0x14b5cfe 0xfffffd7fff1679f6 0xfffffd7fff15a66b 0x1548fe0 0x1403454 0x14038d2 0x13fa4b1 0x13fa4e1 0xa807d9 0x13f334c 0x13f3de1 0xcae6af 0xcb2cb9 0xd4538c 0xd464df 0xd4733e 0xfca785 0xe83b54 0xa8555e 0x14571f1 0xfffffd7ff71b4816 0xfffffd7fff16761a 0xfffffd7fff167930#012----- BEGIN BACKTRACE -----#012{&quot;backtrace&quot;:[&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;10B5EF2&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;10B55A3&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;10B5CFE&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;FFFFFD7FFF050000&quot;,&quot;o&quot;:&quot;1179F6&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;FFFFFD7FFF050000&quot;,&quot;o&quot;:&quot;10A66B&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;1148FE0&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;1003454&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;10038D2&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;FFA4B1&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;FFA4E1&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;6807D9&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;FF334C&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;FF3DE1&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;8AE6AF&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;8B2CB9&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;94538C&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;9464DF&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;94733E&quot;}
&lt;p&gt;,&lt;/p&gt;
{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;BCA785&quot;}
&lt;p&gt;,{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 25 Aug 2015 20:32:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 2 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 2 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>chris@selfie.com</customfieldvalue>
            <customfieldvalue>nick.wisse</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkwyv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hscmbj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl03r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>