<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:42:10 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>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-4377] Segmentation fault seen in LNet Self Test sub-shell</title>
                <link>https://jira.whamcloud.com/browse/LU-4377</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Seen in Lustre 2.5&lt;br/&gt;
This sequence of commands seems to reproduce the fault.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;lst&lt;br/&gt;
lst &amp;gt; new_session&lt;br/&gt;
Invalid parameters list in command line&lt;br/&gt;
lst &amp;gt; new_session a&lt;br/&gt;
Invalid parameters list in command line&lt;br/&gt;
lst &amp;gt; end_session&lt;br/&gt;
Invalid parameters list in command line&lt;br/&gt;
lst &amp;gt; stop&lt;br/&gt;
Segmentation fault&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="22434">LU-4377</key>
            <summary>Segmentation fault seen in LNet Self Test sub-shell</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="ashehata">Amir Shehata</assignee>
                                    <reporter username="brett">Brett Lee</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Dec 2013 17:46:11 +0000</created>
                <updated>Tue, 22 Dec 2015 03:26:03 +0000</updated>
                            <resolved>Thu, 23 Jul 2015 22:09:46 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="73307" author="ashehata" created="Wed, 11 Dec 2013 19:42:31 +0000"  >&lt;p&gt;found the reason of the crash&lt;br/&gt;
when you do &quot;new_session a&quot; the following code gets executed (under jt_lst_new_session) :&lt;br/&gt;
        if (optind == argc - 1) {&lt;br/&gt;
                name = argv&lt;span class=&quot;error&quot;&gt;&amp;#91;optind ++&amp;#93;&lt;/span&gt;;&lt;br/&gt;
                if (strlen(name) &amp;gt;= LST_NAME_SIZE) &lt;/p&gt;
{
                        fprintf(stderr, &quot;Name size is limited to %d\n&quot;,
                                LST_NAME_SIZE - 1);
                        return -1;
                }
&lt;p&gt;This increments optind unnecessarily and never resets it before the call to the next getopt_long() which causes the crash.  Looking at the code it appears that this issue is repeated several times in the code.  It appears that the assumption is that lst is never executed interactively.  When it is executed interactively optind needs to be reset in order for getopt_long() to start scanning from the beginning of the command line.&lt;/p&gt;

&lt;p&gt;The same crash can be observed if you do:&lt;br/&gt;
new_session a&lt;br/&gt;
new_session&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="27910">LU-6025</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzwb7j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11992</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

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