From owner-freebsd-office@freebsd.org Fri Jan 27 18:14:25 2017 Return-Path: Delivered-To: freebsd-office@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 C5C8CCC07EF for ; Fri, 27 Jan 2017 18:14:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AF031FF8 for ; Fri, 27 Jan 2017 18:14:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id AE5BFCC07EE; Fri, 27 Jan 2017 18:14:25 +0000 (UTC) Delivered-To: office@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 ADFE2CC07ED for ; Fri, 27 Jan 2017 18:14:25 +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 9D65FFF6 for ; Fri, 27 Jan 2017 18:14:25 +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 v0RIEPSH016852 for ; Fri, 27 Jan 2017 18:14:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: office@FreeBSD.org Subject: [Bug 216206] editors/openoffice-4 and editors/openoffice-devel: fails to build with clang 4.0 Date: Fri, 27 Jan 2017 18:14:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: truckman@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: office@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-office@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Office applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2017 18:14:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216206 --- Comment #20 from Don Lewis --- Another piece of the puzzle is --enable-debug. The new operator is overrid= den to call allocate(), which in turn calls rtl_allocateMemory(), which either calls malloc() or uses the internal allocator code, depending on the --with-alloc setting. Inside allocate() the allocation size (n) is adjusted by n =3D rTraits.size= (n).=20 If --enable-debug is set, then the size is increased by 8 bytes. Then the pointer returned by rtl_allocateMemory() is adjusted by rTraits.init (p), w= hich writes a signature to the first 8 bytes of the memory block and increments = the pointer by 8. When the memory is freed, the pointer is decremented by 8 bytes and the signature is checked before calling rtl_freeMemory(). Basically even if rtl_allocateMemory() always returns a properly aligned bl= ock of memory, --enable-debug will break things if 16 byte alignment is needed. --=20 You are receiving this mail because: You are the assignee for the bug.=