<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:27:08 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-11937] Crash in the js shell when using runProgram several times</title>
                <link>https://jira.mongodb.org/browse/SERVER-11937</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When using runProgram or run several times, for example with this script :&lt;/p&gt;

&lt;p&gt;for (var i = 0; i&amp;lt; 1000; i++) {&lt;br/&gt;
	run(&quot;echo&quot;, &quot;test&quot;);&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;the shell crashes with this error :&lt;br/&gt;
Tue Dec  3 17:31:04   Assertion failure pipe( pipeEnds ) != -1 shell/shell_utils.cpp 431&lt;br/&gt;
0x47884f 0x491d13 0x493aa9 0x48a89a 0x485e24 0x4d53f0 0x5237cc 0x50decd 0x5237cc 0x51741c 0x5231b9 0x4e3d8a 0x4e3e12 0x4e3e8e 0x4df627 0x475086 0x46ccee 0x7fab2f5fe76d 0x46f7d9 &lt;br/&gt;
 mongo(_ZN5mongo15printStackTraceERSo+0x1f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x47884f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo12sayDbContextEPKc+0xc3) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x491d13&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo8assertedEPKcS1_j+0xf9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x493aa9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x48a89a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo10shellUtils10RunProgramERKNS_7BSONObjEPv+0x24) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x485e24&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(&lt;em&gt;ZN5mongo13native_helperEP9JSContextP8JSObjectjPlS4&lt;/em&gt;+0x480) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4d53f0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_Invoke+0x4bc) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5237cc&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x50decd&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_Invoke+0x4bc) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5237cc&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_Interpret+0x121c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x51741c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_Execute+0x269) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5231b9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(JS_EvaluateUCScriptForPrincipals+0x6a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4e3d8a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(JS_EvaluateUCScript+0x22) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4e3e12&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(JS_EvaluateScript+0x6e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4e3e8e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo7SMScope4execERKNS_10StringDataERKSsbbbi+0x107) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4df627&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_Z5_mainiPPc+0x1a96) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x475086&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(main+0x1e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x46ccee&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fab2f5fe76d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x46f7d9&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Dec  3 17:31:04 Error: assertion shell/shell_utils.cpp:431 (anon):1&lt;br/&gt;
Tue Dec  3 17:31:04 Socket say send() errno:32 Broken pipe 10.0.1.172:27017&lt;/p&gt;


&lt;p&gt;It could look like the pipe that is open when runing the program isn&apos;t released. Eventually, when too many pipes are open, the pipe creation fails.&lt;/p&gt;

&lt;p&gt;This links &lt;a href=&quot;http://www.tldp.org/LDP/lpg/node11.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.tldp.org/LDP/lpg/node11.html&lt;/a&gt; says each process should close the end of the pipe it doesn&apos;t use...&lt;/p&gt;

&lt;p&gt;I&apos;ve looked a little bit at the code, and it seems there are no differences in the pipe management in master and in 2.0.x. I don&apos;t have the means run the test case in the master.&lt;/p&gt;

&lt;p&gt;Hope it helps,&lt;/p&gt;

&lt;p&gt;Alexandre&lt;/p&gt;</description>
                <environment>Ubuntu Precise</environment>
        <key id="100903">SERVER-11937</key>
            <summary>Crash in the js shell when using runProgram several times</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="ramon.fernandez@mongodb.com">Ramon Fernandez Marina</assignee>
                                    <reporter username="Lexman">Alexandre [X]</reporter>
                        <labels>
                    </labels>
                <created>Tue, 3 Dec 2013 16:46:49 +0000</created>
                <updated>Wed, 10 Dec 2014 23:19:06 +0000</updated>
                            <resolved>Mon, 23 Jun 2014 13:13:58 +0000</resolved>
                                    <version>2.0.4</version>
                                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="631263" author="ramon.fernandez" created="Mon, 23 Jun 2014 13:14:31 +0000"  >&lt;p&gt;Understood &amp;#8211; thanks for letting us know &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Lexman&quot; class=&quot;user-hover&quot; rel=&quot;Lexman&quot;&gt;Lexman&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="631212" author="lexman" created="Mon, 23 Jun 2014 12:11:20 +0000"  >&lt;p&gt;Hello, we&apos;ve juste upgraded to 2.4... Anyway the bug wasn&apos;t an issue any more for us because we moved some code from shell to Java.&lt;/p&gt;

&lt;p&gt;Thanks for the follow-up !&lt;/p&gt;

&lt;p&gt;You can consider this bug solved.&lt;/p&gt;</comment>
                            <comment id="629528" author="ramon.fernandez" created="Fri, 20 Jun 2014 20:22:31 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Lexman&quot; class=&quot;user-hover&quot; rel=&quot;Lexman&quot;&gt;Lexman&lt;/a&gt;, is this still an issue for you? I checked more recent versions of MongoDB, like 2.4.10 and 2.6.3, and this issue has been fixed. If you&apos;re still running into this problem, is updating to 2.4 or 2.6 a possibility for you?&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 20 Jun 2014 20:22:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 34 weeks, 2 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>
                            9 years, 34 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>Lexman</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrm6bb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>104299</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;In the mongo shell :&lt;/p&gt;

&lt;p&gt;for (var i = 0; i&amp;lt; 1000; i++) {&lt;br/&gt;
	run(&quot;echo&quot;, &quot;test&quot;);&lt;br/&gt;
}&lt;/p&gt;</customfieldvalue>

                        </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|hsp3bb:</customfieldvalue>

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