<?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>8888</bug_id>
          
          <creation_ts>2016-01-06 15:54:11 +0000</creation_ts>
          <short_desc>qemu-x86-64 crashes when running postinst intercepts</short_desc>
          <delta_ts>2016-03-01 08:04:38 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.0</version>
          <rep_platform>All</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>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alexandru.costinx.roman</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Alexandru Roman">alexandru.costinx.roman</qa_contact>
          <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>57590</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-01-06 15:54:11 +0000</bug_when>
    <thetext>If I build core-image-sato for intel-corei7-64 I end up with core dumps in my build directory because qemu segfaulted:

NOTE: Running intercept scripts:
NOTE: &gt; Executing update_font_cache intercept ...
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction

I&apos;m guessing the target binaries are using instructions that qemu doesn&apos;t support?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57640</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2016-01-07 16:23:35 +0000</bug_when>
    <thetext>Investigation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57647</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-01-07 17:20:08 +0000</bug_when>
    <thetext>Just to update the bug, there are several places where this could have gone wrong:

1. regression into qemu
2. new compiler	using new opcodes that qemu doesn&apos;t support
3. software using new opcodes that qemu doesn&apos;t support
4. wrong cpu type being passed to qemu in the wrapper</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58730</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-08 14:15:11 +0000</bug_when>
    <thetext>fontconfig is executing the popcnt instruction that is part of SSE4.2, as requested by tune-corei7.inc.

Testing a patch to tell qemu.bbclass to pass -cpu Nelhalem so this instruction is emulated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58733</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-08 15:16:32 +0000</bug_when>
    <thetext>Patch posted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58885</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-11 14:13:09 +0000</bug_when>
    <thetext>Fixed in oe-core fef106b9b97ec48bad2b9a084357b884f653d6c8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59559</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2016-03-01 08:04:38 +0000</bug_when>
    <thetext>Verified on master: 4006a7f2762ccd5dcbc6cdff49482d4387a73261</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>