<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:53:16 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-174] Crash in shell</title>
                <link>https://jira.mongodb.org/browse/SERVER-174</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Inserting the test darta with the attached script makes the shell crash when &apos;finding&apos; that entry in the DB.&lt;/p&gt;

&lt;p&gt;$ echo &apos;db.reports.find(&lt;/p&gt;
{ &quot;_id&quot;: &quot;nntp-3158&quot; }
&lt;p&gt;)&apos; | /usr/local/mongodb/bin/mongo temp&lt;br/&gt;
MongoDB shell version: 0.9.6&lt;br/&gt;
  url: temp&lt;br/&gt;
connecting to: temp&lt;br/&gt;
type &quot;help&quot; for help&lt;br/&gt;
&amp;gt; db.reports.find(&lt;/p&gt;
{ &quot;_id&quot;: &quot;nntp-3158&quot; }
&lt;p&gt;)&lt;br/&gt;
Tue Jul 21 12:01:10 in client mode Assertion failure s 32bit/scripting/engine_spidermonkey.cpp 323&lt;br/&gt;
0x49870 0x506e1 0x79f45 0x7054f 0x108023 0x107cb0 0xfae73 0xfb1e4 0xdfe3a 0xdc115 0x9d4a9 0x9d400 0x9d30a 0x7aad8 0x31f1 0x1cc6 &lt;br/&gt;
 0   mongo                               0x00049870 _ZN5mongo12sayDbContextEPKc + 256&lt;br/&gt;
 1   mongo                               0x000506e1 _ZN5mongo8assertedEPKcS1_j + 337&lt;br/&gt;
 2   mongo                               0x00079f45 _ZN5mongo9Convertor5tovalERKNS_11BSONElementE + 5349&lt;br/&gt;
 3   mongo                               0x0007054f &lt;em&gt;ZN5mongo16resolveBSONFieldEP9JSContextP8JSObjectljPS3&lt;/em&gt; + 239&lt;br/&gt;
 4   mongo                               0x00108023 js_LookupPropertyWithFlags + 881&lt;br/&gt;
 5   mongo                               0x00107cb0 js_LookupProperty + 53&lt;br/&gt;
 6   mongo                               0x000fae73 js_ValueToIterator + 2115&lt;br/&gt;
 7   mongo                               0x000fb1e4 js_CallIteratorNext + 249&lt;br/&gt;
 8   mongo                               0x000dfe3a js_Interpret + 11620&lt;br/&gt;
 9   mongo                               0x000dc115 js_Execute + 774&lt;br/&gt;
 10  mongo                               0x0009d4a9 JS_EvaluateUCScriptForPrincipals + 167&lt;br/&gt;
 11  mongo                               0x0009d400 JS_EvaluateUCScript + 67&lt;br/&gt;
 12  mongo                               0x0009d30a JS_EvaluateScript + 108&lt;br/&gt;
 13  mongo                               0x0007aad8 _ZN5mongo7SMScope4execERKSsS2_bbbi + 920&lt;br/&gt;
 14  mongo                               0x000031f1 main + 4001&lt;br/&gt;
 15  mongo                               0x00001cc6 start + 54&lt;br/&gt;
terminate called after throwing an instance of &apos;mongo::AssertionException&apos;&lt;br/&gt;
  what():  &lt;br/&gt;
Tue Jul 21 12:01:10  mongo got signal 6 (Abort trap), stack trace: &lt;br/&gt;
Tue Jul 21 12:01:10  0x5a57 0x9475d2bb 0xffffffff 0x947d123a 0x947dd679 0x968cd005 0x968cb10c 0x968cb14b 0x968cb261 0x5082c 0x79f45 0x7054f 0x108023 0x107cb0 0xfae73 0xfb1e4 0xdfe3a 0xdc115 0x9d4a9 0x9d400 &lt;br/&gt;
 0   mongo                               0x00005a57 _Z12quitAbruptlyi + 999&lt;br/&gt;
 1   libSystem.B.dylib                   0x9475d2bb _sigtramp + 43&lt;br/&gt;
 2   ???                                 0xffffffff 0x0 + 4294967295&lt;br/&gt;
 3   libSystem.B.dylib                   0x947d123a raise + 26&lt;br/&gt;
 4   libSystem.B.dylib                   0x947dd679 abort + 73&lt;br/&gt;
 5   libstdc++.6.dylib                   0x968cd005 &lt;em&gt;ZN9&lt;/em&gt;&lt;em&gt;gnu_cxx27&lt;/em&gt;_verbose_terminate_handlerEv + 445&lt;br/&gt;
 6   libstdc++.6.dylib                   0x968cb10c __gxx_personality_v0 + 1108&lt;br/&gt;
 7   libstdc++.6.dylib                   0x968cb14b _ZSt9terminatev + 29&lt;br/&gt;
 8   libstdc++.6.dylib                   0x968cb261 __cxa_throw + 101&lt;br/&gt;
 9   mongo                               0x0005082c _ZN5mongo8assertedEPKcS1_j + 668&lt;br/&gt;
 10  mongo                               0x00079f45 _ZN5mongo9Convertor5tovalERKNS_11BSONElementE + 5349&lt;br/&gt;
 11  mongo                               0x0007054f &lt;em&gt;ZN5mongo16resolveBSONFieldEP9JSContextP8JSObjectljPS3&lt;/em&gt; + 239&lt;br/&gt;
 12  mongo                               0x00108023 js_LookupPropertyWithFlags + 881&lt;br/&gt;
 13  mongo                               0x00107cb0 js_LookupProperty + 53&lt;br/&gt;
 14  mongo                               0x000fae73 js_ValueToIterator + 2115&lt;br/&gt;
 15  mongo                               0x000fb1e4 js_CallIteratorNext + 249&lt;br/&gt;
 16  mongo                               0x000dfe3a js_Interpret + 11620&lt;br/&gt;
 17  mongo                               0x000dc115 js_Execute + 774&lt;br/&gt;
 18  mongo                               0x0009d4a9 JS_EvaluateUCScriptForPrincipals + 167&lt;br/&gt;
 19  mongo                               0x0009d400 JS_EvaluateUCScript + 67&lt;/p&gt;</description>
                <environment>OS X</environment>
        <key id="10330">SERVER-174</key>
            <summary>Crash in shell</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="ask">Ask Bj&#248;rn Hansen</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Jul 2009 16:58:42 +0000</created>
                <updated>Tue, 12 Jul 2016 00:30:23 +0000</updated>
                            <resolved>Wed, 12 Aug 2009 10:28:23 +0000</resolved>
                                    <version>0.9.6</version>
                                    <fixVersion>0.9.8</fixVersion>
                                    <component>JavaScript</component>
                    <component>Shell</component>
                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="10606" author="jmsachs" created="Tue, 1 Sep 2009 13:02:30 +0000"  >&lt;p&gt;This may be affecting the PHP driver as well. I&apos;ve successfully written and read binary objects to/from the database in PHP, yet when I go to retrieve them from the javascript shell I get this:&lt;/p&gt;

