From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#30855: 25.3; temacs fails with bus error during garbage collection Date: Tue, 20 Mar 2018 15:00:28 +0100 Message-ID: <23217.5116.912173.630464@a1i15.kph.uni-mainz.de> References: <23215.54774.152043.418244@a1i15.kph.uni-mainz.de> <834llboouy.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1521554374 29830 195.159.176.226 (20 Mar 2018 13:59:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Mar 2018 13:59:34 +0000 (UTC) Cc: 30855@debbugs.gnu.org, gentoo-bug@opensource.sf-tec.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 20 14:59:30 2018 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 1eyHnT-0007dl-KB for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Mar 2018 14:59:27 +0100 Original-Received: from localhost ([::1]:48964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyHpW-0007yR-KP for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Mar 2018 10:01:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyHpA-0007tU-Rp for bug-gnu-emacs@gnu.org; Tue, 20 Mar 2018 10:01:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyHp0-000051-VS for bug-gnu-emacs@gnu.org; Tue, 20 Mar 2018 10:01:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35935) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyHp0-00004s-RT for bug-gnu-emacs@gnu.org; Tue, 20 Mar 2018 10:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eyHp0-0002b4-Gn for bug-gnu-emacs@gnu.org; Tue, 20 Mar 2018 10:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Mar 2018 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30855-submit@debbugs.gnu.org id=B30855.15215544479953 (code B ref 30855); Tue, 20 Mar 2018 14:01:02 +0000 Original-Received: (at 30855) by debbugs.gnu.org; 20 Mar 2018 14:00:47 +0000 Original-Received: from localhost ([127.0.0.1]:43832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eyHok-0002aT-QR for submit@debbugs.gnu.org; Tue, 20 Mar 2018 10:00:47 -0400 Original-Received: from smtp.gentoo.org ([140.211.166.183]:53298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eyHoi-0002aF-8M for 30855@debbugs.gnu.org; Tue, 20 Mar 2018 10:00:44 -0400 Original-Received: from a1i15.kph.uni-mainz.de (host2092.kph.uni-mainz.de [134.93.134.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ulm) by smtp.gentoo.org (Postfix) with ESMTPSA id E751C335C09; Tue, 20 Mar 2018 14:00:36 +0000 (UTC) In-Reply-To: <834llboouy.fsf@gnu.org> X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) 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:144449 Archived-At: >>>>> On Mon, 19 Mar 2018, Eli Zaretskii wrote: > Thanks. We are not planning any further v25.x releases, so if this > problem doesn't happen with the latest pretest of Emacs 26.1, we > will consider it resolved. Well, function mark_memory hasn't been touched since 25.3, and the bug won't have resolved itself in some magical way. ;-) for (pp = start; (void *) pp < end; pp += GC_POINTER_ALIGNMENT) { mark_maybe_pointer (*(void **) pp); mark_maybe_object (*(Lisp_Object *) pp); } The loop is in steps of 4 but tries to access objects of size 8. Backtrace with Emacs 26.0.91 (thanks to Rolf Eike Beer): #0 0x002211a0 in mark_memory (start=0xffffacd8, end=0xffffc840) at alloc.c:4986 pp = 0xffffacdc "" #1 0x002211fc in mark_stack (bottom=0xffffc840 "", end=0xffffacd8 "") at alloc.c:5193 No locals. #2 0x0031d1c8 in mark_one_thread (thread=0x66ab88 ) at thread.c:616 stack_top = 0xffffacd8 #3 0x0031d328 in mark_threads_callback (ignore=0x0) at thread.c:649 thread_obj = -6917529027634353272 iter = 0x66ab88 #4 0x00221258 in flush_stack_call_func (func=0x31d2dc , arg=0x0) at alloc.c:5220 end = 0xffffacd8 self = 0x66ab88 sentry = {o = {__max_align_ll = -91431263796984, __max_align_ld = 0}} #5 0x0031d368 in mark_threads () at thread.c:656 No locals. #6 0x0022333c in garbage_collect_1 (end=0xffffaf00) at alloc.c:5997 nextb = 0x0 stack_top_variable = 0 '\000' i = 538 message_p = false count = 25 start = {tv_sec = 1521554084, tv_nsec = 118444958} retval = 0 tot_before = 0 total = {0, 0, 0, 4611686018427387904, 0, 4611686018427387904, -6917529027634762960, 4611686018434174144, 4611686018433697584, 0} #7 0x00223f74 in Fgarbage_collect () at alloc.c:6168 end = 0xffffaf00 sentry = {o = {__max_align_ll = -89060441849851, __max_align_ld = 2}} [...]