[Bug 216206] editors/openoffice-4 and editors/openoffice-devel: fails to build with clang 4.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 26 09:56:00 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216206

Don Lewis <truckman at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |truckman at FreeBSD.org

--- Comment #14 from Don Lewis <truckman at FreeBSD.org> ---
(In reply to Pedro F. Giffuni from comment #2)

I used a poudriere jail running the /projects/clang400-import/ branch to track
down some more openoffice build problems with clang 4.0.

In all cases the code looked like:
  somestruct *obj = new somestruct ();

It turns out that clang 4.0 tries to use SSE instructions to zero the memory
block returned by new, which requires that the memory be 16-byte aligned, but
our malloc implementation only does 8-byte alignment.  If the memory isn't
sufficiently aligned, then we get a bus error core dump.

I wasn't able to provoke our malloc() implementation into returning an
unaligned pointer for objects of 16 bytes or larger, but I see that AOO
redefines new and uses its own memory allocator.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-office mailing list