unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: "Herbert J. Skuhra" <h.skuhra@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump)
Date: Wed, 01 Aug 2007 17:46:11 +0900	[thread overview]
Message-ID: <wly7gvabho.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <20070731190955.GA11917@oslo.ath.cx>

>>>>> On Tue, 31 Jul 2007 21:09:55 +0200, "Herbert J. Skuhra" <h.skuhra@gmail.com> said:

> Jan Djärv skrev:
>> I've checked in a fix in CVS HEAD.  It should propagate to unicode2, please
>> try it then.
>> 
>> Jan D.

> Thanks. But the problem persists in CVS HEAD:

> % ./configure --prefix=/usr/local/emacs --with-gtk --build=i386-freebsd
> % make bootstrap

> Build error:
> ./temacs --batch --load loadup bootstrap
> *** Signal 11

A comment in src/lib/libc/stdlib/malloc.c (FreeBSD Current) says:

/*
 * Mutexes based on spinlocks.  We can't use normal pthread mutexes, because
 * they require malloc()ed memory.
 */

So it seems to be impossible to make src/gmalloc.c thread-safe only
using pthread mutexes.

I'm not sure if spinlocks are open to user applications, but anyway it
would be simpler to define SYSTEM_MALLOC when HAVE_GTK_AND_PTHREAD &&
!DOUG_LEA_MALLOC, and abandon emacs_blocked_malloc etc. on such
platforms.  I don't care if my changes made to src/gmalloc.c for
thread-safety is reverted.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

  reply	other threads:[~2007-08-01  8:46 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-27 16:05 emacs-unicode-2 bootstrap on FreeBSD (temacs coredump) Damien Deville
2007-07-29 10:13 ` Jan Djärv
2007-07-31 19:09   ` Herbert J. Skuhra
2007-08-01  8:46     ` YAMAMOTO Mitsuharu [this message]
2007-08-01  9:20       ` Jan Djärv
2007-08-01  9:35         ` YAMAMOTO Mitsuharu
2007-08-01 10:07           ` YAMAMOTO Mitsuharu
2007-08-01 10:42             ` YAMAMOTO Mitsuharu
2007-08-01 11:53               ` Jan Djärv
2007-08-01 11:54                 ` Jan Djärv
2007-08-01 14:38                   ` Miles Bader
2007-08-01 18:27               ` Jan D.
2007-08-06  8:47                 ` YAMAMOTO Mitsuharu
2007-08-06 10:04                   ` YAMAMOTO Mitsuharu
2007-08-06 18:17                     ` Herbert J. Skuhra
2007-08-06 21:09                       ` Ryan Yeske
2007-08-07  8:05                         ` Jan Djärv
2007-08-07  9:22                           ` YAMAMOTO Mitsuharu
2007-08-01 11:52             ` Jan Djärv

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=wly7gvabho.wl%mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=emacs-devel@gnu.org \
    --cc=h.skuhra@gmail.com \
    /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).