From owner-freebsd-gnome@FreeBSD.ORG Tue Mar 23 06:38:21 2004 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A29116A4CE; Tue, 23 Mar 2004 06:38:21 -0800 (PST) Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A2BB43D31; Tue, 23 Mar 2004 06:38:20 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd05.aul.t-online.de by mailout10.sul.t-online.com with smtp id 1B5n2p-0002f3-01; Tue, 23 Mar 2004 15:38:19 +0100 Received: from Andro-Beta.Leidinger.net (XdIHABZTZeel1ce36MPmrRE8a7NBd5iW+311k1HUF5PRkksaO964kF@[217.83.29.165]) by fmrl05.sul.t-online.com with esmtp id 1B5n2V-21D1hg0; Tue, 23 Mar 2004 15:37:59 +0100 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) i2NEbs0m099324; Tue, 23 Mar 2004 15:37:55 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (netchild@localhost [127.0.0.1]) i2NEbr9p098011; Tue, 23 Mar 2004 15:37:53 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Tue, 23 Mar 2004 15:37:53 +0100 From: Alexander Leidinger To: Joe Marcus Clarke Message-Id: <20040323153753.4805898a@Magellan.Leidinger.net> In-Reply-To: <1080050628.777.2.camel@gyros> References: <16479.30826.56912.226587@knock.econ.vt.edu> <20040322180728.F5352@carver.gumbysoft.com> <20040323121441.1e535e57@Magellan.Leidinger.net> <1080050628.777.2.camel@gyros> X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Tue__23_Mar_2004_15_37_53_+0100_VIrbLKse8dJ7HhMN" X-Seen: false X-ID: XdIHABZTZeel1ce36MPmrRE8a7NBd5iW+311k1HUF5PRkksaO964kF@t-dialin.net cc: FreeBSD GNOME Users cc: freebsd-current@FreeBSD.org cc: Doug White cc: "Russell D. Murphy Jr." Subject: Re: Mozilla crash and burn? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 14:38:21 -0000 This is a multi-part message in MIME format. --Multipart=_Tue__23_Mar_2004_15_37_53_+0100_VIrbLKse8dJ7HhMN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 23 Mar 2004 09:03:48 -0500 Joe Marcus Clarke wrote: > Me, either. Mozilla works just fine for me. I've never seen any of the > crashes you describe. The URLs you mentioned above work fine for me (I > go to GnomeDesktop a lot). I'm running -CURRENT from yesterday with all > debugging disabled. Perhaps this is something triggered by WITNESS... - no kernel debugging (so no WITNESS...) - malloc.conf -> aj - sched ule - CFLAGS=-Os -pipe -fno-strict-aliasing - COPTFLAGS=-Os -pipe - CPUTYPE=athlon - WANT_COMPAT4_STDIO=YES - libmap: libc_r -> libpthread In the mean time I've set a breakpoint and noticed that the env lock doesn't get initialized. I changed nsprpub/pr/src/misc/prenv.c and are now compiling again... if someone with a faster machine (this is a 1 GHz Athlon-XP) wants to test it, the patch is attached. Bye, Alexander. -- I will be available to get hired in April 2004. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 --Multipart=_Tue__23_Mar_2004_15_37_53_+0100_VIrbLKse8dJ7HhMN Content-Type: text/plain; name="patch-nsprpub::pr::src::misc::prenv.c" Content-Disposition: attachment; filename="patch-nsprpub::pr::src::misc::prenv.c" Content-Transfer-Encoding: 8bit --- ./nsprpub/pr/src/misc/prenv.c.orig Fri Mar 15 00:21:00 2002 +++ ./nsprpub/pr/src/misc/prenv.c Tue Mar 23 14:42:11 2004 @@ -36,26 +36,12 @@ #include "primpl.h" /* Lock used to lock the environment */ -#if defined(_PR_NO_PREEMPT) -#define _PR_NEW_LOCK_ENV() -#define _PR_DELETE_LOCK_ENV() -#define _PR_LOCK_ENV() -#define _PR_UNLOCK_ENV() -#elif defined(_PR_LOCAL_THREADS_ONLY) -extern _PRCPU * _pr_primordialCPU; -static PRIntn _is; -#define _PR_NEW_LOCK_ENV() -#define _PR_DELETE_LOCK_ENV() -#define _PR_LOCK_ENV() if (_pr_primordialCPU) _PR_INTSOFF(_is); -#define _PR_UNLOCK_ENV() if (_pr_primordialCPU) _PR_INTSON(_is); -#else static PRLock *_pr_envLock = NULL; -#define _PR_NEW_LOCK_ENV() {_pr_envLock = PR_NewLock();} +#define _PR_NEW_LOCK_ENV() {_pr_envLock = PR_NewLock(); PR_ASSERT(NULL != _pr_envLock);} #define _PR_DELETE_LOCK_ENV() \ { if (_pr_envLock) { PR_DestroyLock(_pr_envLock); _pr_envLock = NULL; } } -#define _PR_LOCK_ENV() { if (_pr_envLock) PR_Lock(_pr_envLock); } -#define _PR_UNLOCK_ENV() { if (_pr_envLock) PR_Unlock(_pr_envLock); } -#endif +#define _PR_LOCK_ENV() { if (!_pr_envLock) _PR_NEW_LOCK_ENV(); PR_Lock(_pr_envLock); } +#define _PR_UNLOCK_ENV() { PR_ASSERT(NULL != _pr_envLock); PR_Unlock(_pr_envLock); } /************************************************************************/ --Multipart=_Tue__23_Mar_2004_15_37_53_+0100_VIrbLKse8dJ7HhMN--