<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:13:28 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-1096] Test failure on test suite lfsck,Segmentation fault</title>
                <link>https://jira.whamcloud.com/browse/LU-1096</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for sarah &amp;lt;sarah@whamcloud.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/1bfcbe72-553d-11e1-9aa8-5254004bbbd3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/1bfcbe72-553d-11e1-9aa8-5254004bbbd3&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13160">LU-1096</key>
            <summary>Test failure on test suite lfsck,Segmentation fault</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="ys">Yang Sheng</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Feb 2012 02:47:32 +0000</created>
                <updated>Wed, 30 May 2012 21:48:49 +0000</updated>
                            <resolved>Wed, 30 May 2012 21:48:48 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="29092" author="pjones" created="Thu, 16 Feb 2012 16:48:35 +0000"  >&lt;p&gt;Andreas will look into this one&lt;/p&gt;</comment>
                            <comment id="31499" author="pjones" created="Mon, 19 Mar 2012 13:47:52 +0000"  >&lt;p&gt;Niu&lt;/p&gt;

&lt;p&gt;Andreas is out on vacation for the next two weeks so could you please make an initial assessment of this issue?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="31527" author="niu" created="Mon, 19 Mar 2012 23:20:16 +0000"  >&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;lfsck -c -l --mdsdb /scratch/mdsdb --ostdb /scratch/ostdb-0 /scratch/ostdb-1 /scratch/ostdb-2 /scratch/ostdb-3 /scratch/ostdb-4 /scratch/ostdb-5 /mnt/lustre
lfsck 1.41.90.wc4 (01-Sep-2011)
/scratch/mdsdb:mdshdr
: Invalid argument
/usr/lib64/lustre/tests/test-framework.sh: line 2679: 19558 Segmentation fault      lfsck -c -l --mdsdb /scratch/mdsdb --ostdb /scratch/ostdb-0 /scratch/ostdb-1 /scratch/ostdb-2 /scratch/ostdb-3 /scratch/ostdb-4 /scratch/ostdb-5 /mnt/lustre
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Looks like open mdsdb failed, and it caused segment fault.&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;+       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ((rc = dbp-&amp;gt;open(dbp, NULL, fname, dbname, DB_HASH,
+                           DB_CREATE | DB_THREAD, 0664)) != 0)
+       {
+               dbp-&amp;gt;err(dbp, rc, &lt;span class=&quot;code-quote&quot;&gt;&quot;%s:%s\n&quot;&lt;/span&gt;, fname, dbname);
+               dbp-&amp;gt;close(dbp, 0);
+               &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; (EIO);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I suspect this failure is similar to the &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-367&quot; title=&quot;lfsck 1.41.90.wc2: illegal flag specified to DB-&amp;gt;open&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-367&quot;&gt;&lt;del&gt;LU-367&lt;/del&gt;&lt;/a&gt;: the db4 version of the server which generating MDSDB is different with the db4 version of client which open the MDSDB.&lt;/p&gt;

&lt;p&gt;The maloo shows that test server and client have different system, server is CentOS release 6.2, but client is CentOS release 5.7, so I think the db4 version should be different.&lt;/p&gt;

&lt;p&gt;I think we may need to improve the test script to make sure that using same db4 to generate &amp;amp; check the db file, and lfsck also needs be improved to handle the db4 version mismatch gracefully. But I don&apos;t think this should be a blocker.&lt;/p&gt;</comment>
                            <comment id="34350" author="pjones" created="Mon, 9 Apr 2012 23:59:13 +0000"  >&lt;p&gt;Yangsheng&lt;/p&gt;

&lt;p&gt;Could you please look into how to address this problem. Andreas had some ideas about how to deal with this situation more gracefully&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="34591" author="ys" created="Thu, 12 Apr 2012 09:43:53 +0000"  >&lt;p&gt;This issue isn&apos;t relate to db4 library. Just wrong invoke log_write(...) after lfsck_opendb():&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;        rc = lfsck_opendb(mds_file, MDS_HDR, &amp;amp;mds_hdrdb, 0, 0, 0);
        if (rc != 0) {
      &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;   log_write(&quot;%s: error opening mds_hdr in %s: rc %d\n&quot;,
                          mds_file, rc);
                return(-EINVAL);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Have a guidance for commit patch to e2fsprog? &lt;/p&gt;</comment>
                            <comment id="34596" author="ys" created="Thu, 12 Apr 2012 10:13:16 +0000"  >&lt;p&gt;For record:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;int log_close(int status)
{
        time_t tm;

        if (logfile == NULL)
                return(0);

        time(&amp;amp;tm);
        if (status &amp;lt; 0) {
                fprintf(logfile, &quot;ERROR: lfsck aborted\n&quot;);
        } else {
                fprintf(logfile, &quot;lfsck run completed:  %s\n&quot;,ctime(&amp;amp;tm));
        }
        fprintf(logfile, &quot;===============================================\n\n&quot;);

        fclose(logfile);
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;logfile = NULL;
        return(0);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Else may cause a double free in some failure case.&lt;/p&gt;</comment>
                            <comment id="34732" author="adilger" created="Fri, 13 Apr 2012 11:57:31 +0000"  >&lt;p&gt;YS, you can submit patches to Gerrit with the tools/e2fsprogs repo, on the master-lustre branch. I&apos;m just in the middle of rebasing this tree, so any patch would need to be rebased again before it could land. &lt;/p&gt;</comment>
                            <comment id="39690" author="ys" created="Wed, 30 May 2012 21:48:49 +0000"  >&lt;p&gt;Patch landed. close bug.&lt;/p&gt;</comment>
                    </comments>
                    <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|hzvhcn:</customfieldvalue>

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