From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gary Mills Newsgroups: gmane.emacs.bugs Subject: Re: emacs-22.1 with GTK dumps core when Gnome wigets clicked Date: Sun, 17 Jun 2007 22:03:18 -0500 Message-ID: <20070618030318.GA8189@cc.umanitoba.ca> References: <20070610.224832.46203780.mituharu@math.s.chiba-u.ac.jp> <20070610141003.GA12085@cc.umanitoba.ca> <20070614184924.GA25414@cc.umanitoba.ca> <20070616143059.GA23286@cc.umanitoba.ca> <20070616154007.GA8488@cc.umanitoba.ca> <20070617160106.GA8733@cc.umanitoba.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182135816 26052 80.91.229.12 (18 Jun 2007 03:03:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Jun 2007 03:03:36 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 18 05:03:31 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I07Wc-0005QU-TZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jun 2007 05:03:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I07Wc-0001ro-Ec for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jun 2007 23:03:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I07Wa-0001rj-4O for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2007 23:03:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I07WY-0001rX-Lt for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2007 23:03:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I07WY-0001rU-Fy for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2007 23:03:26 -0400 Original-Received: from electra.cc.umanitoba.ca ([130.179.16.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I07WX-0000od-TZ for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2007 23:03:26 -0400 Original-Received: from deneb.cc.umanitoba.ca (mills@deneb.cc.umanitoba.ca [130.179.16.69]) by electra.cc.umanitoba.ca (8.13.0/8.13.0) with ESMTP id l5I33LY3028747; Sun, 17 Jun 2007 22:03:22 -0500 (CDT) Original-Received: (from mills@localhost) by deneb.cc.umanitoba.ca (8.13.8+Sun/8.12.2) id l5I33IMo009431; Sun, 17 Jun 2007 22:03:18 -0500 (CDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.10i X-detected-kernel: Solaris 9 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:15931 Archived-At: On Mon, Jun 18, 2007 at 10:08:11AM +0900, YAMAMOTO Mitsuharu wrote: > > Please try the following patch. It tries to fix the following > problems of gmalloc.c with HAVE_GTK_AND_PTHREAD in Emacs 22.1. > > * HAVE_GTK_AND_PTHREAD was checked before including config.h. > * malloc_initialize_1 called pthread_mutexattr_init that may call malloc. > * _aligned_blocks was not protected. > * __malloc_hook etc. may be modified between its NULL-check and the use. I'm very pleased to report that this time it works correctly, and doesn't dump core! It was built with this configuration under Solaris 10 11/06 SPARC: PATH=/usr/sfw/bin:/opt/SUNWspro/bin:/usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/sbin; export PATH env INSTALL=/usr/ucb/install \ ./configure \ --program-prefix=g \ --without-gcc \ --with-x-toolkit=gtk -- -Gary Mills- -Unix Support- -U of M Academic Computing and Networking-