From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: jpbion@jfwest.com Newsgroups: gmane.emacs.bugs Subject: bug#24204: temacs crashes on invocation with new GLIBC 2.24 Date: Thu, 11 Aug 2016 08:30:57 -0700 Message-ID: <754023ea1791ab89164dfa8b30de3308@jfwest.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1470932025 1932 195.159.176.226 (11 Aug 2016 16:13:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2016 16:13:45 +0000 (UTC) User-Agent: Roundcube Webmail/1.2.1 To: 24204@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 11 18:13:40 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXsbz-0000HV-O3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2016 18:13:39 +0200 Original-Received: from localhost ([::1]:49547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXsbw-00044W-MK for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2016 12:13:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXsH9-0007ro-9W for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 11:52:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXsH4-0004GV-90 for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 11:52:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXsH4-0004GR-5v for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 11:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bXsH3-0003pk-QT for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 11:52:01 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147093067814661 (code B ref -1); Thu, 11 Aug 2016 15:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Aug 2016 15:51:18 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) X-Sender: jpbion@jfwest.com 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122083 Archived-At: 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