delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/19/04:58:18

X-Spam-Check-By: sourceware.org
Date: Mon, 19 Feb 2007 10:57:49 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: FW: Re: [emacs_user AT hotmail DOT com: ***MEMORY-ERROR***: emacs[5172]: GSlice: failed
Message-ID: <20070219095749.GC11586@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <45D9678E DOT 7090108 AT swipnet DOT se>
Mime-Version: 1.0
In-Reply-To: <45D9678E.7090108@swipnet.se>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Feb 19 10:02, Jan Dj?rv wrote:
> The code in question in glib looks like this:
> 
> static gpointer
> allocator_memalign (gsize alignment,
>                     gsize memsize)
> {
>   gpointer aligned_memory = NULL;
>   gint err = ENOMEM;
> #if     HAVE_COMPLIANT_POSIX_MEMALIGN
>   err = posix_memalign (&aligned_memory, alignment, memsize);
> #elif   HAVE_MEMALIGN
>   errno = 0;
>   aligned_memory = memalign (alignment, memsize);
>   err = errno;
> #elif   HAVE_VALLOC
>   errno = 0;
>   aligned_memory = valloc (memsize);
>   err = errno;
> #else
>   /* simplistic non-freeing page allocator */
>   ...
> #endif
> 
> 
> The #else part only calls malloc, and I assumed that it works on cygwin.  
> It would be a small thing to figure out which part is used on cygwin if the 
> config.h was available.

I assume you're going to do that.  If you could come up with a simple
OOTB testcase which reproduces the problem, the simpler for us to fix
a potential bug.

Note that Cygwin exports memalign and valloc for a longer time now,
posix_memalign is only available in the developer snapshots.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019