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 dumps core when Gnome wigets clicked Date: Sun, 17 Jun 2007 15:41:26 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <200706091549.l59FnfHJ005433@deneb.cc.umanitoba.ca> <20070610125120.GA27355@cc.umanitoba.ca> <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> NNTP-Posting-Host: lo.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 1182062504 4624 80.91.229.12 (17 Jun 2007 06:41:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2007 06:41:44 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Gary Mills Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 17 08:41:42 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 1HzoSD-0005ns-OL for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jun 2007 08:41:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzoSD-0007TS-Bn for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jun 2007 02:41:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzoS3-0007Io-4m for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2007 02:41:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzoS1-0007HK-UX for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2007 02:41:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzoS1-0007Gs-5t for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2007 02:41:29 -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 1HzoS0-0007Sq-Ff for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2007 02:41:28 -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 A0E9A2C40; Sun, 17 Jun 2007 15:41:26 +0900 (JST) In-Reply-To: <20070616154007.GA8488@cc.umanitoba.ca> 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/22.1.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:15920 Archived-At: >>>>> On Sat, 16 Jun 2007 10:40:07 -0500, Gary Mills said: > On Sat, Jun 16, 2007 at 09:30:59AM -0500, Gary Mills wrote: >> On Sat, Jun 16, 2007 at 02:22:54PM +0900, YAMAMOTO Mitsuharu wrote: >> > >> > Could you try yet another patch below and identify the line in the >> > source code where the crash occurs? >> >> It does still dump core for me. I'm not sure that I can identify >> the source line. I have very little experience with debuggers. >> I'd have to use dbx in this case. I'll see what I can do. > This might be what you want: Yes, that's it. Thanks a lot. > (dbx) lwp l@3 > t@3 (l@3) stopped in _malloc_internal_nolock (optimized) at line 796 in file "gmalloc.c" > 796 next->next->prev = next->prev; Gosh! I noticed that the mutex code in gmalloc.c did not take effect at all because `HAVE_GTK_AND_PTHREAD' is checked before including config.h. Could you try moving the following part at the beginning of gmalloc.c to just before the first occurrence of '#ifdef USE_PTHREAD'? #ifdef HAVE_GTK_AND_PTHREAD #define USE_PTHREAD #endif YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp