From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16991 invoked by alias); 13 Aug 2013 22:00:36 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 16977 invoked by uid 89); 13 Aug 2013 22:00:35 -0000 X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 Received: from limerock02.mail.cornell.edu (HELO limerock02.mail.cornell.edu) (128.84.12.100) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 13 Aug 2013 22:00:34 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id r7DM0Nuo021999 for ; Tue, 13 Aug 2013 18:00:32 -0400 Received: from [128.84.234.244] (dhcp244.math.cornell.edu [128.84.234.244]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id r7DM0MAi012926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 13 Aug 2013 18:00:23 -0400 Message-ID: <520AAC65.1090708@cornell.edu> Date: Tue, 13 Aug 2013 22:00:00 -0000 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: [ANNOUNCEMENT] Uploads for 12 August References: <520A01DF.1040208@alice.it> <520A21B1.8060503@alice.it> <520A3EF6.80700@cornell.edu> <520A7654.3080207@users.sourceforge.net> <20130813182653.GA4315@calimero.vinschen.de> In-Reply-To: <20130813182653.GA4315@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-08/txt/msg00025.txt.bz2 On 8/13/2013 2:26 PM, Corinna Vinschen wrote: > On Aug 13 13:09, Yaakov (Cygwin/X) wrote: >> On 2013-08-13 09:13, Ken Brown wrote: >>> Yes. The fix was to add the following for the Cygwin build, very early >>> in main(): >>> >>> setenv ("G_SLICE", "always-malloc", 1); >>> >>> I don't know why this no longer works. Maybe Glib now does its memory >>> management initialization before emacs's main() is entered. >> >> Exactly; in glib-2.36, g_type_init has been moved to a ctor, which >> is automatically called before main(); hence, this setenv is too >> late now. Mozilla software is also affected by this, see: >> >> https://bugzilla.gnome.org/show_bug.cgi?id=687763 >> https://bugzilla.mozilla.org/show_bug.cgi?id=833117 >> >> and many others. Firefox et al already use launcher scripts, so >> adding one more line won't be a big deal for them. >> >>> Yaakov, is there any chance that you could patch Glib to do the >>> equivalent of G_SLICE=always-malloc on Cygwin? This isn't really an >>> emacs issue. It would affect any GTK application that provides its own >>> malloc rather than using Cygwin's malloc. (But emacs is probably the >>> only such application in the distro.) >> >> Given that the only programs which seem to be *practically* affected >> by this is our Emacs, and Firefox/Thunderbird/etc. (which we don't >> have yet), and using G_SLICE=always-malloc apparently affects >> performance, I don't think that would be an appropriate solution. >> >> For now, I think you'll have to add a wrapper script. > > Can anybody of you explain to me what the actual underlying problem is? > I mean, why this error message: > > ***MEMORY-ERROR***: [3044]: GSlice: failed to allocate 504 bytes > (alignment: 512): Function not implemented > > What function is not implemented? Is that something we can fix, > perhaps in the Cygwin DLL? It's memalign, or at least that's what it was in 2007. See http://cygwin.com/ml/cygwin/2007-02/msg00678.html Ken -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/