<?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>6687</bug_id>
          
          <creation_ts>2014-09-05 09:33:05 +0000</creation_ts>
          <short_desc>qemu for ppc crashes running postinsts</short_desc>
          <delta_ts>2015-01-22 09:35:00 +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>virtual machines</component>
          <version>1.7</version>
          <rep_platform>All</rep_platform>
          <op_sys>ppc</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>1.8 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>otavio</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>zhenhua.luo</cc>
          
          <qa_contact name="Mihail Stanciu">stanciux.mihail</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>45418</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-09-05 09:33:05 +0000</bug_when>
    <thetext>If you build eg core-image-sato with MACHINE=qemuppc you&apos;ll see that whilst the image has successfully build, the qemu-executed post-install scripts have crashed in qemu:

$ file *
qemu_gtk-query-immodules-2.0_20140903-185832_23241.core: ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;modu/data/poky-master/tmp/work/qemuppc-poky-linux/core-image-sato/1.0-r0/rootfs/usr&apos;
qemu_gtk-query-immodules-2.0_20140903-185839_24833.core: ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;modu/data/poky-master/tmp/work/qemuppc-poky-linux/core-image-sato/1.0-r0/rootfs/usr&apos;
qemu_gtk-query-immodules-2.0_20140904-160132_8327.core:  ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;modu/data/poky-master/tmp/work/qemuppc-poky-linux/core-image-sato-base/1.0-r0/rootf&apos;
qemu_gtk-query-immodules-2.0_20140904-160137_9906.core:  ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;modu/data/poky-master/tmp/work/qemuppc-poky-linux/core-image-sato-base/1.0-r0/rootf&apos;
qemu_pango-querymodules_20140903-185742_17441.core:      ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;odul/data/poky-master/tmp/work/qemuppc-poky-linux/core-image-sato/1.0-r0/rootfs/usr&apos;
qemu_pango-querymodules_20140903-185839_24829.core:      ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;odul/data/poky-master/tmp/work/qemuppc-poky-linux/core-image-sato/1.0-r0/rootfs/usr&apos;
qemu_pango-querymodules_20140904-160034_2114.core:       ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;odul/data/poky-master/tmp/work/qemuppc-poky-linux/core-image-sato-base/1.0-r0/rootf&apos;
qemu_pango-querymodules_20140904-160137_9902.core:       ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;odul/data/poky-master/tmp/work/qemuppc-poky-linux/core-image-sato-base/1.0-r0/rootf&apos;
qemu_udevadm_20140903-155700_3565.core:                  ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;oky-linux/core-image-base/1.0-r0/rootfs/bin&apos;
qemu_udevadm_20140903-155703_4203.core:                  ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;oky-linux/core-image-base/1.0-r0/rootfs/bin&apos;
qemu_udevadm_20140903-185835_23965.core:                 ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;oky-linux/core-image-sato/1.0-r0/rootfs/bin&apos;
qemu_udevadm_20140903-185841_24836.core:                 ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;oky-linux/core-image-sato/1.0-r0/rootfs/bin&apos;
qemu_udevadm_20140904-160135_9059.core:                  ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;oky-linux/core-image-sato-base/1.0-r0/rootf&apos;
qemu_udevadm_20140904-160139_9909.core:                  ELF 32-bit MSB core file, PowerPC or cisco 4500, version 1 (SYSV), SVR4-style, from &apos;oky-linux/core-image-sato-base/1.0-r0/rootf&apos;

This doesn&apos;t get counted as an error because they&apos;ll just be executed on the target on first boot.  I&apos;ve confirmed that this happened before glibc was merged (tested against 954e45b)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45566</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-09-12 11:36:08 +0000</bug_when>
    <thetext>Investigation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45609</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-09-15 08:07:54 +0000</bug_when>
    <thetext>Durinmg the course of my investigation, I tried the following:
- Changing the CPU model that is passed to qemu-ppc during the run of gdk-pixbuf postinstals: switched from 7400 to G4, same as the processor used with qemu system emulation (runqemu); basically it is the same processor.
- Applied a patch from qemu repo that was added after 2.1 release and that was fixing a qemu abort for ppc emulation: qemu SHA1: fbdc200ac2d0d29e88ee6af9b77810c0f84265a6; the solved issue was present in linux-user qemu mode.

None of the above worked, so further investigation is needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45610</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-09-15 08:13:45 +0000</bug_when>
    <thetext>During the course of the investigation, I was not able to reproduce the issue for any other qemu machines. I tried with qemux86, qemux86-64, qemumips.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47381</commentid>
    <comment_count>4</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-12-04 19:08:31 +0000</bug_when>
    <thetext>tmp/work/qemuppc-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs details:

NOTE: Running intercept scripts:
NOTE: &gt; Executing update_pixbuf_cache intercept ...
Invalid instruction
NIP 0fc6c610   LR 0fdc42e4 CTR 0fc6bfa0 XER 00000000
MSR 00006040 HID0 00000000  HF 00006000 idx 0
TB 00000000 00000000
GPR00 0000000000000020 00000000f6ffe190 00000000f67e04c0 00000000f6ffe240
GPR04 000000000000002f 00000000f6ffe258 0000000000000000 000000000fd8418c
GPR08 0000000000000800 0000000000000046 000000000000002f 000000007f7f7f7f
GPR12 0000000048004484 0000000010019850 0000000000000000 0000000000000000
GPR16 0000000000000000 0000000000000000 00000000f6ffe258 000000000fef0c14
GPR20 00000000f6ffe3d8 0000000000000000 0000000000000000 0000000000000000
GPR24 0000000010018a00 0000000000000000 0000000010023248 00000000f6ffe240
GPR28 00000000f6ffe220 00000000f6ffe220 000000000fdc42e4 00000000f6ffe190
CR 48004484  [ G  L  -  -  G  G  L  G  ]             RES ffffffff
FPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPSCR 00000000
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction (core dumped)
WARNING: The postinstall intercept hook &apos;update_pixbuf_cache&apos; failed (exit code: 132)! See log for details!
WARNING: The postinstalls for the following packages will be postponed for first boot: gdk-pixbuf-loader-png gdk-pixbuf-loader-gif gdk-pixbuf-loader-xpm gdk-pixbuf-loader-jpeg
NOTE:   * postponing gdk-pixbuf-loader-png</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47393</commentid>
    <comment_count>5</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-12-05 12:25:28 +0000</bug_when>
    <thetext>A fix is in the work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47416</commentid>
    <comment_count>6</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-12-08 12:03:38 +0000</bug_when>
    <thetext>Fixed with commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b813bdebb36501500e86fea5f7e15b4b15ea0902</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48179</commentid>
    <comment_count>7</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-01-22 09:35:00 +0000</bug_when>
    <thetext>Verified on master: d9d5b8b499af3ae01a1e33d0d3969c54c2d4ab1b

Steps taken:
1. Created a new core-image-sato for qemuppc.
2. Checked the log at: tmp/work/qemuppc-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs for any messages similar to those posted by Cristian. None were found.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>