all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gardner Bell <gbell72@rogers.com>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: Giorgos Keramidas <keramida@FreeBSD.org>,
	Jan Dj?rv <jan.h.d@swipnet.se>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel@gnu.org
Subject: Re: Emacs 22.1 reproducible crash
Date: Thu, 9 Aug 2007 16:46:49 -0400 (EDT)	[thread overview]
Message-ID: <493058.59829.qm@web88007.mail.re2.yahoo.com> (raw)
In-Reply-To: <20070808104939.GA19002@kobe.laptop>


--- Giorgos Keramidas <keramida@FreeBSD.org> wrote:

> On 2007-08-08 13:00, Giorgos Keramidas <keramida@freebsd.org> wrote:
> >On 2007-08-08 11:32, YAMAMOTO Mitsuharu
> <mituharu@math.s.chiba-u.ac.jp> wrote:
> >>>>>>> On Tue, 07 Aug 2007 14:03:51 +0200, Jan Dj?rv
> <jan.h.d@swipnet.se> said:
> >>>> Same thing, slightly different backtrace this time.  I have also
> >>>> noticed that this is triggered much easier when using the mouse
> to
> >>>> open, and close files.
> >>>
> >>> I think this might be due to the fact that Glib uses
> posix_memalign,
> >>> but there is no posix_memalign in gmalloc.c.
> >>
> >> Then adding its implementation to gmalloc.c simply work?
> >>
> >> Index: src/gmalloc.c
> >>
> ===================================================================
> >> RCS file: /cvsroot/emacs/emacs/src/gmalloc.c,v
> >> retrieving revision 1.25
> >> diff -c -p -r1.25 gmalloc.c
> >> *** src/gmalloc.c	7 Aug 2007 08:55:43 -0000	1.25
> >> --- src/gmalloc.c	8 Aug 2007 02:31:42 -0000
> >> *************** memalign (alignment, size)
> >> *** 1857,1862 ****
> >> --- 1857,1891 ----
> >>     return result;
> >>   }
> >>
> >> + #ifndef ENOMEM
> >> + #define ENOMEM 12
> >> + #endif
> >> +
> >> + #ifndef EINVAL
> >> + #define EINVAL 22
> >> + #endif
> >> +
> >> + int
> >> + posix_memalign (memptr, alignment, size)
> >> +      __ptr_t *memptr;
> >> +      __malloc_size_t alignment;
> >> +      __malloc_size_t size;
> >
> > Excellent, thanks :-)
> >
> > I will try this with a snapshot of HEAD from CVS in a few minutes
> :-)
> 
> Nice.  I just finished rebuilding Emacs --with-gtk from a snapshot of
> the CVS repository at:
> 
> % changeset:   82488:9563c0c734fe
> % tag:         tip
> % user:        gm
> % date:        Wed Aug 08 08:14:03 2007 +0000
> % files:       lisp/emacs-lisp/eldoc.el
> % description:
> % (eldoc-get-fnsym-args-string): Make second argument optional, for
> % backwards compatibility, and only highlight args when present.
> % Fix symbol name typo (doc/args).
> 
> A clean bootstrap now works as expected (i.e. no temacs crash while
> building), and I haven't been able to crash Emacs in the first few
> minutes by browsing news groups with Gnus (this used to trigger a
> segfault pretty fast before).
> 
> I think we may have a fix, but let's wait until Jan completes his own
> testing too :-)
> 
> Thank you for the patch,
> George
> 
> 

Emacs is now working quite well on this side as well with your latest
patch to gmalloc.c.  Thanks to everyone that helped work on this patch.
It has been greatly appreciated.

  parent reply	other threads:[~2007-08-09 20:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 19:43 Emacs 22.1 reproducible crash Gardner Bell
2007-07-30 23:44 ` Giorgos Keramidas
2007-07-31  1:34 ` YAMAMOTO Mitsuharu
2007-07-31 11:10   ` Gardner Bell
2007-08-07  9:26     ` YAMAMOTO Mitsuharu
2007-08-07 11:58       ` Gardner Bell
2007-08-07 12:03         ` Jan Djärv
2007-08-08  2:32           ` YAMAMOTO Mitsuharu
2007-08-08  3:31             ` Stefan Monnier
2007-08-08  4:30               ` YAMAMOTO Mitsuharu
2007-08-08 13:04                 ` Stefan Monnier
2007-08-08 10:00             ` Giorgos Keramidas
2007-08-08 10:49               ` Giorgos Keramidas
2007-08-08 12:38                 ` Jan Djärv
2007-08-08 12:47                   ` Giorgos Keramidas
2007-08-09 20:46                 ` Gardner Bell [this message]
2007-07-31 12:13   ` Giorgos Keramidas
2007-07-31 13:26     ` Giorgos Keramidas

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

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

  git send-email \
    --in-reply-to=493058.59829.qm@web88007.mail.re2.yahoo.com \
    --to=gbell72@rogers.com \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    --cc=keramida@FreeBSD.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    --cc=monnier@iro.umontreal.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.