<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1138</bug_id>
          
          <creation_ts>2011-06-06 06:58:09 +0000</creation_ts>
          <short_desc>[LTP] Some growfiles cases failed with Yocto 1.1 M1 build</short_desc>
          <delta_ts>2013-05-02 05:38:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-tooling</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>suggestion is post 1.1. test cases still fail with eglibc 4.5.1(June 16)</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>dvhart</cc>
    
    <cc>ke.yu</cc>
    
    <cc>sgw</cc>
    
    <cc>wenhuax.fan</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>14168</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-06-06 06:58:09 +0000</bug_when>
    <thetext>Tree/Branch: Poky/1.1_M1
Poky Commit: 4ff7af11ef69849ef9c16f585eae58ac920b222b
Meta Branch: 1.1_M1
Meta Commit: fc719f0cd6530ce15148b4aa274f1644b461b298

With Yocto 1.1 M1 RC2 build, some growfiles cases failed on x86/x86-64 targets(blacksand and sugarbay), which used to run pass in Yocto 1.0 M4. Growfiles test case will create and truncate files in gradual steps using write, and lseek.

The error log of these failure cases show:
#######
&lt;&lt;&lt;test_output&gt;&gt;&gt;
growfiles(gf02): 13903 growfiles.c/2144: 1 tlibio.c/1675 aio_write, aio_error = 1 Operation not permitted; random method 0200002
growfiles(gf02): 13903 growfiles.c/1679: 1 Hit max errors value of 1
gf02        1  TFAIL  :  Test failed
#######

To reproduce the bug, you could download the LTP from http://downloads.sourceforge.net/project/ltp/LTP%20Source/ltp-20110606/ltp-full-20110606.bz2 and build it in target system. Then you could find growfiles under &quot;./testcases/kernel/fs/doio/growfiles.c&quot;. Run it with commands &quot;growfiles -W gf02 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ -d $TMPDIR&quot; you will get above failure. $TMPDIR is a temp folder you create for temp file save.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14171</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-06-06 07:24:09 +0000</bug_when>
    <thetext>We&apos;ve got a kernel uprev between those test points, so likely this
is either a LTP test case issue or something that the kernel has done
on purpose and LTP hasn&apos;t updated yet. At least that is the typical
issue/premise for this sort of issue. The 3rd choice is obvious: it&apos;s
a mainline kernel regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14231</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-09 14:33:51 +0000</bug_when>
    <thetext>Was the move to gcc 4.6.0 also between those points?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14232</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-09 14:35:31 +0000</bug_when>
    <thetext>Can we confirm this is still broken on gcc 4.5.1 before assigning it as a kernel bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14246</commentid>
    <comment_count>4</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-06-09 21:40:18 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; The error log of these failure cases show:
&gt; #######
&gt; &lt;&lt;&lt;test_output&gt;&gt;&gt;
&gt; growfiles(gf02): 13903 growfiles.c/2144: 1 tlibio.c/1675 aio_write, aio_error =
&gt; 1 Operation not permitted; random method 0200002
&gt; growfiles(gf02): 13903 growfiles.c/1679: 1 Hit max errors value of 1
&gt; gf02        1  TFAIL  :  Test failed
&gt; #######
aio_write is implemented in libc&apos;s librt and I think it&apos;s not related to kernel aio( io_submit(), libaio).  Since aio_write doesn&apos;t need support of the kernel, I don&apos;t think this bug is related to kernel change.
I think eglibc 4.6 may be the cause since previously with eglibc 4.5 we don&apos;t have this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14247</commentid>
    <comment_count>5</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-06-09 21:46:28 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #0)
&gt; &gt; The error log of these failure cases show:
&gt; &gt; #######
&gt; &gt; &lt;&lt;&lt;test_output&gt;&gt;&gt;
&gt; &gt; growfiles(gf02): 13903 growfiles.c/2144: 1 tlibio.c/1675 aio_write, aio_error =
&gt; &gt; 1 Operation not permitted; random method 0200002
&gt; &gt; growfiles(gf02): 13903 growfiles.c/1679: 1 Hit max errors value of 1
&gt; &gt; gf02        1  TFAIL  :  Test failed
&gt; &gt; #######
&gt; aio_write is implemented in libc&apos;s librt and I think it&apos;s not related to kernel
&gt; aio( io_submit(), libaio).  Since aio_write doesn&apos;t need support of the kernel,
&gt; I don&apos;t think this bug is related to kernel change.


&gt; I think eglibc 4.6 may be the cause since previously with eglibc 4.5 we don&apos;t
&gt; have this bug.
Sorry, actually I can&apos;t 100% make sure eglibc 4.5 is ok here. Jiajun is trying to see if 4.5 is ok.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14302</commentid>
    <comment_count>6</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-06-15 19:57:09 +0000</bug_when>
    <thetext>Hi all,
I built the target image against the same commit with eglibc 4.5.1. Then I build the LTP test cases in the image. These growfiles cases still fail.

######
root@sugarbay:/opt/ltp/testcases/bin# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-poky-linux/4.5.1/lto-wrapper
Target: x86_64-poky-linux
Configured with: /home/jxu49/osel/poky/build/tmp/work/snb-poky-linux/gcc-4.5.1-r5/gcc-4.5.1/configure --build=i686-linux --host=x86_64-poky-linux --target=x86_64-poky-linux --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --with-libtool-sysroot=/home/jxu49/osel/poky/build/tmp/sysroots/sugarbay --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=x86_64-poky-linux- --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap --enable-cheaders=c_global --with-local-prefix=/home/jxu49/osel/poky/build/tmp/sysroots/sugarbay/usr --with-gxx-include-dir=/usr/include/c++/ --enable-nls --enable-__cxa_atexit
Thread model: posix
gcc version 4.5.1 (GCC)
######

######
root@sugarbay:/opt/ltp/testcases/bin# ./growfiles -W gf02 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ -d /opt/tmp/
growfiles(gf02): 17568 growfiles.c/2144: 1 tlibio.c/1675 aio_write, aio_error = 1 Operation not permitted; random method 0200002
growfiles(gf02): 17568 growfiles.c/1679: 1 Hit max errors value of 1
gf02        1  TFAIL  :  Test failed
######</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14310</commentid>
    <comment_count>7</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-16 08:01:15 +0000</bug_when>
    <thetext>I presume you mean gcc 4.5.1? not eglibc?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14311</commentid>
    <comment_count>8</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-06-16 08:12:47 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; I presume you mean gcc 4.5.1? not eglibc?

You are right, Darren. It&apos;s gcc 4.5.1, not eglibc. Sorry for confusion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15647</commentid>
    <comment_count>9</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-08-22 20:11:12 +0000</bug_when>
    <thetext>Darren: I don&apos;t have access to any hardware that can reproduced this issue. 

Although, I see this as a minor issue that can be dealt with post 1.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16348</commentid>
    <comment_count>10</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-09-21 00:29:55 +0000</bug_when>
    <thetext>With 1.1 M4 RC2 build, this issue happened on routerstationpro and beagleboard. It can pass on mpc8315e-rdb.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18287</commentid>
    <comment_count>11</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-01-19 23:09:50 +0000</bug_when>
    <thetext>With 1.2 M2 RC1 build, all growfiles cases can pass with 3.0 kernel on beagleboard, routerstationpro and mpc8315e-rdb.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32740</commentid>
    <comment_count>12</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-04-29 23:22:13 +0000</bug_when>
    <thetext>Is this still an issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32834</commentid>
    <comment_count>13</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-05-02 05:38:15 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; Is this still an issue?

There is no such issue in 1.3 and 1.4. Mark as fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>