From owner-freebsd-bugs@freebsd.org Wed Feb 3 19:20:53 2016 Return-Path: Delivered-To: freebsd-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 848C7A9A697 for ; Wed, 3 Feb 2016 19:20:53 +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 5BE04142B for ; Wed, 3 Feb 2016 19:20:53 +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 u13JKrxa085842 for ; Wed, 3 Feb 2016 19:20:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 206899] [ld-elf] core dump when linking against x11/nvidia-driver's libGL.so and another library that links against libthr.so Date: Wed, 03 Feb 2016 19:20:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dbn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2016 19:20:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206899 Bug ID: 206899 Summary: [ld-elf] core dump when linking against x11/nvidia-driver's libGL.so and another library that links against libthr.so Product: Base System Version: 10.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: dbn@FreeBSD.org CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org I believe this to be the root cause for bug #205149. I will be committing a work-around that will fix that bug however the underlying issue still remai= ns.=20=20 I'm not sure if this is a bug with ld-elf or x11/nvidia-driver however given that this is not an issue with Linux I am opting for the former.=20=20 I think the best wau to explain the bug is with a (reproducable) demonstrat= ion: > sudo pkg install -y nvidia-driver > /dev/null > touch libtest.c > cc -shared -o libtest.so -lthr libtest.c > echo 'int main(int argc, char **argv) { return 0; }' > test.c > cc -o test -L/usr/local/lib -L. -ltest -lGL test.c > env LD_LIBRARY_PATH=3D. ./test Segmentation fault (core dumped) > gdb test test.core=20 GNU gdb 6.1.1 [FreeBSD] (gdb) bt #0 0x000000080060b2a2 in _rtld_is_dlopened () from /libexec/ld-elf.so.1 #1 0x0000000800604c8d in _r_debug_postinit () from /libexec/ld-elf.so.1 #2 0x000000080060246d in .text () from /libexec/ld-elf.so.1 #3 0x0000000802d3a365 in _nv003glcore () from /usr/local/lib/libnvidia-glcore.so.1 #4 0x000000080299e690 in _nv023glcore () from /usr/local/lib/libnvidia-glcore.so.1 #5 0x0000000802d1effc in _nv015glcore () from /usr/local/lib/libnvidia-glcore.so.1 #6 0x0000000800aa64eb in glXCreateNewContext () from /usr/local/lib/libGL.= so.1 #7 0x0000000800a6ee5a in .init () from /usr/local/lib/libGL.so.1 #8 0x0000000800604a9f in r_debug_state () from /libexec/ld-elf.so.1 #9 0x00000008006040ee in __tls_get_addr () from /libexec/ld-elf.so.1 #10 0x0000000800602439 in .text () from /libexec/ld-elf.so.1 #11 0x0000000000000000 in ?? () --=20 You are receiving this mail because: You are the assignee for the bug.=