<?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>1924</bug_id>
          
          <creation_ts>2012-01-18 23:59:13 +0000</creation_ts>
          <short_desc>[LTP] &apos;vma01&apos; case failed on non-x86 platforms with Yocto 1.2 M2 rc1</short_desc>
          <delta_ts>2021-05-20 15:35:30 +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>1.2</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>akuster</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>dvhart</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>jingdong.lu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liming.wang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18257</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-01-18 23:59:13 +0000</bug_when>
    <thetext>Tree/branch: poky/1.2_M2
Commit: 0f4d99d207b224bb9ce23de00a48f795ae20b3a0
Image location:
http://autobuilder.pokylinux.org/nightly/20120111-3/machines/

LTP version: 20110915

&apos;vma01&apos; case failed on beagleboard, routerstationpro and mpc8315e-rdb. The error message is like below:
############
vma01       0  TINFO  :  t = 0x4000c000
vma01       0  TINFO  :  v = 0x40107000
u = 0x4000f000
vma01       0  TINFO  :  s = 0x4000f000, t = 0x40012000
vma01       0  TINFO  :  s = 0x40012000, t = 0x40013000
vma01       1  TBROK  :  unexpected VMA found.
vma01       2  TBROK  :  Remaining cases broken
#############


Steps:
######
1. root@beagleboard:~# cd /opt/ltp/testcases/bin/
2. root@beagleboard:/opt/ltp/testcases/bin# ./vma01 
######</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19335</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-22 14:29:33 +0000</bug_when>
    <thetext>Do we know if these same failures happen in qemu ? We have some hardware issues, and can&apos;t reproduce these at the moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19473</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-03-26 08:30:43 +0000</bug_when>
    <thetext>I have tested this case in qemu sato-sdk image with 1.2 M3. On qemuarm and qemuppc, this issue also happened:
##############
root@qemuarm:/opt/ltp/testcases/bin# ./vma01 
parent: t = 0x400fa000
child : u = 0x400fd000
vma01       0  TINFO  :  s = 0x400fd000, t = 0x40100000
vma01       1  TBROK  :  no matched s = 0x40100000 found.
vma01       2  TBROK  :  Remaining cases broken
vma01       1  TBROK  :  unexpected VMA found.
vma01       2  TBROK  :  Remaining cases broken
root@qemuarm:/opt/ltp/testcases/bin# 
##############

On qemumips, the case could pass:
##############
root@qemumips:/opt/ltp/testcases/bin# ./vma01 
parent: t = 0x778d2000
child : u = 0x778cf000
vma01       0  TINFO  :  s = 0x778cf000, t = 0x778d2000
vma01       0  TINFO  :  s = 0x778d2000, t = 0x778d5000
vma01       1  TPASS  :  two 3*ps VMAs found.
root@qemumips:/opt/ltp/testcases/bin# 
################

Steps:
######
1. root@beagleboard:~# cd /opt/ltp/testcases/bin/
2. root@beagleboard:/opt/ltp/testcases/bin# ./vma01
######</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19732</commentid>
    <comment_count>3</comment_count>
    <who name="Yang Shi">yang.shi</who>
    <bug_when>2012-03-31 01:06:58 +0000</bug_when>
    <thetext>Looked into the test case code, it sounds the test case assumes child vma pointer &lt; parent vma pointer. It&apos;s true on x86, but false on ppc and arm. So, on ppc and arm, the test case will search vma out of the bound to cause the issue.

And, although &quot;u = mmap(t + 3*ps, 3*ps, PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, 0, 0);&quot; is called to get child vma pointer, however, kernel assigns child vma pointer to &quot;t - 3*ps&quot; on x86. According to man page of mmap, the addr parameter is just a hint, so kernel doesn&apos;t make sure the final address is as same as addr parameter.

So, it sounds a test case bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19734</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-03-31 01:23:54 +0000</bug_when>
    <thetext>And this is precisely why LTP test case bugs so frequently languish. Nice work Yang Shi.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19739</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-31 03:26:09 +0000</bug_when>
    <thetext>Agreed. Great investigation Yang. I&apos;ve change the state on this to waitforupstream, since it
is a LTP bug. We should bring this to the attention of the LTP maintainers via ltp-list@lists.sourceforge.net 
and pick up a fix later. For now, we&apos;ll mark this as a know and understood failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74225</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2017-06-15 15:24:46 +0000</bug_when>
    <thetext>Catalin is getting involved in oe-core so this is a good defect to work on.

Catalin, Please check if this is fixed in the version of LTP used in oe-core/master or even the most recent version of LTP&apos;s development tree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74774</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-07-05 10:53:36 +0000</bug_when>
    <thetext>Waiting For Upstream status is being removed, changing to Accepted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83714</commentid>
    <comment_count>8</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-05-03 01:46:27 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Waiting For Upstream status is being removed, changing to Accepted.

is this still an issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90438</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-05-20 15:35:30 +0000</bug_when>
    <thetext>http://downloads.yoctoproject.org/releases/yocto/yocto-3.3/testreport.txt shows vma01 isn&apos;t marked as failing anywhere</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>