From owner-freebsd-java@FreeBSD.ORG Sun Aug 5 00:00:10 2012 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10E251065670 for ; Sun, 5 Aug 2012 00:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8E5388FC0A for ; Sun, 5 Aug 2012 00:00:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q75009R2091952 for ; Sun, 5 Aug 2012 00:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q75009eT091951; Sun, 5 Aug 2012 00:00:09 GMT (envelope-from gnats) Date: Sun, 5 Aug 2012 00:00:09 GMT Message-Id: <201208050000.q75009eT091951@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Jan Beich Cc: Subject: Re: ports/170352: java/icedtea-web update to 1.2.1 makes firefox die with SIGBUS X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jan Beich List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2012 00:00:10 -0000 The following reply was made to PR ports/170352; it has been noted by GNATS. From: Jan Beich To: Dmitry Marakasov Cc: bug-followup@freebsd.org Subject: Re: ports/170352: java/icedtea-web update to 1.2.1 makes firefox die with SIGBUS Date: Fri, 03 Aug 2012 23:40:38 +0300 --=-=-= Content-Type: text/plain Dmitry Marakasov writes: > After updating java/icedtea-web to 1.2.1, java applets no longer work: > running an applet makes firefox die with SIGBUS moments after an Try libxul-10.0.6 from gecko@ repo. If it doesn't help also try the attached patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=gecko_sync.diff diff --git a/www/firefox/files/patch-bug753046 b/www/firefox/files/patch-bug753046 index d2d1a12..a1f0503 100644 --- a/www/firefox/files/patch-bug753046 +++ b/www/firefox/files/patch-bug753046 @@ -218,21 +218,23 @@ $NetBSD: patch-ipc_chromium_src_base_debug__util__posic.cc,v 1.3 2012/04/01 15:1 #include #include -@@ -17,8 +17,13 @@ +@@ -17,9 +17,16 @@ #include #if MOZ_HAVE_EXECINFO_H #include --#include ++#endif ++ ++#if defined(OS_MACOSX) || defined(OS_BSD) + #include #endif + +#if defined(OS_DRAGONFLY) || defined(OS_FREEBSD) +#include -+#elif defined(OS_FREEBSD) -+#include +#endif -+#include - ++ #include "base/basictypes.h" #include "base/eintr_wrapper.h" + #include "base/logging.h" @@ -32,7 +37,7 @@ bool DebugUtil::SpawnDebuggerOnProcess(u return false; } @@ -531,18 +533,6 @@ $NetBSD: patch-ipc_chromium_src_base_message__loop.cc,v 1.1 2012/03/06 12:34:09 pump_ = new base::MessagePumpForUI(); #endif // OS_LINUX } else if (type_ == TYPE_IO) { -$NetBSD: patch-ipc_chromium_src_base_platform__file__posix.cc,v 1.1 2011/07/12 15:12:36 tnn Exp $ - ---- ipc/chromium/src/base/platform_file_posix.cc.orig 2011-06-15 21:57:27.000000000 +0000 -+++ ipc/chromium/src/base/platform_file_posix.cc -@@ -9,6 +9,7 @@ - #ifdef ANDROID - #include - #endif -+#include /* for S_IRUSR */ - - #include "base/logging.h" - #include "base/string_util.h" $NetBSD: patch-ipc_chromium_src_base_platform__thread.h,v 1.1 2012/03/06 12:34:09 ryoon Exp $ --- ipc/chromium/src/base/platform_thread.h.orig 2011-12-20 23:28:19.000000000 +0000 @@ -641,7 +631,7 @@ $NetBSD: patch-ipc_chromium_src_base_process__util__bsd.cc,v 1.4 2012/04/01 15:1 --- ipc/chromium/src/base/process_util_bsd.cc.orig 2012-04-01 00:04:28.000000000 +0000 +++ ipc/chromium/src/base/process_util_bsd.cc -@@ -0,0 +1,326 @@ +@@ -0,0 +1,322 @@ +// Copyright (c) 2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -672,7 +662,6 @@ $NetBSD: patch-ipc_chromium_src_base_process__util__bsd.cc,v 1.4 2012/04/01 15:1 +PRE_SYS_INCLUDE +#include +POST_SYS_INCLUDE -+#define HAVE_POSIX_SPAWN 1 +#endif +#if defined(OS_FREEBSD) +PRE_SYS_INCLUDE @@ -687,18 +676,15 @@ $NetBSD: patch-ipc_chromium_src_base_process__util__bsd.cc,v 1.4 2012/04/01 15:1 +#include "base/string_tokenizer.h" +#include "base/string_util.h" + -+#if defined(OS_NETBSD) -+#include -+#if __NetBSD_Version__ >= 600000000 ++#if defined(_POSIX_SPAWN) && _POSIX_SPAWN > 0 +#define HAVE_POSIX_SPAWN 1 +#endif -+#endif + +#ifdef HAVE_POSIX_SPAWN +PRE_SYS_INCLUDE +#include ++extern "C" char **environ; +POST_SYS_INCLUDE -+extern "C" char **environ __dso_public; +#endif + +namespace { @@ -1255,16 +1241,31 @@ $NetBSD: patch-ipc_glue_GeckoChildProcessHost.cpp,v 1.2 2012/03/15 08:30:06 ryoo newEnvVars, #endif false, &process, arch); +diff --git ipc/glue/SharedMemorySysV.h ipc/glue/SharedMemorySysV.h +index f37998d..b05dc7b 100644 +--- ipc/glue/SharedMemorySysV.h ++++ ipc/glue/SharedMemorySysV.h +@@ -8,7 +8,7 @@ + #ifndef mozilla_ipc_SharedMemorySysV_h + #define mozilla_ipc_SharedMemorySysV_h + +-#if defined(OS_LINUX) && !defined(ANDROID) ++#if defined(OS_LINUX) && !defined(ANDROID) || defined(OS_BSD) + + // SysV shared memory isn't available on Windows, but we define the + // following macro so that #ifdefs are clearer (compared to #ifdef $NetBSD: patch-mm,v 1.13 2012/06/05 18:09:21 ryoon Exp $ --- toolkit/library/Makefile.in.orig 2012-05-23 18:57:09.000000000 +0000 +++ toolkit/library/Makefile.in -@@ -534,6 +538,10 @@ EXTRA_DSO_LDOPTS += -lelf -ldemangle +@@ -534,6 +538,12 @@ EXTRA_DSO_LDOPTS += -lelf -ldemangle endif endif +ifneq (,$(filter DragonFly FreeBSD NetBSD OpenBSD,$(OS_ARCH))) +OS_LIBS += $(call EXPAND_LIBNAME,kvm) ++#EXTRA_DSO_LDOPTS += -Wl,--ignore-unresolved-symbol,environ ++EXTRA_DSO_LDOPTS += -Wl,--warn-unresolved-symbols +endif + ifeq ($(OS_ARCH),WINNT) diff --git a/www/firefox/files/patch-xpcom__threads__nsThreadManager.cpp b/www/firefox/files/patch-xpcom__threads__nsThreadManager.cpp index 80e8322..73db2c3 100644 --- a/www/firefox/files/patch-xpcom__threads__nsThreadManager.cpp +++ b/www/firefox/files/patch-xpcom__threads__nsThreadManager.cpp @@ -4,7 +4,7 @@ nsresult nsThreadManager::Init() { -+#ifdef NS_TLS && (__FreeBSD_version < 802513 \ ++#if defined(NS_TLS) && (__FreeBSD_version < 802513 \ + || (__FreeBSD_version >= 900000 && __FreeBSD_version < 900045)) + if (!gTLSThreadID) + gTLSThreadID = mozilla::threads::Generic; --=-=-=--