This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: FW: Re: [emacs_user@hotmail.com: ***MEMORY-ERROR***: emacs[5172]: GSlice: failed
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 19 Feb 2007 10:57:49 +0100
- Subject: Re: FW: Re: [emacs_user@hotmail.com: ***MEMORY-ERROR***: emacs[5172]: GSlice: failed
- References: <45D9678E.7090108@swipnet.se>
- Reply-to: 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/