&lt;p&gt;&amp;gt; db.datasheets.find()&lt;br/&gt;
%????e failed. probably invalid utf-8 string [%PDF-1.1&lt;br/&gt;
streamr /LZWDecodegeMaker 6.52)02 for Macintosh)&lt;br/&gt;
&#199;?&#232;&#199;?y?j ?&#234;&lt;br/&gt;
&#229;`h?b.?&#236;??&#252;??r9?&#234;?&#250;??&#233;??&lt;cite&gt;F#&#230;&#201;?l8&#228;&#238;?&#250;ap?:T6&#226;F?&#223;&lt;/cite&gt;@g?&#201;&#239;??y?&#186;     3&#163;??R?4[3?RFP&#250;?4&lt;br/&gt;
PP)?I&#228;&#198;i$&#163;A)?E%CT?\5??&#181;??&#228;(&#235;N*?Hd&#233;q$&#229;A&amp;amp;V??&#177;&#241;F&#249;d&#228;&#242;,?&#233;!?&#191;A??;?0i618q]&lt;br/&gt;
         why: TypeError: malformed UTF-8 character sequence at offset 10&lt;br/&gt;
exception: invalid utf8&lt;/p&gt;

&lt;p&gt;p.s. this may explain my problem in &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-27&quot; title=&quot;buffer overrun for large documents causes an exception for DBCursor.hasNext()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-27&quot;&gt;&lt;del&gt;JAVA-27&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="10447" author="eliot" created="Sat, 15 Aug 2009 10:10:02 +0000"  >&lt;p&gt;Released in 0.9.8&lt;/p&gt;</comment>
                            <comment id="10409" author="kristina" created="Wed, 12 Aug 2009 10:28:23 +0000"  >&lt;p&gt;Getting the newest version of the perl driver should resolve this issue.  All strings will be converted to utf8 before they&apos;re saved.&lt;/p&gt;</comment>
                            <comment id="10373" author="eliot" created="Fri, 7 Aug 2009 16:43:00 +0000"  >
&lt;p&gt;0x9F is invalid UTF-8&lt;br/&gt;
see: &lt;a href=&quot;http://en.wikipedia.org/wiki/UTF-8#Invalid_byte_sequences&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://en.wikipedia.org/wiki/UTF-8#Invalid_byte_sequences&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;will make shell not crash so hard though...&lt;/p&gt;</comment>
                            <comment id="10361" author="kristina" created="Wed, 5 Aug 2009 11:08:08 +0000"  >&lt;p&gt;The problem is, specifically, the \x9F character in the strings.&lt;/p&gt;

&lt;p&gt;This causes the same error with the C++ driver:&lt;/p&gt;

&lt;p&gt;    mongo::BSONObjBuilder obj;&lt;br/&gt;
    obj.append(&quot;foo&quot;, &quot;\x9F&quot;);&lt;br/&gt;
    conn.insert(&quot;temp.reports&quot;, obj.done() );&lt;/p&gt;
</comment>
                            <comment id="10360" author="eliot" created="Wed, 5 Aug 2009 00:16:13 +0000"  >&lt;p&gt;can you run the server with --objcheck  probably a bug in the perl driver.&lt;br/&gt;
will take a look&lt;/p&gt;</comment>
                            <comment id="10359" author="mattparlane" created="Wed, 5 Aug 2009 00:02:11 +0000"  >&lt;p&gt;I can reproduce this reliably on Ubuntu 64-bit with 0.9.7.  Let me know if you need any more info.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10016" name="fail.pl" size="5222" author="ask" created="Tue, 21 Jul 2009 16:58:42 +0000"/>
                    </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>Wed, 5 Aug 2009 00:02:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 25 weeks, 1 day 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>
                            14 years, 25 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ask</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>jmsachs</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>mattparlane</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpx9z:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>23655</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|ht0lin:</customfieldvalue>

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