From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24064: 24.5; NULL pointer dereference in compute_motion(), indent.c Date: Tue, 26 Jul 2016 18:35:07 +0300 Message-ID: <8337mwtntg.fsf@gnu.org> References: <18720133-6691-74c9-528f-3baee920b421@gmail.com> <83vaztu1n5.fsf@gnu.org> <3092bb3f-6d7f-0495-bf53-a317b9f52fa9@gmail.com> <0f1f4edb-100e-5bfa-b1da-fc9c68723ee3@gmail.com> <87oa5lb01m.fsf@users.sourceforge.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1469547458 26779 80.91.229.3 (26 Jul 2016 15:37:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2016 15:37:38 +0000 (UTC) Cc: 24064-done@debbugs.gnu.org, npostavs@users.sourceforge.net To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 26 17:37:27 2016 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 1bS4QA-0004ZR-W1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jul 2016 17:37:27 +0200 Original-Received: from localhost ([::1]:40579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS4QA-0000RT-C0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jul 2016 11:37:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS4Ov-0008Cz-7r for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2016 11:36:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bS4Oo-000655-Fg for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2016 11:36:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS4Oo-00064z-CF for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2016 11:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bS4Oo-0008Qa-8j for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2016 11:36:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jul 2016 15:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 24064 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 24064@debbugs.gnu.org, eliz@gnu.org, litvindev@gmail.com Original-Received: via spool by 24064-done@debbugs.gnu.org id=D24064.146954734032364 (code D ref 24064); Tue, 26 Jul 2016 15:36:02 +0000 Original-Received: (at 24064-done) by debbugs.gnu.org; 26 Jul 2016 15:35:40 +0000 Original-Received: from localhost ([127.0.0.1]:38286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS4OO-0008Po-1E for submit@debbugs.gnu.org; Tue, 26 Jul 2016 11:35:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS4OI-0008PV-0C for 24064-done@debbugs.gnu.org; Tue, 26 Jul 2016 11:35:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bS4O8-0005uw-LY for 24064-done@debbugs.gnu.org; Tue, 26 Jul 2016 11:35:24 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS4O8-0005uc-Ir; Tue, 26 Jul 2016 11:35:20 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1778 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bS4O6-0003jp-Nw; Tue, 26 Jul 2016 11:35:19 -0400 In-reply-to: (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel on Mon, 25 Jul 2016 22:49:35 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:121561 Archived-At: > From: Clément Pit--Claudel > Date: Mon, 25 Jul 2016 22:49:35 -0400 > Cc: 24064@debbugs.gnu.org > > >>> I've prepared an elisp file to reproduce a crash: > >>> > >>> 1) Open it and move cursor to the end of the file > >>> 2) Execute eval-buffer > >>> 3) Press C-l several times > >> > >> Running this recipe does not cause a crash for me in GNU Emacs 25.1.50.7 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-07-20. Am I missing something? > > > > It crashes for me on 24.5, but not on 25.0.95. Perhaps it was fixed? > > Indeed, same here. Crashes on 24.5, but not 25. C-l (a.k.a. "recenter") no longer calls compute_motion in Emacs 25, so to trigger the segfault, the recipe should be changed like this: 1) Open it and move cursor to the end of the file 2) Execute eval-buffer 3) Type "M-x set-variable RET scroll-preserve-screen-position RET t RET" 4) Type "C-u 1 C-v" In addition, the above should be done on a TTY frame. This 22-year old bug is now fixed on the master branch. Thanks.