From owner-freebsd-gecko@FreeBSD.ORG Wed Jun 18 19:10:39 2014 Return-Path: Delivered-To: freebsd-gecko@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 92E1C15E for ; Wed, 18 Jun 2014 19:10:39 +0000 (UTC) Received: from trillian.chruetertee.ch (trillian.chruetertee.ch [217.150.244.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1D9142645 for ; Wed, 18 Jun 2014 19:10:38 +0000 (UTC) Received: from trillian.chruetertee.ch (trillian [217.150.244.247]) by trillian.chruetertee.ch (8.14.4/8.14.3) with ESMTP id s5IJATSa061755 for ; Wed, 18 Jun 2014 19:10:29 GMT (envelope-from svn-freebsd-gecko@chruetertee.ch) Received: (from www@localhost) by trillian.chruetertee.ch (8.14.4/8.14.3/Submit) id s5IJAM9f061083 for freebsd-gecko@freebsd.org; Wed, 18 Jun 2014 19:10:22 GMT (envelope-from svn-freebsd-gecko@chruetertee.ch) Date: Wed, 18 Jun 2014 19:10:22 GMT Message-Id: <201406181910.s5IJAM9f061083@trillian.chruetertee.ch> X-Authentication-Warning: trillian.chruetertee.ch: www set sender to svn-freebsd-gecko@chruetertee.ch using -f From: svn-freebsd-gecko@chruetertee.ch To: freebsd-gecko@freebsd.org Subject: [SVN-Commit] r1607 - in trunk: mail/thunderbird/files www/firefox-esr/files www/libxul/files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reply-To: freebsd-gecko@freebsd.org X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2014 19:10:39 -0000 Author: jbeich Date: Wed Jun 18 19:10:22 2014 New Revision: 1607 Log: backport crashfix for system sqlite/nss Added: trunk/mail/thunderbird/files/patch-bug938730 trunk/www/firefox-esr/files/patch-bug938730 trunk/www/libxul/files/patch-bug938730 Added: trunk/mail/thunderbird/files/patch-bug938730 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/mail/thunderbird/files/patch-bug938730 Wed Jun 18 19:10:22 2014 (r1607) @@ -0,0 +1,35 @@ +commit 1961aa2 +Author: Kai Engert +Date: Wed Nov 20 20:25:12 2013 +0100 + + Bug 938730 - avoid mix of memory allocators (crashes) when using system sqlite, r=asuth +--- + storage/src/Makefile.in | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git storage/src/Makefile.in storage/src/Makefile.in +index 9418640..c7391ed 100644 +--- mozilla/storage/src/Makefile.in ++++ mozilla/storage/src/Makefile.in +@@ -6,14 +6,21 @@ + # Don't use the jemalloc allocator on Android, because we can't guarantee + # that Gecko will configure sqlite before it is first used (bug 730495). + # ++# Don't use the jemalloc allocator when using system sqlite. Linked in libraries ++# (such as NSS) might trigger an initialization of sqlite and allocation ++# of memory using the default allocator, prior to the storage service ++# registering its allocator, causing memory management failures (bug 938730). ++# + # Note: On Windows our sqlite build assumes we use jemalloc. If you disable + # MOZ_STORAGE_MEMORY on Windows, you will also need to change the "ifdef + # MOZ_MEMORY" options in db/sqlite3/src/Makefile.in. + ifdef MOZ_MEMORY ++ifndef MOZ_NATIVE_SQLITE + ifneq ($(OS_TARGET), Android) + DEFINES += -DMOZ_STORAGE_MEMORY + endif + endif ++endif + + # For nsDependentJSString + LOCAL_INCLUDES = \ Added: trunk/www/firefox-esr/files/patch-bug938730 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/www/firefox-esr/files/patch-bug938730 Wed Jun 18 19:10:22 2014 (r1607) @@ -0,0 +1,35 @@ +commit 1961aa2 +Author: Kai Engert +Date: Wed Nov 20 20:25:12 2013 +0100 + + Bug 938730 - avoid mix of memory allocators (crashes) when using system sqlite, r=asuth +--- + storage/src/Makefile.in | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git storage/src/Makefile.in storage/src/Makefile.in +index 9418640..c7391ed 100644 +--- storage/src/Makefile.in ++++ storage/src/Makefile.in +@@ -6,14 +6,21 @@ + # Don't use the jemalloc allocator on Android, because we can't guarantee + # that Gecko will configure sqlite before it is first used (bug 730495). + # ++# Don't use the jemalloc allocator when using system sqlite. Linked in libraries ++# (such as NSS) might trigger an initialization of sqlite and allocation ++# of memory using the default allocator, prior to the storage service ++# registering its allocator, causing memory management failures (bug 938730). ++# + # Note: On Windows our sqlite build assumes we use jemalloc. If you disable + # MOZ_STORAGE_MEMORY on Windows, you will also need to change the "ifdef + # MOZ_MEMORY" options in db/sqlite3/src/Makefile.in. + ifdef MOZ_MEMORY ++ifndef MOZ_NATIVE_SQLITE + ifneq ($(OS_TARGET), Android) + DEFINES += -DMOZ_STORAGE_MEMORY + endif + endif ++endif + + # For nsDependentJSString + LOCAL_INCLUDES = \ Added: trunk/www/libxul/files/patch-bug938730 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/www/libxul/files/patch-bug938730 Wed Jun 18 19:10:22 2014 (r1607) @@ -0,0 +1,35 @@ +commit 1961aa2 +Author: Kai Engert +Date: Wed Nov 20 20:25:12 2013 +0100 + + Bug 938730 - avoid mix of memory allocators (crashes) when using system sqlite, r=asuth +--- + storage/src/Makefile.in | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git storage/src/Makefile.in storage/src/Makefile.in +index 9418640..c7391ed 100644 +--- storage/src/Makefile.in ++++ storage/src/Makefile.in +@@ -6,14 +6,21 @@ + # Don't use the jemalloc allocator on Android, because we can't guarantee + # that Gecko will configure sqlite before it is first used (bug 730495). + # ++# Don't use the jemalloc allocator when using system sqlite. Linked in libraries ++# (such as NSS) might trigger an initialization of sqlite and allocation ++# of memory using the default allocator, prior to the storage service ++# registering its allocator, causing memory management failures (bug 938730). ++# + # Note: On Windows our sqlite build assumes we use jemalloc. If you disable + # MOZ_STORAGE_MEMORY on Windows, you will also need to change the "ifdef + # MOZ_MEMORY" options in db/sqlite3/src/Makefile.in. + ifdef MOZ_MEMORY ++ifndef MOZ_NATIVE_SQLITE + ifneq ($(OS_TARGET), Android) + DEFINES += -DMOZ_STORAGE_MEMORY + endif + endif ++endif + + # For nsDependentJSString + LOCAL_INCLUDES = \