From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#23949: 25.0.95; Regression in handling error caused by (string-match-p "." nil) Date: Tue, 12 Jul 2016 13:33:05 +0000 Message-ID: References: <83lh17ati6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114080d2a8a34f0537704f7f X-Trace: ger.gmane.org 1468330477 8058 80.91.229.3 (12 Jul 2016 13:34:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2016 13:34:37 +0000 (UTC) Cc: 23949@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 15:34:28 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 1bMxpM-0003sb-V9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2016 15:34:21 +0200 Original-Received: from localhost ([::1]:40533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMxpM-0008MA-2Z for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2016 09:34:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMxpB-0008Lr-9L for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:34:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMxp4-0005Ex-AJ for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:34:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMxp4-0005El-7O for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMxp3-0003Qr-Qg for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jul 2016 13:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23949-submit@debbugs.gnu.org id=B23949.146833041113155 (code B ref 23949); Tue, 12 Jul 2016 13:34:01 +0000 Original-Received: (at 23949) by debbugs.gnu.org; 12 Jul 2016 13:33:31 +0000 Original-Received: from localhost ([127.0.0.1]:47754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMxoU-0003Q2-G4 for submit@debbugs.gnu.org; Tue, 12 Jul 2016 09:33:30 -0400 Original-Received: from mail-oi0-f43.google.com ([209.85.218.43]:34046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMxoP-0003Pl-Fc for 23949@debbugs.gnu.org; Tue, 12 Jul 2016 09:33:25 -0400 Original-Received: by mail-oi0-f43.google.com with SMTP id s66so22345463oif.1 for <23949@debbugs.gnu.org>; Tue, 12 Jul 2016 06:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h9zWWQOPhLSjYxQTPAoESzLiVgih/uULdemfea4NDQc=; b=RN4WxD1ztkhzf4uvsab1hGe3rzSIhOkpApfW9vqWXFfOQTUSVd13ZtM3TdKJf1CVCt iWpG+jcUHpBqt8eqC5XMg+yAfG/C/S8P2LI0eD1yvb51qN3VDEOh2D55OspvmNRH4Zt2 V6xGN9KQHe4biDiHEsAJxccp0INJCfxWpx8uAgCV7vm9gB1DMVTiZLf7n6Z+lb/898Gj LwvyoRwYXnl0URSxbwnJsmwStIjUxHZf/8Tl/RwVpMS31GtPat1JftMxo7W7VK+SdQgm UoqWEVuAr68ezQPwshwaG3i2NNSSf+8npoqz9RgFfUnWx2hdi3ElvcjRBtY4udzI7U/K ZIzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h9zWWQOPhLSjYxQTPAoESzLiVgih/uULdemfea4NDQc=; b=JP5lPb5FrP6tAZQw4OwVbgXu0+scyXstf5SpUviPqQQ4X25vt4BEmZOvk3hW5Ak8tU ZimaA0YIbTGmLluCg1gs/3mOJIBlSnMyunKFZjqlSTS8axIQppXlT8DxVRHFEyw3Y4/m 8ZY1Mr66VQx30Qa8G8Ql7oMkBKO0/jBoBaGOHEzXIcJKZGaQ9Aa9sbhtuCmib8HGnnP3 Qg0zEc63Mg2YaSnMDaD9JOSBhY+zh0nw6fWsKpQwxCeChm4xGLA3Yku7KhSy1g5u38zR ZrdrFdo2LqbJsIIvWxWbfxfbC/9LcP2JqQwfqsWmNDyt7x0cJWRaB37A9Xi1DDrpudR1 Rt6A== X-Gm-Message-State: ALyK8tL3yUHZ1qONG4KhSXXpVlrAUwOwImIcRzion6mh2GfVhsywfNyuPyyWTUb6/kWn+q+DvvV+4wu7REW4MQ== X-Received: by 10.202.231.83 with SMTP id e80mr12476364oih.159.1468330395867; Tue, 12 Jul 2016 06:33:15 -0700 (PDT) In-Reply-To: <83lh17ati6.fsf@gnu.org> 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:120905 Archived-At: --001a114080d2a8a34f0537704f7f Content-Type: text/plain; charset=UTF-8 Hi Eli, This is what I get (obviously odd-looking string): (gdb) frame 9 #9 0x0000000000624397 in Fread_from_string (string=54138084, start=0, end=0) at lread.c:2075 2075 ret = read_internal_start (string, start, end); (gdb) p string $15 = 54138084 (gdb) xstring $16 = (struct Lisp_String *) 0x33a14e0 "(nilory is relative, it is com" Looks like the 'nil' argument in '(string-match-p "." nil)' somehow did this? (BTW this debug session is on the 2f67f8a commit of master (very recent, today). But the bug is present on emacs-25 too.) On Tue, Jul 12, 2016 at 9:14 AM Eli Zaretskii wrote: > In this frame, please show the value of 'string', like this: > > (gdb) frame 9 > (gdb) p string > (gdb) xstring > -- -- Kaushal Modi --001a114080d2a8a34f0537704f7f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Eli,

This is what I get (obviously o= dd-looking string):

(gdb) frame 9
#= 9 =C2=A00x0000000000624397 in Fread_from_string (string=3D54138084, start= =3D0, end=3D0) at lread.c:2075
2075 =C2=A0 =C2=A0 =C2=A0ret =3D r= ead_internal_start (string, start, end);
(gdb) p string
$15 =3D 54138084
(gdb) xstring
$16 =3D (struct Lisp_St= ring *) 0x33a14e0
"(nilory is relative, it is com"

Looks like the 'nil' argument in '(string-= match-p "." nil)' somehow did this?

= (BTW this debug session is on the=C2=A02f67f8a commit of master (very recen= t, today). But the bug is present on emacs-25 too.)

On Tue, Jul 12, 2016 at 9:14 AM Eli Zaretskii= <eliz@gnu.org> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">In this frame, please show the value of '= string', like this:

=C2=A0(gdb) frame 9
=C2=A0(gdb) p string
=C2=A0(gdb) xstring
--

--
Kaushal Modi

--001a114080d2a8a34f0537704f7f--