From owner-freebsd-ports-bugs@freebsd.org Tue Dec 8 22:06:23 2015 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 460E79D4060 for ; Tue, 8 Dec 2015 22:06:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3770C1C32 for ; Tue, 8 Dec 2015 22:06:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tB8M6NwJ005244 for ; Tue, 8 Dec 2015 22:06:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 205149] x11/kde4-workspace: kwin_opengl_test fails with segmentation fault Date: Tue, 08 Dec 2015 22:06:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dmk@ncf.ca X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kde@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2015 22:06:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205149 Bug ID: 205149 Summary: x11/kde4-workspace: kwin_opengl_test fails with segmentation fault Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: dmk@ncf.ca Assignee: kde@FreeBSD.org Flags: maintainer-feedback?(kde@FreeBSD.org) 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. -- You are receiving this mail because: You are the assignee for the bug.