From owner-freebsd-gecko@FreeBSD.ORG Fri Apr 5 21:36:25 2013 Return-Path: Delivered-To: gecko@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BCACAB86; Fri, 5 Apr 2013 21:36:25 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22]) by mx1.freebsd.org (Postfix) with ESMTP id 7ABD4EBB; Fri, 5 Apr 2013 21:36:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=internal.tormail.org) by outgoing.tormail.org with esmtp (Exim 4.72) (envelope-from ) id 1UOEJ3-0000J5-Eg; Sat, 06 Apr 2013 01:36:23 +0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.org; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:References:Date:Subject:Cc:To:From; bh=CasTi2RwmMHSEVNXanq3SSWv+ZHFxHZdvS9LRIQQY0o=; b=IppT+frUItVCEHrnzs5/yTGMFXPAzz9Di4/BJJzSWAtwdJs+ARfp20rCIy8pohs79AMwuyd8DVfp5TgcAf7lFdLu4DNzhj6EKO8doy3YJN9L6ufjP5CtdDGJJHtLsiUzqa8uBQydd4WIvWSHy0OhOSmLdpJBKJmF9Udg0sC6mqA=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1UOEFz-000BOP-Ky; Fri, 05 Apr 2013 21:33:13 +0000 From: Jan Beich To: Craig Rodrigues Subject: Re: firefox 19.0,2 crashing under FreeBSD 8 Date: Fri, 05 Apr 2013 06:35:37 -0600 References: <1UNsb3-000IEE-LH@internal.tormail.org> MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1UOEFz-000BOP-Ky@internal.tormail.org> Cc: gecko@freebsd.org, freebsd-ports@freebsd.org X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2013 21:36:25 -0000 Craig Rodrigues writes: > On Thu, Apr 4, 2013 at 3:24 PM, Jan Beich wrote: > >> Craig Rodrigues writes: >> >> > Stacktrace 2: >> > >> > (gdb) where >> > #0 0x282e95f2 in flockfile () from /lib/libc.so.7 >> > #1 0x282defb0 in vfprintf () from /lib/libc.so.7 >> > #2 0x282cfd3e in fprintf () from /lib/libc.so.7 >> > #3 0x282ec43a in .cerror () from /lib/libc.so.7 >> > #4 0x283289a8 in __JCR_LIST__ () from /usr/local/lib/libffi.so.6 >> > #5 0x28326fb7 in ffi_call_SYSV () from /usr/local/lib/libffi.so.6 >> > #6 0x28326dee in ffi_call () from /usr/local/lib/libffi.so.6 >> > #7 0x2a37c3dd in JS_SetCTypesCallbacks () >> > from /usr/local/lib/firefox/libxul.so >> > #8 0x333e1740 in ?? () >> > #9 0x338b0ed4 in issetugid () from /usr/local/lib/compat/libc.so.6 >> >> Can you show what's linked against libc.so.6 from misc/compat6x ? >> For example, >> >> $ ldd -a /usr/local/lib/firefox/libxul.so >> > > > Take a look at: > > http://people.freebsd.org/~rodrigc/qqq.txt.bz2 > > I don't see libc.so.6 anywhere in there, so I don't know how it could have > gotten into the > stack trace, unless the stack trace is mangled due to stack corruption. Try moving /usr/local/lib/compat away and start firefox. If not a system library you can get libc.so.6 via dlopen() or LD_PRELOAD. Building with DEBUG option for a more complete stacktrace may help. Note, libxul.so linking with debug symbols takes *a lot* more memory than non-debug. Alternatively, bisect your environment by using a known working binary[1] or a known working build configuration (e.g. poudriere or tinderbox). [1] ask someone to upload or use an official package e.g., ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.4-release/www/firefox-20.0,1.tbz >> >> > I saw in this thread: >> > >> > >> http://lists.freebsd.org/pipermail/freebsd-ports/2013-February/081567.html >> > >> > That patching clang helped fix some stack issues with Firefox. >> > >> > Is this solution applicable to FreeBSD 8? It *was* only applicable for i386 and with lang/clang installed, regardless of version if PATH had /usr/local/bin before /usr/bin. >> > On FreeBSD 8, the firefox port is built with g++46, not clang. >> >> At this time only base clang is considered but during firefox 19 >> lang/clang* could be picked up by default. Er, lang/gcc by default is a fallback and only used for 8.x and non-x86 without /usr/bin/clang. > > In ports/www/firefox/Makefile, there is this: > > .if ${PORT_OPTIONS:MPGO} > USE_GCC?= yes > USE_DISPLAY= yes A lot of shared stuff is in ports/Mk/bsd.gecko.mk: .if ${MOZILLA_VER:R:R} >= 19 || ${MOZILLA:Mseamonkey*} # prefer base clang, for lang/clang{,-devel} see ports/177224 . if ${CC} == "cc" && (exists(/usr/bin/clang) && ${OSVERSION} >= 900014) CC= /usr/bin/clang . endif . if ${CXX} == "c++" && (exists(/usr/bin/clang++) && ${OSVERSION} >= 900014) CXX= /usr/bin/clang++ . endif . if ${CPP} == "cpp" && (exists(/usr/bin/clang-cpp) && ${OSVERSION} >= 900045) CPP= /usr/bin/clang-cpp . endif . if ${CC} != "cc" && ${CPP} == "cpp" CPP= ${CC} -E . endif # fallback to gcc otherwise . if ${CC} == "cc" || ${CXX} == "c++" USE_GCC?= yes . endif .endif -- with firefox 20 out firefox 19.* is not supported anymore