From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bootstrap & memory allocation troubles Date: Fri, 13 Jan 2006 17:13:31 -0500 Message-ID: <87wth3eqn8.fsf-monnier+emacs@gnu.org> References: <20060113155227.GA8439@flame.pc> <87mzhzg75p.fsf-monnier+emacs@gnu.org> <20060113212440.GA77427@flame.pc> <20060113213818.GA18365@flame.pc> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137192140 2740 80.91.229.2 (13 Jan 2006 22:42:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2006 22:42:20 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 13 23:42:14 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ExXbw-0006y4-Kd for ged-emacs-devel@m.gmane.org; Fri, 13 Jan 2006 23:41:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ExXe6-0005x2-5W for ged-emacs-devel@m.gmane.org; Fri, 13 Jan 2006 17:43:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ExXD2-0004CF-Th for emacs-devel@gnu.org; Fri, 13 Jan 2006 17:15:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ExXD1-0004BW-35 for emacs-devel@gnu.org; Fri, 13 Jan 2006 17:15:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ExXD0-0004BP-TR for emacs-devel@gnu.org; Fri, 13 Jan 2006 17:15:46 -0500 Original-Received: from [209.226.175.34] (helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ExXG3-00085v-T5 for emacs-devel@gnu.org; Fri, 13 Jan 2006 17:18:56 -0500 Original-Received: from alfajor ([67.71.26.73]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060113221332.XBLL20927.tomts13-srv.bellnexxia.net@alfajor>; Fri, 13 Jan 2006 17:13:32 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id A6136D736A; Fri, 13 Jan 2006 17:13:31 -0500 (EST) Original-To: Giorgos Keramidas In-Reply-To: <20060113213818.GA18365@flame.pc> (Giorgos Keramidas's message of "Fri, 13 Jan 2006 23:38:19 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49033 Archived-At: > Can you try and undefine HAVE_POSIX_MEMALIGN so as to tell Emacs not > to use it, so we can see if it's related or if it's a completely > different problem (maybe a problem with unexec)? > Hmmm. Comment it out HAVE_POSIX_MEMALIGN in src/config.h allows Emacs > to bootstrap quite fine with the new malloc() implementation too. Very > nice. At least, we know how to repeat and work around the bug now :) So the problem is either in the implementation of posix_memalign, or in my use of it in src/alloc.c. Can you try and rebuilt with -DENABLE_CHECKING so as to activate the `eassert' I have sprinkled in the src/alloc.c code? Just to be sure, try with -DENABLE_CHECKING for both cases (with and without HAVE_POSIX_MEMALIGN). Since Emacs's posix_memalign code has already been used for more than a year under GNU/Linux and probably more platforms, I'm tempted to say the bug is in FreeBSD's new implementation. But you never know. Stefan