<?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>698</bug_id>
          
          <creation_ts>2011-02-03 05:23:04 +0000</creation_ts>
          <short_desc>QEMU crash when using Ubuntu with NVIDIA proprietary Xorg driver</short_desc>
          <delta_ts>2011-03-31 05:19:46 +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>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>649</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matias">matias.sundman</reporter>
          <assigned_to name="Edwin Zhai">edwin.zhai</assigned_to>
          <cc>edwin.zhai</cc>
    
    <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>Ubuntu</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>11668</commentid>
    <comment_count>0</comment_count>
    <who name="Matias">matias.sundman</who>
    <bug_when>2011-02-03 05:23:04 +0000</bug_when>
    <thetext>Hi,
I am running a Ubuntu 10.04 x86-64 on an ordinary x86 Nehalem machine.

After running the following commands;

$ wget http://www.yoctoproject.org/downloads/poky/poky-laverne-4.0.tar.bz2
$ tar xjf poky-laverne-4.0.tar.bz2
$ source poky-laverne-4.0/poky-init-build-env poky-4.0-build
$ poky-qemu qemux86


matias@matias-desktop:/local/yocto/poky-4.0-build$ poky-qemu qemux86
Continuing with the following parameters:
KERNEL: [/local/yocto/poky-4.0-build/tmp/deploy/images/bzImage-qemux86.bin]
ROOTFS: [/local/yocto/poky-4.0-build/tmp/deploy/images/poky-image-sato-qemux86.ext3]
FSTYPE: [ext3]
Setting up tap interface under sudo
Acquiring lockfile for tap0...
Warning: distccd not present, no distcc support loaded.
Running qemu...
/local/yocto/poky-4.0-build/tmp/sysroots/x86_64-linux/usr/bin/qemu -kernel /local/yocto/poky-4.0-build/tmp/deploy/images/bzImage-qemux86.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -hda /local/yocto/poky-4.0-build/tmp/deploy/images/poky-image-sato-qemux86.ext3 -show-cursor -usb -usbdevice wacom-tablet -vga vmware -enable-gl -no-reboot --append &quot;vga=0 root=/dev/hda mem=128M ip=192.168.7.2::192.168.7.1:255.255.255.0 &quot;
Enabling opengl
/local/yocto/poky-laverne-4.0/scripts/..//scripts/poky-qemu-internal: line 445: 16569 Segmentation fault      $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT --append &quot;$KERNCMDLINE $SCRIPT_KERNEL_OPT&quot;
Set &apos;tap0&apos; nonpersistent
Releasing lockfile of preconfigured tap device &apos;tap0&apos;
matias@matias-desktop:/local/yocto/poky-4.0-build$ 


The qemu windows comes up for a moment but then dies due to the line 445: 16569 Segmentation fault.


Regards // Matias</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11669</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-02-03 11:28:45 +0000</bug_when>
    <thetext>Are you using the proprietary NVIDIA Xorg driver? There is a known issue with the openGL library it ships which can cause this behavior when qemu-native is compiled against it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11670</commentid>
    <comment_count>2</comment_count>
    <who name="Matias">matias.sundman</who>
    <bug_when>2011-02-03 11:35:39 +0000</bug_when>
    <thetext>This can be seen in the kernel log,
Feb  3 20:33:17 matias-desktop kernel: [43914.197990] qemu[18471]: segfault at 329bd4e ip 000000000329bd4e sp 00007fff4a6dfa00 error 15

I&apos;ve tried to start both qemux86-64 and qemux86 and both fails with the same fault.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11671</commentid>
    <comment_count>3</comment_count>
    <who name="Matias">matias.sundman</who>
    <bug_when>2011-02-03 13:00:21 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Are you using the proprietary NVIDIA Xorg driver? There is a known issue with
&gt; the openGL library it ships which can cause this behavior when qemu-native is
&gt; compiled against it.

Yes I am , how can I resolve it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11672</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-02-03 13:40:30 +0000</bug_when>
    <thetext>I&apos;m afraid we don&apos;t have a workaround for this yet. I was able to verify the crashes no longer happen when I uninstalled the NVIDIA driver and ensured that the OpenGL libraries no longer existed in /usr/lib/nvidia-current. Then when I rebuilt qemu-native (bitbake qemu-native -c clean; bitbake qemu-native), qemu would no longer crash. But this also means you&apos;d lose the performance of the proprietary driver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11673</commentid>
    <comment_count>5</comment_count>
    <who name="Matias">matias.sundman</who>
    <bug_when>2011-02-03 14:03:15 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; I&apos;m afraid we don&apos;t have a workaround for this yet. I was able to verify the
&gt; crashes no longer happen when I uninstalled the NVIDIA driver and ensured that
&gt; the OpenGL libraries no longer existed in /usr/lib/nvidia-current. Then when I
&gt; rebuilt qemu-native (bitbake qemu-native -c clean; bitbake qemu-native), qemu
&gt; would no longer crash. But this also means you&apos;d lose the performance of the
&gt; proprietary driver.

Aah, Ok -- I have two machines and both have the Nvidia driver since I am also doing some graphics intensive stuff. Have to think about this - perhaps a KVM,  Vmware instance but then I loose some of the CPU horse power ... :-)

Anyways, thanks for your prompt assistance!

Cheers // Matias</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11674</commentid>
    <comment_count>6</comment_count>
    <who name="Matias">matias.sundman</who>
    <bug_when>2011-02-03 14:09:38 +0000</bug_when>
    <thetext>One more thing, I just started a Common_PC WindRiver project with;

# make start-target TOPTS=&quot;-t&quot;

and that QEMU instance started nicely - perhaps something there to look at :-)

Cheers // Matias</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12546</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-03-13 22:40:51 +0000</bug_when>
    <thetext>See 649 also</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12563</commentid>
    <comment_count>8</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-03-14 06:51:16 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Are you using the proprietary NVIDIA Xorg driver? There is a known issue with
&gt; the openGL library it ships which can cause this behavior when qemu-native is
&gt; compiled against it.

Scott,
Can you give me some info of this known issue? I suspect nvidia GL library conflict with some system library.

Thanks,
edwin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13066</commentid>
    <comment_count>9</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-03-31 05:19:46 +0000</bug_when>
    <thetext>it&apos;s the same bug as 649 caused by nVidia proprietary driver.

*** This bug has been marked as a duplicate of bug 649 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>