firefox build broken under clang 3.3

Dimitry Andric dim at
Tue Apr 30 15:25:37 UTC 2013

On Apr 30, 2013, at 05:28, Brandon Gooch <jamesbrandongooch at> wrote:
> Thanks for fixing the build issues.
> Now, I've built Firefox with Clang, but the darn thing segfaults at
> the drop of a hat:
> $ gdb /usr/local/bin/firefox firefox.core
> ...
> (gdb) bt
> #0  0x00000008011eefaa in thr_kill () from /lib/
> #1  0x00000008024d254d in XRE_InstallX11ErrorHandler ()
>   from /usr/local/lib/firefox/
> #2  0x0000000800f74116 in swapcontext () from /lib/
> #3  0x0000000800f73d39 in sigaction () from /lib/
> #4  0x00007ffffffff193 in ?? ()
> #5  0x0000000800f73c20 in sigaction () from /lib/
> Previous frame inner to this frame (corrupt stack?)
> Rebuilding with debugging symbols provides no further insight, as that
> seems to provide a work-around for whatever the root cause may be
> (i.e. no more segfaults).
> Are any of you seeing something similar?

Which exact version of head do you have, and which version(s) of ports?  Are you running WITH_NEW_XORG or not?

In any case, I have just built the latest Firefox from ports, with clang 3.3, and I see no issues at all.  At least with approximately 10 minutes of browsing, and visiting a varied bunch of sites.  I do have it built with debug info, but without cranking down the optimization level to -O0 (which is what seems to do, unfortunately).

I will rebuild it again, without any debug info, to see if that makes any difference.  I don't think it will, though...

More information about the freebsd-ports mailing list