From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: Re: emacs-22.1 with GTK problems (with patches) Date: Tue, 11 Sep 2007 13:28:01 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <20070910165826.GA3298@tw.il.thewrittenword.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1189485028 19010 80.91.229.10 (11 Sep 2007 04:30:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 04:30:28 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "Peter O'Gorman" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 11 06:27:03 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1IUxKp-0000gV-1H for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2007 06:26:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUxMF-0005U7-My for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2007 00:28:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUxME-0005Tx-Cv for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2007 00:28:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUxM9-0005Th-RG for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2007 00:28:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUxM9-0005Td-Mr for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2007 00:28:09 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUxM7-0007M2-TV for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2007 00:28:09 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id B7E2C2C4A; Tue, 11 Sep 2007 13:28:01 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-Detected-Kernel: NetBSD 3.0 (DF) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16531 Archived-At: >>>>> On Tue, 11 Sep 2007 12:42:26 +0900, YAMAMOTO Mitsuharu said: >>> We encountered a few minor issues building emacs-22.1 with GTK. On >>> Solaris 2.6 there is no recursive mutex support. >> Several bugfixes have been made to gmalloc.c since the Emacs 22.1 >> release. Could you try the latest gmalloc.c and emacs.c below? I >> think Solaris 2.6 is untested yet. > Oops, your patch was for another use of recursive mutex in alloc.c > and had nothing to do with the mutexes in gmalloc.c. Sorry about > that. On second thought, it seems that the mutex in alloc.c don't have to be recursive regardless of your patch, because _realloc_internal only calls "hookless" versions of malloc/free (i.e., _malloc_internal and _free_internal). Could you try just replacing pthread_mutexattr_t attr; /* GLIBC has a faster way to do this, but lets keep it portable. This is according to the Single UNIX Specification. */ pthread_mutexattr_init (&attr); pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE); pthread_mutex_init (&alloc_mutex, &attr); in uninterrupt_malloc with the following one? pthread_mutex_init (&alloc_mutex, NULL); YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp