From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.bugs Subject: bug#18392: Bug#759400: emacs24-nox: segfault when saving emacs lisp file Date: Tue, 02 Sep 2014 22:16:25 -0500 Message-ID: <87y4u1gzqu.fsf@trouble.defaultvalue.org> References: <20140827001632.24080.53245.reportbug@maritornes.cs.unb.ca> <20140827082930.GC1371@sid.nuvreauspam> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1409714245 13770 80.91.229.3 (3 Sep 2014 03:17:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2014 03:17:25 +0000 (UTC) Cc: 759400-forwarded@bugs.debian.org, David Bremner , 759400@bugs.debian.org To: 18392@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 03 05:17:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1XP14P-0006Ku-Hj for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Sep 2014 05:17:17 +0200 Original-Received: from localhost ([::1]:41170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP14O-0008I1-Qp for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2014 23:17:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP14H-0008HF-1L for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 23:17:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XP14B-0006Hu-7G for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 23:17:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP14B-0006Hq-36 for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 23:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XP14A-0002vv-Mc for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 23:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rob Browning Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Sep 2014 03:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18392 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.140971421411254 (code B ref -1); Wed, 03 Sep 2014 03:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Sep 2014 03:16:54 +0000 Original-Received: from localhost ([127.0.0.1]:57267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XP141-0002vR-48 for submit@debbugs.gnu.org; Tue, 02 Sep 2014 23:16:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57499) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XP13x-0002vA-Jg for submit@debbugs.gnu.org; Tue, 02 Sep 2014 23:16:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XP13m-0006Fi-Mp for submit@debbugs.gnu.org; Tue, 02 Sep 2014 23:16:44 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP13m-0006FM-KO for submit@debbugs.gnu.org; Tue, 02 Sep 2014 23:16:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP13h-0008GX-BJ for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 23:16:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XP13c-0006Dx-De for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 23:16:33 -0400 Original-Received: from defaultvalue.org ([70.85.129.156]:58172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP13c-0006Dt-8i for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 23:16:28 -0400 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 648452029B; Tue, 2 Sep 2014 22:16:27 -0500 (CDT) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 5F84714E0AD; Tue, 2 Sep 2014 22:16:25 -0500 (CDT) In-Reply-To: <20140827001632.24080.53245.reportbug@maritornes.cs.unb.ca>> User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92987 Archived-At: [If possible, please preserve the -forwarded address in any replies.] It appears that Emacs 24.3 is crashing on Debian mipsel, though it's not clear whether it's an Emacs problem, a toolchain issue, or something else. For now, I've been able to reproduce the crash by following the instructions below on one of our porter boxes. If helpful, I'd be happy to run further tests, or gather any additional information. On Ma, 26 aug 14, 17:16:32, David Bremner wrote: > To reproduce, > > 0. log into a mipsel host > > 1. run "emacs -Q foo.el", where foo.el is the attached file > (from the notmuch source) > > 2. Press space or modify the file in some other way > > 3. save the file using Control-X Control-S > > For me this prints > > "Fatal error 6: aborted" > > And then it seems like emacs hangs, and never returns to the shell. > > I originally noticed a possibly related problem with the same file > causing notmuch to FTBFS on notmuch. Here byte compilation leads to a > more detailed output. > > % emacs --quick -batch --directory . -f batch-byte-compile notmuch-show.el > emacs: malloc.c:2372: sysmalloc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - > 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) > (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 > *(sizeof(size_t))) - 1)) & ~((2 *(sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned > long) old_end & pagemask) == 0)' failed. The file mentioned (notmuch-show.el) is avaiable as an attachment to the full bug report here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759400 Also, when I tested, I saw: emacs24-nox: malloc.c:2372: sysmalloc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *(sizeof(size_t))) - 1)) & ~((2 *(sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long) old_end & pagemask) == 0)' failed. Program received signal SIGABRT, Aborted. 0x77943ee8 in raise () from /lib/mipsel-linux-gnu/libc.so.6 (gdb) Quit (gdb) where #0 0x77943ee8 in raise () from /lib/mipsel-linux-gnu/libc.so.6 #1 0x77945948 in abort () from /lib/mipsel-linux-gnu/libc.so.6 #2 0x7798fad0 in ?? () from /lib/mipsel-linux-gnu/libc.so.6 Lisp Backtrace: "find-coding-systems-region-internal" (0x7fff23a0) "find-coding-systems-region" (0x7fff2510) "select-safe-coding-system" (0x7fff2694) "write-region" (0x7fff2ab8) "basic-save-buffer-2" (0x7fff2c30) "basic-save-buffer-1" (0x7fff2d98) "basic-save-buffer" (0x7fff2f10) "save-buffer" (0x7fff30ac) "call-interactively" (0x7fff31d4) Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4