Bug 902 - Need document known issue: qemu seg fault if nVidia's libGL installed
Summary: Need document known issue: qemu seg fault if nVidia's libGL installed
Status: VERIFIED FIXED
Alias: None
Product: Reference
Classification: Documentation
Component: handbook (show other bugs)
Version: 1.0
Hardware: All Multiple
: Undecided major
Target Milestone: 1.0 M4
Assignee: Scott Rifenbark
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-03-17 20:47 UTC by Edwin Zhai
Modified: 2011-03-23 19:04 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Zhai 2011-03-17 20:47:57 UTC
Scott,
Could you pls. help to add this in our document? You know, different host os need different fix, so we decide to document it as know issue and let end user choose right one for themselves.

Pls. see following background info, and let me know if need further details.

Mark would provide fix for Fedora system...

Thanks,
edwin

=============================================================
nVidia's proprietary OpenGL libraries are known to have compatibility
issues with qemu, resulting in a segfault. Please uninstall these
drivers or ensure the mesa libGL libraries precede nvidia's via LD_PRELOAD.

You can detect if nVidia's libGL precedes mesa's by(poky-qemu also does this)
user@machine$ ldd qemu-binary | grep -i nvidia
If find something like 
libGL.so.1 => /usr/lib/nvidia-current/libGL.so.1
libnvidia-tls.so.260.19.06...
Qemu is linked with nVidia's libGL, and likely to get segfault:(

There are workarounds for different host system. On ubuntu, you can prepend following environment variable before qemu starting command to fall back to mesa's libGL

LD_PRELOAD="/usr/lib/libGL.so $LD_PRELOAD" qemu .....
Comment 1 Richard Purdie 2011-03-21 07:12:14 UTC
The scripts themselves now warn about this problem.
Comment 2 Edwin Zhai 2011-03-23 19:04:19 UTC
Verified! Bug 649 requires these scripts and got fixed.