From owner-freebsd-ports-bugs@freebsd.org Thu Apr 30 11:08:52 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 39B7C2B7FA3 for ; Thu, 30 Apr 2020 11:08:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49CXgm0lYhz4ZQr for ; Thu, 30 Apr 2020 11:08:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 17D1D2B7FA2; Thu, 30 Apr 2020 11:08:52 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 178F52B7FA1 for ; Thu, 30 Apr 2020 11:08:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49CXgl5fkmz4ZQp for ; Thu, 30 Apr 2020 11:08:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BD5181DE30 for ; Thu, 30 Apr 2020 11:08:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 03UB8pGI055037 for ; Thu, 30 Apr 2020 11:08:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 03UB8prR055036 for ports-bugs@FreeBSD.org; Thu, 30 Apr 2020 11:08:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 246049] math/giacxcas: libgiac.so causes segfault when mixed with other libs Date: Thu, 30 Apr 2020 11:08:51 +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 Only Me X-Bugzilla-Who: thierry@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: yuri@freebsd.org 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 attachments.created 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-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2020 11:08:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246049 Bug ID: 246049 Summary: math/giacxcas: libgiac.so causes segfault when mixed with other libs Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: yuri@freebsd.org Reporter: thierry@FreeBSD.org Flags: maintainer-feedback?(yuri@freebsd.org) Assignee: yuri@freebsd.org Created attachment 213939 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D213939&action= =3Dedit Test case to reproduce the error: conftest.c math/giacxcas is built with Gcc, and a comment says: # Warning: don't remove the USE_GCC without a runtime test *after* make install USE_GCC=3D yes But this causes segfault when libgiac is mixed with other libraries, e.g. libmpfi. How to reproduce: - take the attached conftest.c and compile it with or without linking with -lgiac - both build fine - run the resulting conftest: the one linked with -lgiac will segfaut. E.g. on FreeBSD-12.1 / amd64: $ cc -o conftest conftest.c -isystem /usr/local/include -Wl,-rpath=3D/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -L/usr/local/lib -lgmp -lmpfr -lmpfi -lflint $ ./conftest 1.5.4 $ cc -o conftest conftest.c -isystem /usr/local/include -Wl,-rpath=3D/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -L/usr/local/lib -lgiac -lgmp -lmpfr -lmpfi -lflint $ ./conftest zsh: segmentation fault (core dumped) ./conftest $ lldb ./conftest (lldb) target create "./conftest" Current executable set to './conftest' (x86_64). (lldb) b main Breakpoint 1: where =3D conftest`main + 15 at conftest.c:6:3, address =3D 0x00000000004007cf (lldb) r Process 54933 launching Process 54933 launched: '/usr/ports/math/sage/work/sage-9.1.rc1/conftest' (x86_64) Process 54933 stopped * thread #1, name =3D 'conftest', stop reason =3D signal SIGSEGV: address a= ccess protected (fault address: 0x803d72a18) frame #0: 0x0000000803d72a18 -> 0x803d72a18: xorb %cl, %cl 0x803d72a1a: rep addb $0x8, %al 0x803d72a1d: addb %al, (%rax) 0x803d72a1f: addb %al, (%rax) --=20 You are receiving this mail because: You are the assignee for the bug.=