<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:16:35 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-27906] mutable_bson_test failure on ppc64le</title>
                <link>https://jira.mongodb.org/browse/SERVER-27906</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;build/opt/mongo/bson/mutable/mutable_bson_test started to fail on ppc64le in 3.4.2 (it 3.4.1 it worked well). Exactly &quot;EncodingEquivalenceRegex&quot; subtest is failing.&lt;/p&gt;

&lt;p&gt;It is not failing on other platforms.&lt;/p&gt;

&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;2017-02-03T13:01:34.758+0000 I -        [main] **************************************************&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.778+0000 2017-02-03T13:01:34.758+0000 I -        [main] ArrayAPI                       | tests:    1 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.778+0000 2017-02-03T13:01:34.758+0000 I -        [main] DecimalType                    | tests:    3 | fails:    0 | assert calls:          0 | time secs:  0.002&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.778+0000 2017-02-03T13:01:34.758+0000 I -        [main] Document                       | tests:   40 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.778+0000 2017-02-03T13:01:34.758+0000 I -        [main] DocumentComparison             | tests:    9 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.778+0000 2017-02-03T13:01:34.758+0000 I -        [main] DocumentInPlace                | tests:   27 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.779+0000 2017-02-03T13:01:34.758+0000 I -        [main] Documentation                  | tests:    4 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.779+0000 2017-02-03T13:01:34.758+0000 I -        [main] Element                        | tests:   11 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.779+0000 2017-02-03T13:01:34.758+0000 I -        [main] OIDType                        | tests:    2 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.779+0000 2017-02-03T13:01:34.758+0000 I -        [main] SafeNumType                    | tests:    4 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.779+0000 2017-02-03T13:01:34.758+0000 I -        [main] Serialization                  | tests:    1 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.779+0000 2017-02-03T13:01:34.758+0000 I -        [main] TimestampType                  | tests:    3 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.780+0000 2017-02-03T13:01:34.758+0000 I -        [main] TopologyBuilding               | tests:   16 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.780+0000 2017-02-03T13:01:34.758+0000 I -        [main] TypeSupport                    | tests:   21 | fails:    1 | assert calls:          0 | time secs:  0.002&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.780+0000 	EncodingEquivalenceRegex	Expected: identical(thing, mmb::ConstElement(a).getValue()) @src/mongo/bson/mutable/mutable_bson_test.cpp:2276&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.780+0000 2017-02-03T13:01:34.758+0000 I -        [main] UnorderedEqualityChecker       | tests:    8 | fails:    0 | assert calls:          0 | time secs:  0.000&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.780+0000 2017-02-03T13:01:34.758+0000 I -        [main] TOTALS                         | tests:  150 | fails:    1 | assert calls:          0 | time secs:  0.004&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.780+0000 2017-02-03T13:01:34.758+0000 I -        [main] Failing tests:&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.781+0000 2017-02-03T13:01:34.758+0000 I -        [main] 	 TypeSupport/EncodingEquivalenceRegex Failed&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;[cpp_unit_test:mutable_bson_test] 2017-02-03T13:01:34.781+0000 2017-02-03T13:01:34.758+0000 I -        [main] FAILURE - 1 tests in 1 suites failed&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;[executor:cpp_unit_test:job0] 2017-02-03T13:01:34.781+0000 mutable_bson_test ran in 0.21 seconds.&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;Full output of the test is attached.&lt;/p&gt;</description>
                <environment>ppc64le system</environment>
        <key id="351515">SERVER-27906</key>
            <summary>mutable_bson_test failure on ppc64le</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="5">Cannot Reproduce</resolution>
                                        <assignee username="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="mskalick">Marek Skalick&#253;</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 Feb 2017 17:31:43 +0000</created>
                <updated>Mon, 13 Feb 2017 17:50:22 +0000</updated>
                            <resolved>Mon, 13 Feb 2017 17:50:22 +0000</resolved>
                                    <version>3.4.2</version>
                                                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1497930" author="acm" created="Mon, 13 Feb 2017 17:50:22 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mskalick&quot; class=&quot;user-hover&quot; rel=&quot;mskalick&quot;&gt;mskalick&lt;/a&gt; - Given that, I think it is appropriate to close this issue, given that the current hypothesis is a mis-compile due to GCC 7. If your investigation however reveals anything different (e.g. there is some subtle UB in our code), please feel free to re-open the issue or otherwise bring it back to our attention.&lt;/p&gt;</comment>
                            <comment id="1495796" author="mskalick" created="Thu, 9 Feb 2017 12:06:39 +0000"  >&lt;p&gt;I compile the test with enabled optimizations (test fails). I remove &lt;tt&gt;element.o&lt;/tt&gt; file and run gcc command (same as invoked by scons for this file) and change optimization to &lt;tt&gt;-O0&lt;/tt&gt; in this gcc call. Then again run scons command, which only regenerates &lt;tt&gt;build/7a67446c/mongo/bson/mutable/libmutable_bson.a&lt;/tt&gt; and links the test. Then test is running. So only &lt;tt&gt;element.o&lt;/tt&gt; was recompiled to get test running.&lt;/p&gt;</comment>
                            <comment id="1494906" author="acm" created="Wed, 8 Feb 2017 15:07:07 +0000"  >&lt;p&gt;That is somewhat strange - element.cpp is a pretty small and simple file. It does include a fair amount of other code, and calls into document.cpp, which is much more complex. What leads you to conclude that it is a mis-compilation of element.cpp?&lt;/p&gt;</comment>
                            <comment id="1494770" author="mskalick" created="Wed, 8 Feb 2017 12:38:06 +0000"  >&lt;p&gt;Update: The failure is cause by optimizations while compiling &lt;tt&gt;build/opt/mongo/bson/mutable/element.o&lt;/tt&gt;. With &lt;tt&gt;-O1&lt;/tt&gt; it is failing, with &lt;tt&gt;-O0&lt;/tt&gt; it is working fine.&lt;/p&gt;</comment>
                            <comment id="1493933" author="mskalick" created="Tue, 7 Feb 2017 15:44:58 +0000"  >&lt;p&gt;On other architectures it is working fine. So it is only ppc64le issue.&lt;/p&gt;

