<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:16:31 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-8091] uninitialised value in OID object due to bad struct alignment</title>
                <link>https://jira.mongodb.org/browse/SERVER-8091</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The union used in the definition of the OID object (oid.h) is not properly aligned and leads to &quot;uninitialized value&quot; in valgrind and not expected behavior. This is critical because mongodb C++ driver OID data is broken.&lt;/p&gt;

&lt;p&gt;More on data alignment here: &lt;a href=&quot;http://en.wikipedia.org/wiki/Data_structure_alignment&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://en.wikipedia.org/wiki/Data_structure_alignment&lt;/a&gt;&lt;/p&gt;</description>
                <environment>gcc 4.4.5, boost 1.42, debian 6 64bits</environment>
        <key id="61142">SERVER-8091</key>
            <summary>uninitialised value in OID object due to bad struct alignment</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="-1">Unassigned</assignee>
                                    <reporter username="ernashil">Eric Nashil</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 Jan 2013 07:08:54 +0000</created>
                <updated>Fri, 15 Feb 2013 15:06:41 +0000</updated>
                            <resolved>Tue, 8 Jan 2013 07:19:12 +0000</resolved>
                                    <version>2.2.0</version>
                                                    <component>Internal Client</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="233412" author="ernashil" created="Mon, 7 Jan 2013 19:45:46 +0000"  >&lt;p&gt;The valgrind report is nevertheless here, so I would think it might be a false positive of valgrind due to the complex nature of the packed union of structs. I think the issue can be closed, there is not much that can be done and it is not a bug from mongodb.&lt;/p&gt;</comment>
                            <comment id="232965" author="ernashil" created="Mon, 7 Jan 2013 10:34:33 +0000"  >&lt;p&gt;Update: it seems gcc says that #pragma pack is indeed supported, my bad: &lt;a href=&quot;http://gcc.gnu.org/onlinedocs/gcc/Structure_002dPacking-Pragmas.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://gcc.gnu.org/onlinedocs/gcc/Structure_002dPacking-Pragmas.html&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="232913" author="ernashil" created="Mon, 7 Jan 2013 08:52:59 +0000"  >&lt;p&gt;the #pragma directive is specific to Visual C++ and would be ignored on linux with gcc. You should use use _&lt;em&gt;attribute&lt;/em&gt;_((packed)) in that case. More here:&lt;br/&gt;
&lt;a href=&quot;http://grok2.tripod.com/structure_packing.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://grok2.tripod.com/structure_packing.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;NB: the code sample in the stackoverflow link above is standalone and reproduces the problem with gcc 4.4.5, boost 1.42 on a debian 6 64bits.&lt;br/&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/14186246/valgrind-reports-uninitialised-value-in-bsonobjtostring-with-a-simple-bson-obj&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/14186246/valgrind-reports-uninitialised-value-in-bsonobjtostring-with-a-simple-bson-obj&lt;/a&gt; &lt;/p&gt;</comment>
                            <comment id="232874" author="eliot" created="Mon, 7 Jan 2013 07:45:39 +0000"  >&lt;p&gt;The OID class has a #pragma pack(1), so it is 12 bytes.&lt;/p&gt;

&lt;p&gt;I tried the example you gave, but didn&apos;t give any valgrind errors.&lt;/p&gt;

&lt;p&gt;Can you send the full source code?&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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 7 Jan 2013 07:45:39 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 6 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 6 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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>ernashil</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrncpb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>38593</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;All details and a simple minimalist program to exhibit the problem can be found here:&lt;br/&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/14186246/valgrind-reports-uninitialised-value-in-bsonobjtostring-with-a-simple-bson-obj&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/14186246/valgrind-reports-uninitialised-value-in-bsonobjtostring-with-a-simple-bson-obj&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Try using a &quot;sizeof&quot; operator on the union types to see the alignment problem.&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|ht062n:</customfieldvalue>

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