From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Certain numbers of special forms cause changing behaviour on function calls in --batch Date: Sun, 10 Jul 2016 20:37:30 +0300 Message-ID: <83mvlpe6n9.fsf@gnu.org> References: <8760stvwzp.fsf@web.de> <834m8cvu9p.fsf@gnu.org> <87h9cbpw61.fsf@web.de> <83wpl7v1sg.fsf@gnu.org> <87a8i2dfe3.fsf@web.de> <83poqyvh58.fsf@gnu.org> <87shvu1ixp.fsf@web.de> <8360spvn6i.fsf@gnu.org> <8760sjn5me.fsf@web.de> <871t37n51y.fsf@web.de> <8337nmon4l.fsf@gnu.org> <87mvluomaz.fsf@web.de> <83mvlun6zc.fsf@gnu.org> <83bn25fst6.fsf@gnu.org> <83vb0de91c.fsf@gnu.org> <87r3b12zcg.fsf@linux-m68k.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468172336 22990 80.91.229.3 (10 Jul 2016 17:38:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 17:38:56 +0000 (UTC) Cc: michael_heerdegen@web.de, yasushi.shoji@gmail.com, me@wilfred.me.uk, emacs-devel@gnu.org, npostavs@users.sourceforge.net To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 10 19:38:51 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bMIgt-0007s2-4e for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2016 19:38:51 +0200 Original-Received: from localhost ([::1]:56166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIgs-0003aK-8C for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2016 13:38:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIfm-0002wH-Aj for emacs-devel@gnu.org; Sun, 10 Jul 2016 13:37:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMIfi-000347-5e for emacs-devel@gnu.org; Sun, 10 Jul 2016 13:37:41 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIfi-000343-2w; Sun, 10 Jul 2016 13:37:38 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3134 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bMIfg-00038V-VA; Sun, 10 Jul 2016 13:37:37 -0400 In-reply-to: <87r3b12zcg.fsf@linux-m68k.org> (message from Andreas Schwab on Sun, 10 Jul 2016 19:10:39 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:205516 Archived-At: > From: Andreas Schwab > Cc: Noam Postavsky , michael_heerdegen@web.de, yasushi.shoji@gmail.com, me@wilfred.me.uk, emacs-devel@gnu.org > Date: Sun, 10 Jul 2016 19:10:39 +0200 > > --track-origins=yes gives more information. > > ==25255== Conditional jump or move depends on uninitialised value(s) > ==25255== at 0x5F597E: MARKERP (lisp.h:2614) > ==25255== by 0x5F597E: exec_byte_code (bytecode.c:1367) > ==25255== by 0x5B4582: Ffuncall (eval.c:2754) > ==25255== by 0x5F394C: exec_byte_code (bytecode.c:880) > ==25255== by 0x5B4582: Ffuncall (eval.c:2754) > ==25255== by 0x5F394C: exec_byte_code (bytecode.c:880) > ==25255== by 0x5B336C: apply_lambda (eval.c:2794) > ==25255== by 0x5B36B2: eval_sub (eval.c:2241) > ==25255== by 0x5B3EEC: Fprogn (eval.c:426) > ==25255== by 0x5B3BFC: eval_sub (eval.c:2119) > ==25255== by 0x5B3BFC: eval_sub (eval.c:2119) > ==25255== by 0x5B3EEC: Fprogn (eval.c:426) > ==25255== by 0x5AD694: Fsave_excursion (editfns.c:1014) > ==25255== Uninitialised value was created by a stack allocation > ==25255== at 0x57942A: Fvertical_motion (indent.c:1993) > > One of the local variables of Fvertical_motion isn't properly > initialized. Thanks. Does the patch below fix the problem? diff --git a/src/indent.c b/src/indent.c index bc59239..ba6612b 100644 --- a/src/indent.c +++ b/src/indent.c @@ -2027,6 +2027,7 @@ whether or not it is currently displayed in some window. */) struct position pos; pos = *vmotion (PT, PT_BYTE, XINT (lines), w); SET_PT_BOTH (pos.bufpos, pos.bytepos); + it.vpos = pos.vpos; } else {