&lt;p&gt;Even on ppc64be unit tests are passing, so I guess it is bug in gcc. Any idea how to get reproducer? (locate the issue)&lt;/p&gt;</comment>
                            <comment id="1493801" author="acm" created="Tue, 7 Feb 2017 13:45:11 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mskalick&quot; class=&quot;user-hover&quot; rel=&quot;mskalick&quot;&gt;mskalick&lt;/a&gt; -&lt;/p&gt;

&lt;p&gt;It is certainly possible that mutable bson contains a latent defect that has been exposed by GCC 7. If that is the case, I&apos;d expect it to be some sort of subtle undefined behavior. Another possibility is that we are exposing a bug in GCC.&lt;/p&gt;

&lt;p&gt;Do you get this same behavior on x86_64 Fedora 26 GCC 7 systems? We don&apos;t happen to have any Fedora 26 ppc64le machines available, or any ppc64le that we can conveniently repurpose, so it is a little difficult for us to track this down on that platform. I think knowing whether this is arch specific would be a good first step.&lt;/p&gt;

&lt;p&gt;Thanks for the notes on the --param= stuff.&lt;/p&gt;</comment>
                            <comment id="1493763" author="mskalick" created="Tue, 7 Feb 2017 12:21:04 +0000"  >&lt;p&gt;It is caused by new gcc 7.0.1.&lt;/p&gt;

&lt;p&gt;It seems that &lt;tt&gt;src/mongo/bson/mutable/element.cpp&lt;/tt&gt; (or included headers) is causing the problem. After rebuilding &lt;tt&gt;build/opt/mongo/bson/mutable/element.o&lt;/tt&gt; with gcc 6.3.1 the unit test works.&lt;/p&gt;

&lt;p&gt;Do you have any idea what can cause the problem? What parts of element.cpp are used in EncodingEquivalenceRegex test?&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;We don&apos;t happen to set --param=ssp-buffer-size=4, so if you have some guidance on that parameter we would be interested.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I&apos;ve asked: &quot;It&apos;s a historic setting for of -fstack-protector.  Everything should use -fstack-protector-strong these days, so it should no longer be necessary.&quot;&lt;/p&gt;</comment>
                            <comment id="1492677" author="mskalick" created="Mon, 6 Feb 2017 12:53:33 +0000"  >&lt;blockquote&gt;&lt;p&gt;though there are several RHEL specific things in there that I&apos;m not sure I understand. I also see some CPPDEFINES that are suggestive that you are using the system versions of libraries, but I don&apos;t see any --use-system-x calls. Can you please confirm that the SCons invocation is complete?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Actually it is Fedora 26, not RHEL.&lt;/p&gt;

&lt;p&gt;I was building it with --use-system-x calls, but I get same result without it (command mentioned in description of this bug is right). I&apos;ve only forgotten to remove CPP defines, I&apos;ll try without it.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;I also notice that you are building with --disable-warnings-as-errors. What toolchain or GCC version are you using here?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;It is gcc 7.0.1-0.5.fc26. Using this option from gcc 5.0.o (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17235&quot; title=&quot;unused-variable and uninitialized parameter with gcc5.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17235&quot;&gt;&lt;del&gt;SERVER-17235&lt;/del&gt;&lt;/a&gt;), I&apos;ll try if it is still needed.&lt;/p&gt;

&lt;p&gt;There is no change in Fedora mongodb code (spec file) between successful 3.4.1 build and failed 3.4.2. Gcc was updated so maybe it is a problem... I will try to figure it out tomorrow.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Finally, I&apos;ll note that several of the options that you are providing to build with runtime hardening are now automatically provided by the mongodb build, in particular _FORTIFY_SOURCE=2, -Wl,-z,relro, -Wl,-z,noexecstack, and -fstack-protector-strong. We don&apos;t happen to set --param=ssp-buffer-size=4, so if you have some guidance on that parameter we would be interested. Many other options appear to be either MongoDB build system defaults (-O2, -g, -Wall), or GCC defaults (-fexceptions, -gcrecord-gcc-switches).&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Values in variables.list file are mainly suggested values for all Fedora packages - so I am using them. I am not the right person to ask, I&apos;ll ask and let you know.&lt;/p&gt;</comment>
                            <comment id="1492264" author="acm" created="Sat, 4 Feb 2017 11:55:14 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mskalick&quot; class=&quot;user-hover&quot; rel=&quot;mskalick&quot;&gt;mskalick&lt;/a&gt; - &lt;/p&gt;

&lt;p&gt;Thank you for the bug report. Our CI builds of 3.4.2 on RHEL 7 ppc64le do not show this issue: &lt;a href=&quot;https://evergreen.mongodb.com/task/mongodb_mongo_v3.4_enterprise_rhel_71_ppc64le_unittests_3f76e40c105fc223b3e5aac3e20dcd026b83b38b_17_02_01_19_09_59&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://evergreen.mongodb.com/task/mongodb_mongo_v3.4_enterprise_rhel_71_ppc64le_unittests_3f76e40c105fc223b3e5aac3e20dcd026b83b38b_17_02_01_19_09_59&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&apos;ve also taken a quick look through the commits between r3.4.1 and r3.4.2, and I don&apos;t see any changes that seemed like potential culprits.&lt;/p&gt;

&lt;p&gt;Your build command looks reasonable (nice to see &lt;tt&gt;&amp;#45;&amp;#45;variables-files&lt;/tt&gt; getting some use!) though there are several RHEL specific things in there that I&apos;m not sure I understand. I also see some &lt;tt&gt;CPPDEFINES&lt;/tt&gt; that are suggestive that you are using the system versions of libraries, but I don&apos;t see any &lt;tt&gt;&amp;#45;&amp;#45;use-system-x&lt;/tt&gt; calls. Can you please confirm that the SCons invocation is complete?&lt;/p&gt;

&lt;p&gt;Given that you say you can&apos;t repro this with 3.4.1 but you can with 3.4.2, and we don&apos;t see this issue at all, perhaps the best way to proceed would be for you to do a git bisect of the commits between 3.4.1 and 3.4.2 and see if you can find a specific commit that broke it for you. You can shorten the bisect cycle by building just the failing target, &lt;tt&gt;build/opt/mongo/bson/mutable/mutable_bson_test&lt;/tt&gt;, rather than &lt;tt&gt;all&lt;/tt&gt;. If you script the bisect it should be pretty fast.&lt;/p&gt;

&lt;p&gt;I also notice that you are building with &lt;tt&gt;--disable-warnings-as-errors&lt;/tt&gt;. What toolchain or GCC version are you using here?&lt;/p&gt;

&lt;p&gt;Finally, I&apos;ll note that several of the options that you are providing to build with runtime hardening are now automatically provided by the mongodb build, in particular &lt;tt&gt;_FORTIFY_SOURCE=2&lt;/tt&gt;, &lt;tt&gt;&amp;#45;Wl,&amp;#45;z,relro&lt;/tt&gt;, &lt;tt&gt;&amp;#45;Wl,&amp;#45;z,noexecstack&lt;/tt&gt;, and &lt;tt&gt;&amp;#45;fstack-protector-strong&lt;/tt&gt;. We don&apos;t happen to set &lt;tt&gt;&amp;#45;&amp;#45;param=ssp-buffer-size=4&lt;/tt&gt;, so if you have some guidance on that parameter we would be interested. Many other options appear to be either MongoDB build system defaults (&lt;tt&gt;&amp;#45;O2&lt;/tt&gt;, &lt;tt&gt;&amp;#45;g&lt;/tt&gt;, &lt;tt&gt;&amp;#45;Wall&lt;/tt&gt;), or GCC defaults (&lt;tt&gt;&amp;#45;fexceptions&lt;/tt&gt;, &lt;tt&gt;&amp;#45;gcrecord-gcc-switches&lt;/tt&gt;).&lt;/p&gt;
</comment>
                    </comments>
                    <attachments>
                            <attachment id="148761" name="mutable_bson_test-output.txt" size="32495" author="mskalick" created="Fri, 3 Feb 2017 17:31:31 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 4 Feb 2017 11:55:14 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 2 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>andrew.morrow@mongodb.com</customfieldvalue>
            <customfieldvalue>mskalick</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht1z93:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrb6zr:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1518">Platforms 2017-02-13</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&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;~]$ cat variables.list&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;CCFLAGS=&quot;-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mcpu=power8 -mtune=power8&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;   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;LINKFLAGS=&quot;-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,noexecstack -Wl,--reduce-memory-overheads,--no-keep-memory&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;   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;CPPDEFINES=&quot;BOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE ASIO_STANDALONE ASIO_SEPARATE_COMPILATION&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;   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;VERBOSE=1&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;~]$ scons all -j4 --mmapv1=on --wiredtiger=on --ssl --nostrip --disable-warnings-as-errors --variables-files=variables.list&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&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|hrksbr:</customfieldvalue>

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