From: Giorgos Keramidas <keramida@freebsd.org>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: Gardner Bell <gbell72@rogers.com>, Jan Dj?rv <jan.h.d@swipnet.se>,
emacs-devel@gnu.org
Subject: Re: Emacs 22.1 reproducible crash
Date: Wed, 8 Aug 2007 13:00:39 +0300 [thread overview]
Message-ID: <20070808100039.GB1907@kobe.laptop> (raw)
In-Reply-To: <wlk5s669it.wl%mituharu@math.s.chiba-u.ac.jp>
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?
This may actually work well. I recall problems with glib and
Emacs since we switched to FreeBSD in a system malloc() which
*does* include posix_memalign().
I haven't checked but it's possible that Emacs, when linked with
GTK+ links with malloc() from gmalloc.c but calls the system
version of posix_memalign(). This could definitely lead to
trouble similar to what we are seeing.
> 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 :-)
next prev parent reply other threads:[~2007-08-08 10:00 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 [this message]
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
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=20070808100039.GB1907@kobe.laptop \
--to=keramida@freebsd.org \
--cc=emacs-devel@gnu.org \
--cc=gbell72@rogers.com \
--cc=jan.h.d@swipnet.se \
--cc=mituharu@math.s.chiba-u.ac.jp \
/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.