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 16:19:23 -0500 Message-ID: <87mzhzg75p.fsf-monnier+emacs@gnu.org> References: <20060113155227.GA8439@flame.pc> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137189351 25412 80.91.229.2 (13 Jan 2006 21:55:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2006 21:55:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 13 22:55:48 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 1ExWtc-0005iw-3f for ged-emacs-devel@m.gmane.org; Fri, 13 Jan 2006 22:55:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ExWvk-0000DG-Oq for ged-emacs-devel@m.gmane.org; Fri, 13 Jan 2006 16:57:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ExWMl-0006vl-W0 for emacs-devel@gnu.org; Fri, 13 Jan 2006 16:21:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ExWMh-0006q0-PQ for emacs-devel@gnu.org; Fri, 13 Jan 2006 16:21:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ExWMh-0006pR-5c for emacs-devel@gnu.org; Fri, 13 Jan 2006 16:21:43 -0500 Original-Received: from [209.226.175.97] (helo=tomts40-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ExWPj-0002sq-Om for emacs-devel@gnu.org; Fri, 13 Jan 2006 16:24:51 -0500 Original-Received: from alfajor ([67.71.26.73]) by tomts40-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060113211928.BARR5216.tomts40-srv.bellnexxia.net@alfajor>; Fri, 13 Jan 2006 16:19:28 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id D75F3D736A; Fri, 13 Jan 2006 16:19:23 -0500 (EST) Original-To: Giorgos Keramidas In-Reply-To: <20060113155227.GA8439@flame.pc> (Giorgos Keramidas's message of "Fri, 13 Jan 2006 17:52:28 +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:49025 Archived-At: > Recently, the malloc() implementation in FreeBSD changed to a new > implementation by Jason Evans, and a posix_memalign() implementation > was added to the standard library of the system. > This seems to cause bootstrap problems for cvs-emacs now, but I'm not > sure if this is something we should fix in Emacs or in the libc of > FreeBSD. The gdb trace that shows the problem is listed below, but > I'd be grateful for any hints related to fixing this. > What is surprising is that the Lisp_String allocated internally by > allocate_string_data is supposed to have a size of 50 bytes, but > trying to access any byte after its 40'th character results in > ``inaccessible memory'' faults in gdb (and is probably the reason why > bootstrap fails). > Any ideas how the current posix_memalign() implementation could affect > this, and/or tips to debug it? 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)? Stefan