<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:08:46 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-615] sanity test 180a: awk: (FILENAME=/proc/fs/lustre/osc/lustre-OST0000-osc-ffff88032273d800/import FNR=32) fatal error: internal error</title>
                <link>https://jira.whamcloud.com/browse/LU-615</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;sanity test 180a failed as follows:&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;== sanity test 180a: test obdecho on osc == 02:30:13 (1314005413)
awk: (FILENAME=/proc/fs/lustre/osc/lustre-OST0000-osc-ffff88032273d800/import FNR=32) fatal error: internal error
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Maloo report: &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/cdf213b2-ccac-11e0-8d02-52540025f9af&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/cdf213b2-ccac-11e0-8d02-52540025f9af&lt;/a&gt;&lt;/p&gt;</description>
                <environment>&lt;br/&gt;
Lustre Tag: v2_1_0_0_RC0&lt;br/&gt;
Lustre Build: &lt;a href=&quot;http://newbuild.whamcloud.com/job/lustre-master/267/&quot;&gt;http://newbuild.whamcloud.com/job/lustre-master/267/&lt;/a&gt;&lt;br/&gt;
Distro/Arch: RHEL6/x86_64 (kernel version: 2.6.32-131.6.1.el6)&lt;br/&gt;
</environment>
        <key id="11540">LU-615</key>
            <summary>sanity test 180a: awk: (FILENAME=/proc/fs/lustre/osc/lustre-OST0000-osc-ffff88032273d800/import FNR=32) fatal error: internal error</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="yujian">Jian Yu</reporter>
                        <labels>
                    </labels>
                <created>Mon, 22 Aug 2011 07:47:26 +0000</created>
                <updated>Mon, 15 Jul 2013 19:57:05 +0000</updated>
                            <resolved>Mon, 6 Feb 2012 13:31:54 +0000</resolved>
                                    <version>Lustre 2.1.0</version>
                    <version>Lustre 2.2.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="19888" author="yujian" created="Fri, 2 Sep 2011 09:38:41 +0000"  >&lt;p&gt;Lustre Build: &lt;a href=&quot;http://newbuild.whamcloud.com/job/lustre-master/275/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://newbuild.whamcloud.com/job/lustre-master/275/&lt;/a&gt;&lt;br/&gt;
Distro/Arch: RHEL5/x86_64(server, OFED 1.5.3.1), SLES11/x86_64(client, in-kernel OFED)&lt;/p&gt;

&lt;p&gt;sanity test 180a failed with the same issue: &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/e4d30bfa-d561-11e0-8d02-52540025f9af&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/e4d30bfa-d561-11e0-8d02-52540025f9af&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="20189" author="adilger" created="Tue, 13 Sep 2011 18:30:12 +0000"  >&lt;p&gt;Probably related to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-566&quot; title=&quot;sanity test 180a: *** glibc detected *** awk: malloc(): memory corruption: 0x0000000000cb31b0 ***&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-566&quot;&gt;&lt;del&gt;LU-566&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="20784" author="tappro" created="Wed, 5 Oct 2011 02:58:26 +0000"  >&lt;p&gt;we are seeing that bug very often in Orion over rhel6. I have an idea that awk has troubles parsing proc files. The patch copy proc file to the  regular one and use it, there is fix:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/1467&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/1467&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;the Maloo run with it shows test 180a pass, but this is only single run.&lt;/p&gt;</comment>
                            <comment id="21395" author="tappro" created="Tue, 18 Oct 2011 04:15:11 +0000"  >&lt;p&gt;It seems this is related to our implementation of proc read method there. The amount of data in &apos;import&apos; is quite big, more than 1024 bytes. Strace shows the following while reading proc file:&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;open(&lt;span class=&quot;code-quote&quot;&gt;&quot;/proc/fs/lustre/osc/lustre-OST0001-osc-d9f1ea00/&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt;&quot;&lt;/span&gt;, O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfdb9348) = -1 ENOTTY (Inappropriate ioctl &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; device)
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
read(3, &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt;:\n    name: lustre-OST0001&quot;&lt;/span&gt;..., 1024) = 1013
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;1013 bytes is on my local system, on Toro it is more than 1024, e.g. my local address is just 0@lo while on Toro it is full IP address.&lt;br/&gt;
The issue here is fstat64 - it can&apos;t get file size for proc file, so following read is using 1024 for read which is less than proc data, probably that is the reason of issue. The lprocfs_rd_import() uses snprintf to output data but it will truncate data so last line may have no final end-of-line symbol, can this cause awk to fail?&lt;/p&gt;

