From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.devel Subject: Re: GSlice: failed to allocate 504 bytes Date: Mon, 19 Nov 2012 16:03:04 -0500 Message-ID: <50AA9E88.3050904@cornell.edu> References: <50AA628E.3090801@cornell.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353360914 13811 80.91.229.3 (19 Nov 2012 21:35:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2012 21:35:14 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Burton Samograd Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 19 22:35:25 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TaYzy-0006SV-7h for ged-emacs-devel@m.gmane.org; Mon, 19 Nov 2012 22:35:22 +0100 Original-Received: from localhost ([::1]:40711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYzn-0000WI-Ot for ged-emacs-devel@m.gmane.org; Mon, 19 Nov 2012 16:35:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYzl-0000V9-BA for emacs-devel@gnu.org; Mon, 19 Nov 2012 16:35:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaYzj-0003iP-6S for emacs-devel@gnu.org; Mon, 19 Nov 2012 16:35:09 -0500 Original-Received: from limestone5.mail.cornell.edu ([128.253.83.165]:34545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYzi-0003i4-RK for emacs-devel@gnu.org; Mon, 19 Nov 2012 16:35:07 -0500 X-CornellRouted: This message has been Routed already. Original-Received: from soapstone1.mail.cornell.edu (soapstone1.mail.cornell.edu [128.253.83.143]) by limestone5.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id qAJL35Ti027001 for ; Mon, 19 Nov 2012 16:03:05 -0500 (EST) Original-Received: from authusersmtp.mail.cornell.edu (granite2.mail.cornell.edu [128.253.83.142]) by soapstone1.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id qAJL36kK023905 for ; Mon, 19 Nov 2012 16:03:06 -0500 (EST) Original-Received: from [128.84.234.164] (dijon.math.cornell.edu [128.84.234.164]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id qAJL34ku016308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 19 Nov 2012 16:03:04 -0500 (EST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <50AA628E.3090801@cornell.edu> X-PMX-CORNELL-SPAM-CHECKED: Pawpaw X-PMX-Version: 5.5.9.395186, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.11.19.205417 X-Original-Sender: kbrown@cornell.edu - Mon Nov 19 16:03:04 2012 X-PMX-CORNELL-REASON: CU_White_List_Override X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 128.253.83.165 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154968 Archived-At: On 11/19/2012 11:47 AM, Ken Brown wrote: > On 11/19/2012 11:02 AM, Burton Samograd wrote: >> Hello, >> >> I've built emacs from git sources on a recent cygwin this morning and >> when I try and run it, I get the following error on startup before it >> crashes: >> >> ***MEMORY-ERROR***: [7588]: GSlice: failed to allocate 504 bytes >> (alignment: 512): Function not implemented > > This used to be a problem with the gtk build, for which the following > workaround was put into emacs.c long ago: > > #if defined (USE_GTK) && defined (G_SLICE_ALWAYS_MALLOC) > /* This is used by the Cygwin build. */ > setenv ("G_SLICE", "always-malloc", 1); > #endif > >> This is built with --with-x-toolkit=athena I see the problem. (And the guess in my previous email was wrong.) The workaround above was intended to solve a problem on Cygwin whenever the emacs build depended on Glib. When I provided that workaround, I thought this only happened in a GTK build. But I see now that there are other things that can cause emacs to depend on Glib, even in a Lucid build. This happens in both the trunk and the emacs-24 branch. The following patch fixes it: === modified file 'src/emacs.c' --- src/emacs.c 2012-10-31 17:27:29 +0000 +++ src/emacs.c 2012-11-19 20:50:37 +0000 @@ -702,7 +702,7 @@ stack_base = &dummy; #endif -#if defined (USE_GTK) && defined (G_SLICE_ALWAYS_MALLOC) +#ifdef G_SLICE_ALWAYS_MALLOC /* This is used by the Cygwin build. */ setenv ("G_SLICE", "always-malloc", 1); #endif Stefan, is it OK to apply this to the emacs-24 branch? The bug is not a regression, but I think the patch is clearly safe. And it affects only the Cygwin build. Ken