From owner-freebsd-ports@FreeBSD.ORG Mon May 20 04:05:02 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 88542AEC for ; Mon, 20 May 2013 04:05:02 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from qmta07.emeryville.ca.mail.comcast.net (qmta07.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:64]) by mx1.freebsd.org (Postfix) with ESMTP id 58C2CAC3 for ; Mon, 20 May 2013 04:05:02 +0000 (UTC) Received: from omta23.emeryville.ca.mail.comcast.net ([76.96.30.90]) by qmta07.emeryville.ca.mail.comcast.net with comcast id e3zA1l0031wfjNsA74515M; Mon, 20 May 2013 04:05:01 +0000 Received: from kirby.cyberbotx.com ([69.244.146.119]) by omta23.emeryville.ca.mail.comcast.net with comcast id e44y1l00Q2anbQt8j450W5; Mon, 20 May 2013 04:05:00 +0000 Message-ID: <5199A0EA.2080008@cyberbotx.com> Date: Mon, 20 May 2013 00:04:58 -0400 From: Naram Qashat User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130519 Thunderbird/17.0.6 MIME-Version: 1.0 To: freebsd-ports@FreeBSD.org Subject: Firefox 21.0 bus error and segfault Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1369022701; bh=8Jchl2ziXZG60iQnFCd/HVbjzDqRtTx0eUYK0giAor0=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=rwusdoMH9bTQABWwEd2p51HILR4SjYzkSLmEH7leycZ6v6BkaUtWVligZENeMKpLD kkCMdurpVu8cmxx2aFACI4fBn0me+ToYl7EX+wOOmEQlPB/rxpAp/aJbCx9kFTejla RIwrqCHtqdHft8ZtkodilIU113GSsTeXU3Fyj709VXByoO/URSDJ0bys18aYMK0S0W W9b+UEjIzK8gMR0jQkL6wa6peYYyRgmU9cmcCJV+t6mB2B4N1pv9WdztGUWezU4b6V b5SwcyUpjQDFad008laOy3YHt/a7qM3dOby7jkX3goNHGnKl8M44zafBQwiJxDckv8 fFTP9FLUvDAUA== X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 May 2013 04:05:02 -0000 Hi all, I had just recently built Firefox 21.0 (my port version is 21.0_1,1) and I have been running into both bus errors and segfaults, depending on how I build Firefox. I usually build my ports via portupgrade and use portconf for options. With Firefox, I have GIO, LOGGING, and WEBRTC unset, and I have OPTIMIZED_CFLAGS set. I am running 8.3-RELEASE-p4 on amd64. When I build Firefox with just the above, I get a bus error with the following backtrace in gdb: Program received signal SIGBUS, Bus error. [Switching to Thread 8013021c0 (LWP 100207 initial thread)] 0x0000000000419d55 in realloc () (gdb) bt #0 0x0000000000419d55 in realloc () #1 0x0000000800fca61e in ?? () from /lib/libc.so.7 #2 0x0000000800fca9b1 in ?? () from /lib/libc.so.7 #3 0x0000000800fcb23c in setenv () from /lib/libc.so.7 #4 0x0000000000402510 in ?? () #5 0x0000000000402a9e in _start () I have also tried to build Firefox with DEBUG set and OPTIMIZED_CFLAGS unset. When I do this, Firefox runs, but I then run into a segfault if I do enough back and forth browsing in a single tab. Unfortunately I cannot reproduce this reliably. I get the following inside of gdb: Assertion failure: mDocument->IsXUL() || mDocument->GetReadyStateEnum() == nsIDocument::READYSTATE_INTERACTIVE || (mDocument->GetReadyStateEnum() == nsIDocument::READYSTATE_UNINITIALIZED && NS_IsAboutBlank(mDocument->GetDocumentURI())) (Bad readystate), at /usr/ports/www/firefox/work/mozilla-release/layout/base/nsDocumentViewer.cpp:1029 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 8013021c0 (LWP 101982 initial thread)] 0x00000008023dd14e in ?? () from /usr/local/lib/firefox/libxul.so (gdb) bt #0 0x00000008023dd14e in ?? () from /usr/local/lib/firefox/libxul.so #1 0x0000000803643f88 in ?? () from /usr/local/lib/firefox/libxul.so #2 0x00000008036435b0 in ?? () from /usr/local/lib/firefox/libxul.so #3 0x00000008036774dd in ?? () from /usr/local/lib/firefox/libxul.so #4 0x00000008036763a9 in ?? () from /usr/local/lib/firefox/libxul.so #5 0x0000000803675f98 in ?? () from /usr/local/lib/firefox/libxul.so #6 0x0000000803675a3f in ?? () from /usr/local/lib/firefox/libxul.so #7 0x000000080205022d in ?? () from /usr/local/lib/firefox/libxul.so #8 0x0000000802197668 in ?? () from /usr/local/lib/firefox/libxul.so #9 0x0000000802041b54 in ?? () from /usr/local/lib/firefox/libxul.so #10 0x00000008020412d8 in ?? () from /usr/local/lib/firefox/libxul.so #11 0x00000008045cb4f7 in ?? () from /usr/local/lib/firefox/libxul.so #12 0x00000008045f1321 in ?? () from /usr/local/lib/firefox/libxul.so #13 0x00000008045763d2 in ?? () from /usr/local/lib/firefox/libxul.so #14 0x0000000803bf18e0 in ?? () from /usr/local/lib/firefox/libxul.so #15 0x000000080464da85 in ?? () from /usr/local/lib/firefox/libxul.so #16 0x000000080464da16 in ?? () from /usr/local/lib/firefox/libxul.so #17 0x000000080464d9a7 in ?? () from /usr/local/lib/firefox/libxul.so #18 0x0000000803a76452 in ?? () from /usr/local/lib/firefox/libxul.so #19 0x0000000803746d4c in ?? () from /usr/local/lib/firefox/libxul.so #20 0x0000000801ff88d6 in ?? () from /usr/local/lib/firefox/libxul.so #21 0x0000000801ff8b97 in ?? () from /usr/local/lib/firefox/libxul.so #22 0x0000000801ff8db2 in XRE_main () from /usr/local/lib/firefox/libxul.so #23 0x000000000040322b in ?? () #24 0x000000000040360c in ?? () #25 0x00000000004025de in _start () I'm not sure why the backtrace with DEBUG set still shows no debugging symbols. In any case, regarding the bus error, I have no idea why this is happening. I have not updated FreeBSD itself, and I had Firefox 20 running fine prior to the update to Firefox 21, but after Firefox 21, even Firefox 20 gives me a bus error (it's pretty much the same backtrace as above). The only other thing I can point out is that I have libstdc++.so.6 and libgcc_s.so.1 libmapped to the gcc47 versions of those. Thanks, Naram Qashat