<?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>279</bug_id>
          
          <creation_ts>2010-09-06 19:51:45 +0000</creation_ts>
          <short_desc>[Qemux86-64] v86d segfault in libc-2.10.1.so</short_desc>
          <delta_ts>2010-12-21 06:07:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>edwin.zhai</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>josh</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>kunwei.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9608</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-09-06 19:51:45 +0000</bug_when>
    <thetext>Testing Env:    
Host: Ubuntu 10.04.1 LTS
Kernel: Linux vt-dp4 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 x86_64 GNU/Linux
Poky gitinfo(used to build qemu-native):
01fa22f80acae33b5da63d50ebe4dcaf0ec876a9 (ssh://git@git.pokylinux.org/poky-contrib.git:remotes/origin/builds/milestone)
All images file from http://autobuilder.pokylinux.org/milestone/20100905-1/.

Booting up qemux86-64 images, there will be v86d segfault error in dmesg. 

###
root@qemux86-64:~# dmesg | grep -i error
v86d[44]: segfault at 7fff39b7e000 ip 00007fd448283cdb sp 00007fff39b794c8 error 4 in libc-2.10.1.so[7fd448207000+151000]
v86d[205]: segfault at 7fff23ffa000 ip 00007fb5063b8cdb sp 00007fff23ff53a8 error 4 in libc-2.10.1.so[7fb50633c000+151000]
v86d[601]: segfault at 7fff633bc000 ip 00007fc9d4ce9cdb sp 00007fff633b7a18 error 4 in libc-2.10.1.so[7fc9d4c6d000+151000]
v86d[608]: segfault at 7fff4ee2e000 ip 00007f44fdd0acdb sp 00007fff4ee287a8 error 4 in libc-2.10.1.so[7f44fdc8e000+151000]
v86d[615]: segfault at 7fffcab23000 ip 00007ff0844edcdb sp 00007fffcab1de38 error 4 in libc-2.10.1.so[7ff084471000+151000]
v86d[666]: segfault at 7fffa546f000 ip 00007f29bd77acdb sp 00007fffa5469008 error 4 in libc-2.10.1.so[7f29bd6fe000+151000]
v86d[678]: segfault at 7fff8cf90000 ip 00007fd870508cdb sp 00007fff8cf8aa18 error 4 in libc-2.10.1.so[7fd87048c000+151000]
###

Reproduce Steps:
1. Download qemux86-64 image
2. start the image and check error with command dmesg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9908</commentid>
    <comment_count>1</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2010-09-20 02:38:23 +0000</bug_when>
    <thetext>The segfault comes from a memcpy, where the sending buffer of uvesafb is copied to receiving buffer of v86d. The root cause of the segfault is that these 2 buffers has different size: uvesafb is 65536, but v86d is 16384.

The different size is because that we use linux-wrs kernels(decides the uvesafb buffer size), and linux-libc-headers(2.6.33, decides the v86d&apos;s). Although this dismatch, the heads should be same as they are seldom changed. But recently the buffer size is enlarged from 16384 to 65536 on wrs kernel (701c502be984c38e242beca0e8e69903d9ead6b4), which cause this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10079</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2010-09-30 08:10:00 +0000</bug_when>
    <thetext>Bruce is working on changes to the linux-libc-headers such that we should have the correct connector size in the headers for qemux86-64 following his next patch queue submission.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10084</commentid>
    <comment_count>3</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2010-09-30 10:53:47 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Bruce is working on changes to the linux-libc-headers such that we should have
&gt; the correct connector size in the headers for qemux86-64 following his next
&gt; patch queue submission.

Josh,
Do you mean changing the linux-libc-headers-wrs? I have sent out pull request of syncing the linux-libc-headers with wrs kernels, just enlarge the size as same as wrs kernels.

Thanks,
edwin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10085</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2010-09-30 11:17:01 +0000</bug_when>
    <thetext>See my comments on the mailing list. Once I&apos;m done refactoring
the kernel recipe, the headers recipe will have its checkout
fixed and that patch will always be present. So we shouldn&apos;t need
to patch the kernel headers at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10099</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2010-09-30 12:51:00 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=7f17d12cfdcd975a777acf9fdf2b8e0ce701de05</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10239</commentid>
    <comment_count>6</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-10-08 01:15:44 +0000</bug_when>
    <thetext>Checked with 20101007 build, the bug is fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>