unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: Gary Mills <mills@cc.umanitoba.ca>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: emacs-22.1 with GTK dumps core when Gnome wigets clicked
Date: Sun, 17 Jun 2007 15:41:26 +0900	[thread overview]
Message-ID: <wl4pl79j6x.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <20070616154007.GA8488@cc.umanitoba.ca>

>>>>> On Sat, 16 Jun 2007 10:40:07 -0500, Gary Mills <mills@cc.umanitoba.ca> 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

  reply	other threads:[~2007-06-17  6:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-09 15:49 emacs-22.1 with GTK dumps core when Gnome wigets clicked Gary Mills
2007-06-10  8:43 ` YAMAMOTO Mitsuharu
2007-06-10 12:51   ` Gary Mills
2007-06-10 13:48     ` YAMAMOTO Mitsuharu
2007-06-10 14:10       ` Gary Mills
2007-06-14  2:16         ` YAMAMOTO Mitsuharu
     [not found]           ` <20070614184924.GA25414@cc.umanitoba.ca>
2007-06-16  5:22             ` YAMAMOTO Mitsuharu
2007-06-16 13:32               ` Gary Mills
2007-06-16 14:30               ` Gary Mills
2007-06-16 15:40                 ` Gary Mills
2007-06-17  6:41                   ` YAMAMOTO Mitsuharu [this message]
2007-06-17 16:01                     ` Gary Mills
2007-06-18  1:08                       ` YAMAMOTO Mitsuharu
2007-06-18  3:03                         ` Gary Mills
2007-06-18  9:58                           ` YAMAMOTO Mitsuharu
2007-06-16 18:51           ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wl4pl79j6x.wl%mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=mills@cc.umanitoba.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).