<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:19:12 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-49197] Prevent build failures with --sanitize=* and icecc</title>
                <link>https://jira.mongodb.org/browse/SERVER-49197</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Icecream as deployed in our fleet currently does not work with sanitizer blacklist files. We have a workaround in place that is supposed to prevent errors such as this:&lt;br/&gt;
```&lt;br/&gt;
ccache /opt/mongodbtoolchain/v3/bin/clang++ -o build/optdebug/mongo/db/storage/flow_control_parameters_gen.dyn.o -c -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -fsized-deallocation -Wunused-exception-parameter -std=c++17 -gsplit-dwarf -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-tautological-constant-compare -Wno-tautological-unsigned-zero-compare -Wno-tautological-unsigned-enum-zero-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -fstack-protector-strong -fsanitize=thread -fno-omit-frame-pointer -fsanitize-blacklist=etc/tsan.blacklist -fno-builtin-memcmp -Qunused-arguments -frewrite-includes -fPIC -DSAFEINT_USE_INTRINSICS=0 -DPCRE_STATIC -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -DTHREAD_SANITIZER -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_LOG_DYN_LINK -Isrc/third_party/s2 -Isrc/third_party/variant-1.4.0/include -Isrc/third_party/SafeInt -Isrc/third_party/pcre-8.42 -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/optdebug -Isrc build/optdebug/mongo/db/storage/flow_control_parameters_gen.cpp&lt;br/&gt;
clang: error: no such file or directory: &apos;etc/tsan.blacklist&apos;&lt;br/&gt;
clang: error: no such file or directory: &apos;etc/tsan.blacklist&apos;&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;However, if you have icecream enabled, those errors show up regardless of our workaround. It&apos;s apparent that the workaround is not working.&lt;/p&gt;

&lt;p&gt;Based on a review of the relevant code, it looks like the reason the workaround is not operating is because it&apos;s looking for sanitizer blacklist files in the command line:&lt;br/&gt;
```&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;We can&apos;t handle sanitizer blacklist files, so disable icecc then, and just flow through&lt;/li&gt;
	&lt;li&gt;icerun to prevent slamming the local system with a huge -j value.&lt;br/&gt;
    if any(&lt;br/&gt;
        f.startswith(&quot;-fsanitize-blacklist=&quot;)&lt;br/&gt;
        for fs in &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;CCFLAGS&amp;quot;, &amp;quot;CFLAGS&amp;quot;, &amp;quot;CXXFLAGS&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
        for f in env&lt;span class=&quot;error&quot;&gt;&amp;#91;fs&amp;#93;&lt;/span&gt;&lt;br/&gt;
    ):&lt;br/&gt;
        env&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;ICECC&amp;quot;&amp;#93;&lt;/span&gt; = &quot;$ICERUN&quot;    # We can&apos;t handle sanitizer blacklist files, so disable icecc then, and just flow through&lt;/li&gt;
	&lt;li&gt;icerun to prevent slamming the local system with a huge -j value.&lt;br/&gt;
    if any(&lt;br/&gt;
        f.startswith(&quot;-fsanitize-blacklist=&quot;)&lt;br/&gt;
        for fs in &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;CCFLAGS&amp;quot;, &amp;quot;CFLAGS&amp;quot;, &amp;quot;CXXFLAGS&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
        for f in env&lt;span class=&quot;error&quot;&gt;&amp;#91;fs&amp;#93;&lt;/span&gt;&lt;br/&gt;
    ):&lt;br/&gt;
        env&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;ICECC&amp;quot;&amp;#93;&lt;/span&gt; = &quot;$ICERUN&quot;&lt;br/&gt;
```&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Unfortunately, we are using a SCons builder to replace those command-line options at compile time because we have made the blacklist files a dependency so we can force a rebuild whenever the blacklist files have changed. This means the workaround never sees what it&apos;s expecting and is effectively non-operational.&lt;/p&gt;

&lt;p&gt;Implement a better workaround that disables remote builds when a sanitizer blacklist file is in use.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1396044">SERVER-49197</key>
            <summary>Prevent build failures with --sanitize=* and icecc</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="backlog-server-devplatform">[DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP)</assignee>
                                    <reporter username="ryan.egesdahl@mongodb.com">Ryan Egesdahl</reporter>
                        <labels>
                    </labels>
                <created>Tue, 30 Jun 2020 17:44:55 +0000</created>
                <updated>Tue, 6 Dec 2022 02:20:44 +0000</updated>
                            <resolved>Fri, 17 Jul 2020 20:04:58 +0000</resolved>
                                    <version>4.5 Required</version>
                                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3290699" author="ryan.egesdahl" created="Fri, 17 Jul 2020 20:04:58 +0000"  >&lt;p&gt;With the work done in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48041&quot; title=&quot;Tell icecream about sanitizer blacklist files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48041&quot;&gt;&lt;del&gt;SERVER-48041&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47598&quot; title=&quot;locally installed mongodbtoolchains can affect remote icecream builds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47598&quot;&gt;&lt;del&gt;SERVER-47598&lt;/del&gt;&lt;/a&gt;, this will be effectively resolved.&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>1.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_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25130"><![CDATA[Server Development Platform]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 29 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-382</customfieldvalue>
                        </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>alexander.golin@mongodb.com</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-devplatform</customfieldvalue>
            <customfieldvalue>ryan.egesdahl@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxsk6f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxe60f:</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="4088">Dev Platform 2020-07-27</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|hxs6fr:</customfieldvalue>

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