&lt;p&gt;If we will use just tmp file with output of proc data that works fine because awk gets file size by fstat64, so this solution will work.&lt;br/&gt;
But better to fix our proc read method for &apos;import&apos; data, using seq_file.&lt;/p&gt;</comment>
                            <comment id="21482" author="tappro" created="Wed, 19 Oct 2011 11:00:47 +0000"  >&lt;p&gt;Redo &apos;import&apos; proc file via seq_file API:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#change,1544&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,1544&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&apos;ve made local tests to make sure it is able to read big amount of data, to be sure I&apos;ve added several line of just garbage so output become bigger than 1024 and run awk with strace:&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;open(&lt;span class=&quot;code-quote&quot;&gt;&quot;/proc/fs/lustre/osc/lustre-OST0001-osc-d1a26e00/&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt;&quot;&lt;/span&gt;, O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe6bec8) = -1 ENOTTY (Inappropriate ioctl &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; device)
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
read(3, &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt;:\n    name: lustre-OST0001&quot;&lt;/span&gt;..., 1024) = 1024
read(3, &lt;span class=&quot;code-quote&quot;&gt;&quot;hat is why I put &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; line to ex&quot;&lt;/span&gt;..., 1024) = 341
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb765f000
write(1, &lt;span class=&quot;code-quote&quot;&gt;&quot;747\n&quot;&lt;/span&gt;, 4747
)                    = 4
read(3, &quot;&quot;, 1024)                       = 0
close(3)                                = 0
exit_group(0)                           = ?
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;the command was:&lt;br/&gt;
strace awk &apos;/usec_per_rpc:/ &lt;/p&gt;
{print $2}
&lt;p&gt;&apos; /proc/fs/lustre/osc/lustre-OST0001-osc-d1a26e00/import&lt;/p&gt;

&lt;p&gt;it searched usec_per_rpc string which is at end of file and we can see that awk did two reads - 1024 bytes and 341 bytes, string was found in second part. &lt;/p&gt;

&lt;p&gt;Previous implementation lprocfs_rd_import() wasn&apos;t able to return data from offset at all and just cut data at 1024 causing awk to behave unpredictable &lt;/p&gt;</comment>
                            <comment id="27689" author="sarah" created="Tue, 31 Jan 2012 22:55:24 +0000"  >&lt;p&gt;hit the same issue when testing interop between 2.1-wc1 client and 2.1.55 server&lt;/p&gt;

&lt;p&gt;Lustre: DEBUG MARKER: == sanity test 180a: test obdecho on osc == 19:30:56 (1328067056)&lt;br/&gt;
Lustre: Echo OBD driver; &lt;a href=&quot;http://www.lustre.org/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.lustre.org/&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;ul&gt;
			&lt;li&gt;glibc detected *** awk: malloc(): memory corruption: 0x0000000000f3a1b0 ***&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="27971" author="pjones" created="Mon, 6 Feb 2012 13:31:54 +0000"  >&lt;p&gt;duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-760&quot; title=&quot;Test failure on test suite sanity, subtest test_180a&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-760&quot;&gt;&lt;del&gt;LU-760&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="12117">LU-760</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|hzvbsn:</customfieldvalue>

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