From owner-freebsd-ports-bugs@freebsd.org Sun Jan 29 01:57:19 2017 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 F331FCC28DD for ; Sun, 29 Jan 2017 01:57:19 +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 CA1FB1991 for ; Sun, 29 Jan 2017 01:57:19 +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 v0T1vJUm003760 for ; Sun, 29 Jan 2017 01:57:19 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216563] lang/gcc5: lang/gcc: stack alignment insufficient on i386 for SSE2 code. Date: Sun, 29 Jan 2017 01:57:19 +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: mandree@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gerald@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 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.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 01:57:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216563 Bug ID: 216563 Summary: lang/gcc5: lang/gcc: stack alignment insufficient on i386 for SSE2 code. Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: gerald@FreeBSD.org Reporter: mandree@FreeBSD.org Assignee: gerald@FreeBSD.org Flags: maintainer-feedback?(gerald@FreeBSD.org) GCC 5.4.0 and also 4.9.0 from ports fail to generate working code for rawtherapee, a C++11 application, and cause it to drop core with a SIGBUS on i386. This is with -O3 -msse2.=20=20 amd64 is unaffected. Other architectures are untested. GCC 6 and 7-devel are untested. To reproduce, compile ports/heads/graphics/rawtherapee-devel as of r432608 (exactly this version!), add "CFLAGS+=3D-g" and "STRIP=3D" to the Makefile = and see that it is hit by a SIGBUS in post-install when it tries to check if the program is able to start. DO NOT USE WITH_DEBUG=3Dyes, that will change com= piler flags and mask the bug! Debugging this reveals that the generated code crashes when initalizing an = auto double[8] =3D { ... } vector upon entry to the function, when it tries to c= opy it around with SSE instructions that require 16-byte alignment, but the source address has some 0x...8 address. This affects i386 on 10.3-RELEASE and 11.0-RELEASE (both fully patched). I am reporting this against GCC because this does NOT happen when the code = is recompiled with base clang (3.4.0 for FreeBSD 10.3, or 3.8.0 for FreeBSD 11= .0.) without changing anything else on the system (in particular, gdk, gtk, ... = are NOT touched when switching compilers). Workaround: add -mstackrealign. --=20 You are receiving this mail because: You are the assignee for the bug.=