From unknown Sun Jun 22 04:31:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24204: temacs crashes on invocation with new GLIBC 2.24 Resent-From: jpbion@jfwest.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Aug 2016 15:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 24204@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.147093067814661 (code B ref -1); Thu, 11 Aug 2016 15:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Aug 2016 15:51:18 +0000 Received: from localhost ([127.0.0.1]:54213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXsGL-0003oO-TW for submit@debbugs.gnu.org; Thu, 11 Aug 2016 11:51:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXrxM-0001jh-BX for submit@debbugs.gnu.org; Thu, 11 Aug 2016 11:31:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXrxG-0007yT-AY for submit@debbugs.gnu.org; Thu, 11 Aug 2016 11:31:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXrxG-0007yN-7L for submit@debbugs.gnu.org; Thu, 11 Aug 2016 11:31:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXrxD-0002Wd-Q5 for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 11:31:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXrx9-0007xN-Kd for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 11:31:30 -0400 Received: from jfroot.com ([173.11.83.161]:37094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXrx9-0007xH-ES for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 11:31:27 -0400 Received: from localhost (localhost [127.0.0.1]) by jfroot.com (Postfix) with ESMTP id 406B7380AC6 for ; Thu, 11 Aug 2016 08:31:15 -0700 (PDT) X-Virus-Scanned: amavisd-new at jfroot.com Received: from jfroot.com ([127.0.0.1]) by localhost (www.jfroot.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8GZ268uPsota for ; Thu, 11 Aug 2016 08:31:03 -0700 (PDT) Received: from jfroot.com (localhost [127.0.0.1]) by jfroot.com (Postfix) with ESMTPA id C9F59380A69 for ; Thu, 11 Aug 2016 08:30:58 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 11 Aug 2016 08:30:57 -0700 From: jpbion@jfwest.com Message-ID: <754023ea1791ab89164dfa8b30de3308@jfwest.com> X-Sender: jpbion@jfwest.com User-Agent: Roundcube Webmail/1.2.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Thu, 11 Aug 2016 11:51:17 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Using the new glibc, v2.24, and GCC 6.1 Any attempt to run 'temacs' fails with a segment fault. It appears that the call to 'malloc' inside the 'calloc' function in Emacs' gmalloc.c file starts to recurse, and eventually hits a segment fault after recursing 10,000+ times. Here is the stack trace at the beginning of this nested recursion hell. I don't know why the call to malloc is turning into a call for the calloc in gmalloc.c, but I think whatever is doing that is causing this problem. Any thoughts? Anything else needed? commands to get this far: ./autogen.sh ./configure --prefix=/usr --libexecdir=/usr/lib --localstatedir=/var --with-x-t\ oolkit=no --without-x --without-gif make bootstrap src/config.h lines, that contain the word 'malloc': 4 matches in 12 lines for "malloc" in buffer: config.h 26: intended to work with other packages as well (like gmalloc.c) 108:/* Define to 1 if the system memory allocator is Doug Lea style, with m\ alloc 109: hooks and malloc_set_state. */ 110:/* #undef DOUG_LEA_MALLOC */ 232:#define GNU_MALLOC 1 234:/* Define to set the G_SLICE environment variable to "always-malloc" at 236:/* #undef G_SLICE_ALWAYS_MALLOC */ 774:/* Define to 1 if you have the header file. */ 775:/* #undef HAVE_MALLOC_MALLOC_H */ 1446:/* #undef SYSTEM_MALLOC */ 1599:/* Define this to check for malloc buffer overrun. */ 1600:/* #undef XMALLOC_OVERRUN_CHECK */ stack track of temacs at beginning of recursive loop: #0 0x08133c63 in backtrace_top () at eval.c:206 #1 0xffffffff in () #2 0x08133c63 in backtrace_top () at eval.c:206 #3 0xffffffff in () #4 0x0818a4a0 in calloc (nmemb=508, size=1) at gmalloc.c:1519 #5 0x0818a4cb in calloc (nmemb=508, size=1) at gmalloc.c:1529 #6 0x0818a4cb in calloc (nmemb=1, size=508) at gmalloc.c:1529 #7 0xffffffff in g_malloc0 (n_bytes=508) at gmem.c:124 #8 0xffffffff in g_malloc0_n (n_blocks=127, n_block_bytes=4) at gmem.c:355 #9 0xffffffff in g_slice_init_nomessage () at gslice.c:440 #10 0xffffffff in g_slice_alloc () at gslice.c:515 #11 0xffffffff in g_slice_alloc (mem_size=56) at gslice.c:1003 #12 0xffffffff in g_hash_table_new_full (hash_func=0xb78c6320 , key\ _equal_func=0xb78c62f0 , key_destroy_func=0x0, value_destroy_func=\ 0x0) at ghash.c:711 #13 0xffffffff in g_hash_table_new (hash_func=0xb78c6320 , key_equa\ l_func=0xb78c62f0 ) at ghash.c:674 #14 0xffffffff in g_quark_init () at gquark.c:61 #15 0xffffffff in glib_init_ctor () at glib-init.c:243 #16 0xffffffff in glib_init_ctor () at glib-init.c:301 #17 0xffffffff in call_init (l=, argc=argc@entry=1, argv=argv@en\ try=0xbffffd94, env=0xbffffd9c) at dl-init.c:72 #18 0xffffffff in _dl_init (env=0xbffffd9c, argv=0xbffffd94, argc=1, l=) at dl-init.c:30 #19 0xffffffff in _dl_init (main_map=, argc=1, argv=0xbffffd94, \ env=0xbffffd9c) at dl-init.c:120 #20 0xffffffff in _dl_start_user () at /lib/ld-linux.so.2 From unknown Sun Jun 22 04:31:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24204: This bug does NOT exist in Emacs 25.1-rc1 References: <754023ea1791ab89164dfa8b30de3308@jfwest.com> In-Reply-To: <754023ea1791ab89164dfa8b30de3308@jfwest.com> Resent-From: jpbion@jfwest.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Aug 2016 16:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 24204@debbugs.gnu.org Received: via spool by 24204-submit@debbugs.gnu.org id=B24204.147093394519732 (code B ref 24204); Thu, 11 Aug 2016 16:46:01 +0000 Received: (at 24204) by debbugs.gnu.org; 11 Aug 2016 16:45:45 +0000 Received: from localhost ([127.0.0.1]:54248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXt73-00058C-Mf for submit@debbugs.gnu.org; Thu, 11 Aug 2016 12:45:45 -0400 Received: from jfroot.com ([173.11.83.161]:36950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXt72-00057z-DK for 24204@debbugs.gnu.org; Thu, 11 Aug 2016 12:45:44 -0400 Received: from localhost (localhost [127.0.0.1]) by jfroot.com (Postfix) with ESMTP id 398F1380DA2 for <24204@debbugs.gnu.org>; Thu, 11 Aug 2016 09:45:36 -0700 (PDT) X-Virus-Scanned: amavisd-new at jfroot.com Received: from jfroot.com ([127.0.0.1]) by localhost (www.jfroot.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3Z5asB1y-bLE for <24204@debbugs.gnu.org>; Thu, 11 Aug 2016 09:45:30 -0700 (PDT) Received: from jfroot.com (localhost [127.0.0.1]) by jfroot.com (Postfix) with ESMTPA id 5588E380AB1 for <24204@debbugs.gnu.org>; Thu, 11 Aug 2016 09:45:25 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 11 Aug 2016 09:45:23 -0700 From: jpbion@jfwest.com Message-ID: X-Sender: jpbion@jfwest.com User-Agent: Roundcube Webmail/1.2.1 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Note - I just tried, and this bug does NOT exist in building Emacs 25.1-rc1. Therefore it may be uninteresting for people to fix. I just wanted to let folks know! From unknown Sun Jun 22 04:31:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24204: temacs crashes on invocation with new GLIBC 2.24 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Aug 2016 16:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: jpbion@jfwest.com Cc: 24204@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 24204-submit@debbugs.gnu.org id=B24204.147093401719861 (code B ref 24204); Thu, 11 Aug 2016 16:47:02 +0000 Received: (at 24204) by debbugs.gnu.org; 11 Aug 2016 16:46:57 +0000 Received: from localhost ([127.0.0.1]:54252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXt8C-0005AH-Ul for submit@debbugs.gnu.org; Thu, 11 Aug 2016 12:46:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXt8B-0005A5-IF for 24204@debbugs.gnu.org; Thu, 11 Aug 2016 12:46:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXt85-0001dR-B4 for 24204@debbugs.gnu.org; Thu, 11 Aug 2016 12:46:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXt85-0001dI-84; Thu, 11 Aug 2016 12:46:49 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1962 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bXt83-000278-Ce; Thu, 11 Aug 2016 12:46:47 -0400 Date: Thu, 11 Aug 2016 19:46:38 +0300 Message-Id: <83a8gjfe35.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <754023ea1791ab89164dfa8b30de3308@jfwest.com> (jpbion@jfwest.com) References: <754023ea1791ab89164dfa8b30de3308@jfwest.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.5 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) > Date: Thu, 11 Aug 2016 08:30:57 -0700 > From: jpbion@jfwest.com > > Using the new glibc, v2.24, and GCC 6.1 > > Any attempt to run 'temacs' fails with a segment fault. It appears that > the call to 'malloc' inside the 'calloc' function in Emacs' gmalloc.c > file starts to recurse, and eventually hits a segment fault after > recursing 10,000+ times. Here is the stack trace at the beginning of > this nested recursion hell. > > I don't know why the call to malloc is turning into a call for the > calloc in gmalloc.c, but I think whatever is doing that is causing this > problem. > > Any thoughts? Anything else needed? You don't say what version of Emacs you tried to build. I think this is already fixed in the development sources. From unknown Sun Jun 22 04:31:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24204: temacs crashes on invocation with new GLIBC 2.24 Resent-From: jpbion@jfwest.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Aug 2016 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 24204@debbugs.gnu.org Received: via spool by 24204-submit@debbugs.gnu.org id=B24204.147093414520074 (code B ref 24204); Thu, 11 Aug 2016 16:50:02 +0000 Received: (at 24204) by debbugs.gnu.org; 11 Aug 2016 16:49:05 +0000 Received: from localhost ([127.0.0.1]:54257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXtAH-0005Di-AP for submit@debbugs.gnu.org; Thu, 11 Aug 2016 12:49:05 -0400 Received: from jfroot.com ([173.11.83.161]:37050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXtAF-0005DC-Mv for 24204@debbugs.gnu.org; Thu, 11 Aug 2016 12:49:03 -0400 Received: from localhost (localhost [127.0.0.1]) by jfroot.com (Postfix) with ESMTP id E19D1380DA2; Thu, 11 Aug 2016 09:48:55 -0700 (PDT) X-Virus-Scanned: amavisd-new at jfroot.com Received: from jfroot.com ([127.0.0.1]) by localhost (www.jfroot.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ewFveY0EVc1z; Thu, 11 Aug 2016 09:48:49 -0700 (PDT) Received: from jfroot.com (localhost [127.0.0.1]) by jfroot.com (Postfix) with ESMTPA id CC4A0380DC5; Thu, 11 Aug 2016 09:48:39 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 11 Aug 2016 09:48:34 -0700 From: jpbion@jfwest.com In-Reply-To: <83a8gjfe35.fsf@gnu.org> References: <754023ea1791ab89164dfa8b30de3308@jfwest.com> <83a8gjfe35.fsf@gnu.org> Message-ID: <1c9af03ef4e721508b1ccb2b63c15933@jfwest.com> X-Sender: jpbion@jfwest.com User-Agent: Roundcube Webmail/1.2.1 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Hi, Eli! This was 24.5 - but not just 10 minutes ago I posted that pre-release 25.1-rc1 built correctly. So this bug can most certainly be marked as resolved I guess :) On 2016-08-11 09:46, Eli Zaretskii wrote: >> Date: Thu, 11 Aug 2016 08:30:57 -0700 >> From: jpbion@jfwest.com >> >> Using the new glibc, v2.24, and GCC 6.1 >> >> Any attempt to run 'temacs' fails with a segment fault. It appears >> that >> the call to 'malloc' inside the 'calloc' function in Emacs' gmalloc.c >> file starts to recurse, and eventually hits a segment fault after >> recursing 10,000+ times. Here is the stack trace at the beginning of >> this nested recursion hell. >> >> I don't know why the call to malloc is turning into a call for the >> calloc in gmalloc.c, but I think whatever is doing that is causing >> this >> problem. >> >> Any thoughts? Anything else needed? > > You don't say what version of Emacs you tried to build. I think this > is already fixed in the development sources. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 12:51:11 2016 Received: (at control) by debbugs.gnu.org; 11 Aug 2016 16:51:11 +0000 Received: from localhost ([127.0.0.1]:54261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXtCJ-0005H1-ME for submit@debbugs.gnu.org; Thu, 11 Aug 2016 12:51:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXtCI-0005Go-7x for control@debbugs.gnu.org; Thu, 11 Aug 2016 12:51:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXtCC-0002ay-HL for control@debbugs.gnu.org; Thu, 11 Aug 2016 12:51:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXtCC-0002au-EE for control@debbugs.gnu.org; Thu, 11 Aug 2016 12:51:04 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bXtCB-0002Xz-09 for control@debbugs.gnu.org; Thu, 11 Aug 2016 12:51:03 -0400 Subject: control message for bug 24204 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 11 Aug 2016 12:51:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) forcemerge 23760 24204