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: Emacs 22.1 reproducible crash Date: Tue, 07 Aug 2007 23:31:12 -0400 Message-ID: References: <38018.65621.qm@web88014.mail.re2.yahoo.com> <46B85FA7.4060000@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186544917 26433 80.91.229.12 (8 Aug 2007 03:48:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Aug 2007 03:48:37 +0000 (UTC) Cc: Gardner Bell , Jan =?iso-8859-1?Q?Dj=E4rv?= , keramida@freebsd.org, emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 08 05:48:35 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IIcXB-0006RR-8W for ged-emacs-devel@m.gmane.org; Wed, 08 Aug 2007 05:48:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIcXA-000264-SX for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2007 23:48:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIcWu-00021D-TL for emacs-devel@gnu.org; Tue, 07 Aug 2007 23:48:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIcWt-00020W-8h for emacs-devel@gnu.org; Tue, 07 Aug 2007 23:48:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIcWs-00020N-VW for emacs-devel@gnu.org; Tue, 07 Aug 2007 23:48:15 -0400 Original-Received: from tomts43.bellnexxia.net ([209.226.175.110] helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IIcWs-0001rJ-EQ for emacs-devel@gnu.org; Tue, 07 Aug 2007 23:48:14 -0400 Original-Received: from pastel.home ([70.55.144.190]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070808034813.IEIX26794.tomts43-srv.bellnexxia.net@pastel.home> for ; Tue, 7 Aug 2007 23:48:13 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id AC0E7856B; Tue, 7 Aug 2007 23:31:12 -0400 (EDT) In-Reply-To: (YAMAMOTO Mitsuharu's message of "Wed\, 08 Aug 2007 11\:32\:42 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) 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:76177 Archived-At: > + int > + posix_memalign (memptr, alignment, size) > + __ptr_t *memptr; > + __malloc_size_t alignment; > + __malloc_size_t size; > + { > + __ptr_t mem; > + > + if (alignment % sizeof (__ptr_t) != 0 > + || (alignment & (alignment - 1)) != 0) > + return EINVAL; > + > + mem = memalign (alignment, size); > + if (mem == NULL) > + return ENOMEM; > + > + *memptr = mem; > + > + return 0; > + } Can the result be freed by passing it to `free'? That's a very important part of the spec. Stefan