[kde-freebsd] maintainer-feedback requested: [Bug 205149] x11/kde4-workspace: kwin_opengl_test fails with segmentation fault
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Dec 8 22:06:22 UTC 2015
dmk at ncf.ca has reassigned Bugzilla Automation <bugzilla at FreeBSD.org>'s request
for maintainer-feedback to kde at FreeBSD.org:
Bug 205149: x11/kde4-workspace: kwin_opengl_test fails with segmentation fault
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205149
--- Description ---
Hi. Noticed yesterday that desktop effects weren't working on my FreeBSD
10.2-RELEASE-p8 amd64 box. /usr/local/lib/kde4/libexec/kwin_opengl_test keeps
seg-faulting on me. I rebuilt kde4-workspace and nvidia-driver with
WITH_DEBUG=yes and managed to get a decent backtrace:
#0 0x000000080697d201 in pthread_mutexattr_setkind_np () from /lib/libthr.so.3
[New LWP 100731]
(gdb) bt
#0 0x000000080697d201 in pthread_mutexattr_setkind_np () from /lib/libthr.so.3
#1 0x0000000801a6c9c7 in glXCreateNewContext () from /usr/local/lib/libGL.so.1
#2 0x0000000804bd958c in _nv021glcore () from
/usr/local/lib/libnvidia-glcore.so.1
#3 0x0000000804f4821e in _nv015glcore () from
/usr/local/lib/libnvidia-glcore.so.1
#4 0x0000000801a4cefb in glXCreateNewContext () from /usr/local/lib/libGL.so.1
#5 0x0000000801a4da0a in glXCreateNewContext () from /usr/local/lib/libGL.so.1
#6 0x0000000800605a9f in r_debug_state () from /libexec/ld-elf.so.1
#7 0x00000008006050ee in __tls_get_addr () from /libexec/ld-elf.so.1
#8 0x0000000800603439 in .text () from /libexec/ld-elf.so.1
#9 0x0000000000000000 in ?? ()
Now, pthread_mutexattr_setkind_np reminded me of this bug:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203372
For a test, I ran the program this way: LD_PRELOAD=/lib/libthr.so.3
kwin_opengl_test . It worked fine, no seg fault.
I think the issue might be that nvidia's libGL.so.1 doesn't link to libthr.so.3
. Here's a LDD of the file:
/usr/local/lib/.nvidia/libGL.so.1:
libnvidia-tls.so.1 => /usr/local/lib/libnvidia-tls.so.1 (0x801736000)
libnvidia-glcore.so.1 => /usr/local/lib/libnvidia-glcore.so.1
(0x801a00000)
libX11.so.6 => /usr/local/lib/libX11.so.6 (0x80453a000)
libXext.so.6 => /usr/local/lib/libXext.so.6 (0x804873000)
libc.so.7 => /lib/libc.so.7 (0x800821000)
libm.so.5 => /lib/libm.so.5 (0x804a84000)
libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0x804cad000)
librpcsvc.so.5 => /usr/lib/librpcsvc.so.5 (0x804ecc000)
libXau.so.6 => /usr/local/lib/libXau.so.6 (0x8050d5000)
libpthread-stubs.so.0 => /usr/local/lib/libpthread-stubs.so.0
(0x8052d7000)
libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x8054d8000)
Anyway, I have no idea how to actually fix it. Linking libthr before libGL
might do it, (kwin_opengl_test does link to libthr according to ldd) but I have
no idea how to make that happen.
More information about the kde-freebsd
mailing list