From owner-freebsd-ports@FreeBSD.ORG Wed Apr 3 18:57:20 2013 Return-Path: Delivered-To: freebsd-ports@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 27E8EF8D; Wed, 3 Apr 2013 18:57:20 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx1.freebsd.org (Postfix) with ESMTP id 78B347DD; Wed, 3 Apr 2013 18:57:19 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id s10so1908920lbi.5 for ; Wed, 03 Apr 2013 11:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:cc:content-type; bh=fPqGPdnqD/+9XvNfisj+7u6bPDJN/qKReyiJsNchmMQ=; b=JpveZNO3jHvw08LimVTKKt4i1+22WVdKGfXX2nsLkaZxUsY53wz07YzKHzsfi2kcce r6a3EeTke8ZYytYXiGzlvqGQCIfXpSffi/kX9c2TwQqtG1Y/5IfmUiakKEgo15tL4WRk gILfxzi32cUnc0IKaJq9IAQNxLdlEf0LPy0a0cmo+S0NmAqzD9/p817+LQpDBnTqSJTm 4NDhF54QG2x65kbt0qvBuwlMpnJT0v/lFhs7GaTYvqa3ltmLrqG0yijV6WTneOdpXK0M 7PJH/7qhCIPV9is3d7GLZ9lDodFUU9o4U9uPJzHueA+GO4SyTvjoXHAEI9UJYnUusUUv 7GDg== MIME-Version: 1.0 X-Received: by 10.112.76.39 with SMTP id h7mr368919lbw.118.1365015438027; Wed, 03 Apr 2013 11:57:18 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.146.135 with HTTP; Wed, 3 Apr 2013 11:57:17 -0700 (PDT) Date: Wed, 3 Apr 2013 11:57:17 -0700 X-Google-Sender-Auth: xcUU-uDUDzAVRBov0I3ucKYknHw Message-ID: Subject: firefox 19.0,2 crashing under FreeBSD 8 From: Craig Rodrigues To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: gecko@freebsd.org 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: Wed, 03 Apr 2013 18:57:20 -0000 Hi, I reported this problem with firefox 19.0,1 under FreeBSD 7: http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/082090.html Since FreeBSD 7 is not supported by the ports team, I did the following: (1) Upgraded my system to FreeBSD 8 from the stable/8 branch in Subversion at this revision: r248839 | sbruno | 2013-03-28 10:27:46 -0700 (Thu, 28 Mar 2013) | 13 lines (2) Rebuilt world/kernel and reinstalled (3) Deleted all my ports (4) Upgraded ports tree with portsnap (5) Rebuilt all my ports. I now have firefox-19.0,2. However, when I run it, it still seems to crash randomly. I grabbed two stack traces by attaching gdb to firefox. The stack traces don't occur in the same place, and seem to indicate stack corruption of some sort: ====================================================== Stacktrace 1: #0 0x2b40b017 in walIndexTryHdr () from /usr/local/lib/libsqlite3.so.8 #1 0x2b40b23d in walIndexReadHdr () from /usr/local/lib/libsqlite3.so.8 #2 0x2b40c97d in walTryBeginRead () from /usr/local/lib/libsqlite3.so.8 #3 0x2b426468 in sqlite3PagerSharedLock () from /usr/local/lib/libsqlite3.so.8 #4 0x2b4269ff in sqlite3BtreeBeginTrans () from /usr/local/lib/libsqlite3.so.8 #5 0x2b42c487 in sqlite3Step () from /usr/local/lib/libsqlite3.so.8 #6 0x2b431b3d in sqlite3_step () from /usr/local/lib/libsqlite3.so.8 #7 0x2b434dad in sqlite3_exec () from /usr/local/lib/libsqlite3.so.8 #8 0x29619147 in _ZNSt6vectorIN7mozilla9Telemetry10StackFrameESaIS2_EE13_M_inse rt_auxIIRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_ () from /usr/local/lib/firefox/libxul.so #9 0x29619391 in _ZNSt6vectorIN7mozilla9Telemetry10StackFrameESaIS2_EE13_M_inse rt_auxIIRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_ () from /usr/local/lib/firefox/libxul.so #10 0x296177d3 in _ZNSt6vectorIN7mozilla9Telemetry10StackFrameESaIS2_EE13_M_inse rt_auxIIRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_ () from /usr/local/lib/firefox/libxul.so #11 0x31e393a0 in ?? () #12 0xbecf1d58 in ?? () #13 0x00000006 in ?? () 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 #10 0x33341ae0 in ?? () #11 0xbedf1ca0 in ?? () #12 0xbedf1ce0 in ?? () #13 0x3fe6a09e in ?? () #14 0x39618fd0 in ?? () #15 0x2a134cf1 in js_GetScriptLineExtent () from /usr/local/lib/firefox/libxul.so Previous frame inner to this frame (corrupt stack?) ========================================================= 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? On FreeBSD 8, the firefox port is built with g++46, not clang. Thanks. -- Craig