glGenFramebuffers fails when linked with OSMesa AND X11
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mesa (Ubuntu) |
Fix Released
|
High
|
Timo Aaltonen |
Bug Description
Hi.
In latest update for Ubuntu Desktop 14.04.4 LTS, there is a serious problem when calling glGenFramebuffers() in a program that links both libOSMesa and libX11.
Attached is a test program that can verify this. If the program is compiled with the following
gcc check_glgenfram
then glGenFramebuffers() will fail when current context is set to GLX and the program will dump core upon exit. This is from gdb:
Program received signal SIGSEGV, Segmentation fault.
If the program is compiled with the following, then it works.
gcc check_glgenfram
This is a problem if you have a program that needs both libs such as the Open Source Video Mixer Snowmix.
Best regards
Peter Maersk-Moller
Installed libs:
ls -l /usr/lib/
lrwxrwxrwx 1 root root 18 Jan 12 21:03 /usr/lib/
lrwxrwxrwx 1 root root 18 Jan 12 21:03 /usr/lib/
-rw-r--r-- 1 root root 3708216 Jan 12 21:03 /usr/lib/
ls -l /usr/lib/
-rw-r--r-- 1 root root 2188236 Dec 4 2013 /usr/lib/
lrwxrwxrwx 1 root root 15 Dec 4 2013 /usr/lib/
lrwxrwxrwx 1 root root 15 Dec 4 2013 /usr/lib/
-rw-r--r-- 1 root root 1265072 Dec 4 2013 /usr/lib/
ls -l /usr/lib/
lrwxrwxrwx 1 root root 13 Jan 12 21:03 /usr/lib/
ls -l /usr/lib/
-rw-r--r-- 1 root root 31 Jan 12 21:03 /usr/lib/
lrwxrwxrwx 1 root root 14 Jan 12 21:03 /usr/lib/
lrwxrwxrwx 1 root root 14 Jan 12 21:03 /usr/lib/
-rw-r--r-- 1 root root 413968 Jan 12 21:03 /usr/lib/
ldd /usr/lib/
linux-vdso.so.1 => (0x00007ffe885c
libdrm_intel.so.1 => /usr/lib/
libdrm_
libdrm_radeon.so.1 => /usr/lib/
libdrm.so.2 => /usr/lib/
libexpat.so.1 => /lib/x86_
libpthread.so.0 => /lib/x86_
libdl.so.2 => /lib/x86_
libstdc++.so.6 => /usr/lib/
libm.so.6 => /lib/x86_
libc.so.6 => /lib/x86_
libgcc_s.so.1 => /lib/x86_
libpciaccess.so.0 => /usr/lib/
/lib64/
libz.so.1 => /lib/x86_
ldd /usr/lib/
linux-vdso.so.1 => (0x00007ffc773d
libpthread.so.0 => /lib/x86_
libdl.so.2 => /lib/x86_
libstdc++.so.6 => /usr/lib/
libm.so.6 => /lib/x86_
libc.so.6 => /lib/x86_
libgcc_s.so.1 => /lib/x86_
/lib64/
ldd /usr/lib/
linux-vdso.so.1 => (0x00007ffe4328
libxcb.so.1 => /usr/lib/
libdl.so.2 => /lib/x86_
libc.so.6 => /lib/x86_
libXau.so.6 => /usr/lib/
libXdmcp.so.6 => /usr/lib/
/lib64/
ldd /usr/lib/
linux-vdso.so.1 => (0x00007ffc7f78
libglapi.so.0 => /usr/lib/
libXext.so.6 => /usr/lib/
libXdamage.so.1 => /usr/lib/
libXfixes.so.3 => /usr/lib/
libX11-xcb.so.1 => /usr/lib/
libX11.so.6 => /usr/lib/
libxcb-glx.so.0 => /usr/lib/
libxcb-dri2.so.0 => /usr/lib/
libxcb-dri3.so.0 => /usr/lib/
libxcb-
libxcb-sync.so.1 => /usr/lib/
libxcb.so.1 => /usr/lib/
libxshmfence.so.1 => /usr/lib/
libXxf86vm.so.1 => /usr/lib/
libdrm.so.2 => /usr/lib/
libpthread.so.0 => /lib/x86_
libdl.so.2 => /lib/x86_
libc.so.6 => /lib/x86_
libXau.so.6 => /usr/lib/
libXdmcp.so.6 => /usr/lib/
/lib64/
Hardware:
Lenovo Thinkpad T61
Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (secondary) (rev 0c)
Changed in cairo (Ubuntu): | |
assignee: | nobody → Timo Aaltonen (tjaalton) |
importance: | Undecided → High |
tags: | added: trusty |
Source for test program attached