x11-fonts/fontconfig was reported to segfault a while ago when built with clang on the arm architecture.
at the time, the proposed workaround was to build it with gcc, but this is not working anymore on freebsd 10 : lang/gcc is not buildable yet on the arm platform.
I've investigated the real problem, this is a segfault when calling the random() function in the FcRandom() function, located in src/fccompat.c
Fix: Here's another, not perfect but working, fix :
When applied, USE_GCC can be removed and fontconfig segfault is not obversable anymore.--K9wzq83hh4jYmikwXYL7udZCaPczWwAcQ4QHikc6s0q67jLp
Content-Type: text/plain; name="file.diff"
Content-Disposition: attachment; filename="file.diff"
--- src/fccompat.c.orig 2013-10-31 19:16:42.000000000 +0000
+++ src/fccompat.c 2013-10-31 19:15:57.000000000 +0000
@@ -182,7 +182,7 @@
+#elif HAVE_RANDOM && !defined(__arm__)
static char statebuf;
static FcBool initialized = FcFalse;
How-To-Repeat: => build fontconfig on arm target with freebsd 10
Over to maintainer (via the GNATS Auto Assign Tool)
Taking ticket. I'll generate a patch for ports.
A commit references this bug:
Date: Wed Sep 3 14:57:53 UTC 2014
New revision: 367209
Undiagnosed ARMv6 core dump occurs when using GCC with fontconfig.
Avoid this crash and resore compiles via CLANG.
Submitted by: email@example.com
Reviewed by: kwm