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

X-Spam-Check-By: sourceware.org
Message-ID: <45D9678E.7090108@swipnet.se>
Date: Mon, 19 Feb 2007 10:02:06 +0100
From: =?UTF-8?B?SmFuIERqw6Rydg==?= <jan DOT h DOT d AT swipnet DOT se>
User-Agent: Thunderbird 1.5.0.9 (X11/20070212)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: FW: Re: [emacs_user AT hotmail DOT com: ***MEMORY-ERROR***: emacs[5172]: GSlice: failed
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Christopher Faylor wrote:

> On Mon, Feb 19, 2007 at 08:26:36AM +0100, Jan Dj??rv wrote:
>>Christopher Faylor wrote:
>>>If someone is positing that one of several functions possibly isn't
>>>working in cygwin why not report exactly which function that would be?
>>>I.e., a little more work than reposting speculation would be
>>>appreciated.
>>
>>I did that comment, it is not speculation.  I currently have no W32
>>machine, hence no cygwin at all.
> 
> So if you have no way to verify anything then it sounds like it would be
> speculation by definition.  Speculation isn't a bad word but speculating
> doesn't actually do any good until someone can confirm the speculation.
> Since I doubt that anyone here is going to download emacs to satisfy a
> speculation that cygwin's API is broken, we obviously need more details
> from people who care about this.

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.e.:
> 
>>I don't know how the original poster configured Gtk+, I don't know
>>which version of cygwin he/she has, I don't know which version of Gtk+
>>he/she has.  I only tried to find out if Emacs could fix this somehow,
>>which it can't.  If the original poster (emacs_user AT hotmail DOT com) can
>>send in his/hers config.h from the Gtk+ configuration, we can figure
>>out what function we are talking about.
> 
> So, basically you're saying "a little more work" is required.

Yes, checking config.h for glib.


	Jan D.


--
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