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:37:57 +0000 Message-ID: References: <83lh17ati6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134fc8c093cf30537706134 X-Trace: ger.gmane.org 1468330971 16008 80.91.229.3 (12 Jul 2016 13:42:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2016 13:42:51 +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:42:44 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 1bMxxT-0008Jr-9x for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2016 15:42:43 +0200 Original-Received: from localhost ([::1]:40591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMxxS-0007wc-KM for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2016 09:42:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMxtz-00049O-2V for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:39:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMxtu-0006qv-57 for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:39:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMxtu-0006qd-1V for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMxtt-0003Y4-Qx for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:39: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:39: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.146833070213592 (code B ref 23949); Tue, 12 Jul 2016 13:39:01 +0000 Original-Received: (at 23949) by debbugs.gnu.org; 12 Jul 2016 13:38:22 +0000 Original-Received: from localhost ([127.0.0.1]:47758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMxtC-0003X6-B6 for submit@debbugs.gnu.org; Tue, 12 Jul 2016 09:38:22 -0400 Original-Received: from mail-oi0-f52.google.com ([209.85.218.52]:36382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMxt6-0003Wn-R0 for 23949@debbugs.gnu.org; Tue, 12 Jul 2016 09:38:17 -0400 Original-Received: by mail-oi0-f52.google.com with SMTP id w18so22541234oiw.3 for <23949@debbugs.gnu.org>; Tue, 12 Jul 2016 06:38:12 -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=/0+kGCM2Rqaj+ak92qCug7l2q527mwi8qO10anV5lg0=; b=McKrrm1PTLscslKqGVTS3Ht0aCVnBf5XoUyuby6qoVMp8Vlt21X22S7XfVLQZDXyaI 5JcKPAeo/A1QVupwxHVjHMbS5BsxL3vzIRzQC8tdQjcmnn+NrTxb63fSU1vqtJmKVFSQ oHHdRmlrlxFgxh2hhu62MT6gNI0uuvLbK9DjKjaQnj/JTabTVrpvRH+FBVsZj1qC3e7B DVcl2/VGVnSmKLiuuDEazE8gBg6gymNfrrpoF1IgXhZ5Uus9sEIVOl1dtOzP5K2ktcAG TW7Vd8cDJPQmwIDzGqHc+qpd9x6PlkTMjh/uT63FvbzD7GuhW+RxcG9HV56LMTYHe7sF 9+7w== 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=/0+kGCM2Rqaj+ak92qCug7l2q527mwi8qO10anV5lg0=; b=PNzPKYkJ1BB3L9/IjOMAA0sxlaROo+W4yNJb9vMPzWhSIi9dU2PELrhK9uywUHLVg6 Xq7nhVlJLnZQuuflfSHA7OwPCogotIHjBlVShh19/HlxQgqcqs1vFVS7lPI8p8C9ffmB xRM7pFF3K+hmGnh1gJPD+dTNTgbi3/tmpUZSwn3hb1NNXERLK5vEYx1ktjC6VB4TTu6a b+7PQmtAjf5Z6FOgesbAvnvvvUYdlIIwVD0upkSy4PjHaNRY7oZcBnFIkoJvn4XJTL1Q yJN3oultI241EQ4jwA42CSjvq1rZMABMo9mN9DVg4UYBwwHAjrf3iXlL1ZhDWgIh9tqu x+xA== X-Gm-Message-State: ALyK8tJTy6XMGWcsI+x54lAcuajomQc/qoLHdBZRnvmP29EwxCUDK2FOOT0/k94g0pioGIK7tLpvBTCNhZ4DdQ== X-Received: by 10.202.199.149 with SMTP id x143mr1022458oif.50.1468330687411; Tue, 12 Jul 2016 06:38:07 -0700 (PDT) In-Reply-To: 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:120906 Archived-At: --001a1134fc8c093cf30537706134 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Some interesting discovery .. hope this helps debug this: Searched the whole emacs source and my ~/.emacs.d for 'is relative, it is com'. And the only place I found it was in lisp/progmodes/compile.el, line 2679: =3D=3D=3D=3D=3D km=C2=B2~/downloads/:git/emacs> ag 'is relative, it is com' lisp/progmodes/compile.el 2679:If DIRECTORY is relative, it is combined with `default-directory'. =3D=3D=3D=3D=3D Somehow "(nil" replaced "If DIRECT", the whole thing got lower-cased, string after "com" in "combined" got truncated, and we got: "(nilory is relative, it is com" On Tue, Jul 12, 2016 at 9:33 AM Kaushal Modi wrote= : > Hi Eli, > > This is what I get (obviously odd-looking string): > > (gdb) frame 9 > #9 0x0000000000624397 in Fread_from_string (string=3D54138084, start=3D0= , > end=3D0) at lread.c:2075 > 2075 ret =3D read_internal_start (string, start, end); > (gdb) p string > $15 =3D 54138084 > (gdb) xstring > $16 =3D (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 > --=20 --=20 Kaushal Modi --001a1134fc8c093cf30537706134 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Some interesting discovery .. hope this helps debug this:<= div>
Searched the whole emacs source and my ~/.emacs.d for &#= 39;is relative, it is com'. And the only place I found it was in lisp/p= rogmodes/compile.el, line 2679:

=3D=3D=3D=3D=3D
km=C2=B2~/downloads/:git/emacs> ag 'is relative, it is = com' =C2=A0 =C2=A0=C2=A0
lisp/progmodes/compile.el
= 2679:If DIRECTORY is relative, it is combined with `default-directory'.=
=3D=3D=3D=3D=3D

Somehow "(nil"= ; replaced "If DIRECT", the whole thing got lower-cased, string a= fter "com" in "combined" got truncated, and we got:

"(nilory is rela= tive, it is com"




<= div dir=3D"ltr">On Tue, Jul 12, 2016 at 9:33 AM Kaushal Modi <kaushal.modi@gmail.com> wrote:
Hi Eli,

<= div>This is what I get (obviously odd-looking string):

=
(gdb) frame 9
#9 =C2=A00x0000000000624397 in Fread_from= _string (string=3D54138084, start=3D0, end=3D0) at lread.c:2075
2= 075 =C2=A0 =C2=A0 =C2=A0ret =3D read_internal_start (string, start, end);
(gdb) p string
$15 =3D 54138084
(gdb) xstring<= /div>
$16 =3D (struct Lisp_String *) 0x33a14e0
"(nilory = is relative, it is com"

Looks like the 'n= il' argument in '(string-match-p "." nil)' somehow di= d this?

(BTW this debug session is on the=C2=A02f6= 7f8a 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 <eliz@gnu.org> wrote:<= br>
In this frame, please show the valu= e of 'string', like this:

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

Kaushal Modi

--

--
Kaushal Modi

--001a1134fc8c093cf30537706134--