From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56369: 29.0.50; abort-redisplay: Crash after 'recenter' Date: Sun, 03 Jul 2022 19:08:13 +0300 Message-ID: <83edz29o2a.fsf@gnu.org> References: <0114d3daab13a4de33711ba8fd5e0c21091bbb6b.camel@florommel.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4542"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56369@debbugs.gnu.org To: Florian Rommel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 03 18:09:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o829m-00013v-0H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Jul 2022 18:09:10 +0200 Original-Received: from localhost ([::1]:55494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o829k-0007rS-Q5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Jul 2022 12:09:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o829e-0007r3-4B for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2022 12:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o829d-0003MQ-RT for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2022 12:09:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o829d-00063H-Jj for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2022 12:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jul 2022 16:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56369 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 56369-submit@debbugs.gnu.org id=B56369.165686451523227 (code B ref 56369); Sun, 03 Jul 2022 16:09:01 +0000 Original-Received: (at 56369) by debbugs.gnu.org; 3 Jul 2022 16:08:35 +0000 Original-Received: from localhost ([127.0.0.1]:45416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o829D-00062Z-GF for submit@debbugs.gnu.org; Sun, 03 Jul 2022 12:08:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o829B-00062J-JE for 56369@debbugs.gnu.org; Sun, 03 Jul 2022 12:08:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8293-0003JO-M4; Sun, 03 Jul 2022 12:08:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=1brhwW8ulWy5XcLA5LU9rS5hANbWzF9awbnkLlGhILk=; b=kaBaQgDfRNpz goiCWTObmSD0c4Txvx7skhe+7KuuVetYTLuAnF47w1GNRgNkwZxO3vlghISbjXIrLf6PujGYz88Ct vxz6pohwohX0f5408fh9e0niPg95cZ5v7R5KXvAy3h3V9VeS02FEGFpFWLNQao/CLCKpb5wBJts36 QzSAq0+hO86N5JYW275PHiPqwcxZJNhGcn0yRWC5Iyg1isuzRf66WhrKMxmtYG+gT3daoYtl6ImTI lxmOq6lMuL2LCo2TLY6BkWYbSbeeXeIK5sWMn8l68G6g8q/nKeRanBvDCH/gXhl1jLPlF2U03YyUS FNiR8CWPo9r2J/ZUSIaTYA==; Original-Received: from [87.69.77.57] (port=2763 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8293-0004IR-64; Sun, 03 Jul 2022 12:08:25 -0400 In-Reply-To: <0114d3daab13a4de33711ba8fd5e0c21091bbb6b.camel@florommel.de> (message from Florian Rommel on Sun, 03 Jul 2022 17:55:50 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236008 Archived-At: > From: Florian Rommel > Date: Sun, 03 Jul 2022 17:55:50 +0200 > > I get a crash caused by a failed free() [see attached backtrace] when > running vterm [1] which calls 'recenter' from a loaded module. > With gdb, in 'safe_free' I see that the address of the to-be-freed > arguments array (allocated in 'module_funcall') is off by one word. > > I don't know the details of the specpdl stack but I assume that there > is a missing 'ubind_to' in 'recenter' before an early return. When I > add it (see the attached patch) the problem is gone. Thanks, installed.