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: Mon, 11 Jul 2016 20:12:10 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113e3ac203106d053761c52b X-Trace: ger.gmane.org 1468268009 25467 80.91.229.3 (11 Jul 2016 20:13:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2016 20:13:29 +0000 (UTC) To: 23949@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 22:13:18 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 1bMhZs-0005e6-8R for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2016 22:13:16 +0200 Original-Received: from localhost ([::1]:35872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMhZo-0001KV-9Q for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2016 16:13:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMhZg-0001KO-O7 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2016 16:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMhZe-0007v7-U4 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2016 16:13:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMhZe-0007uw-RA for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2016 16:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMhZe-0003th-Kp for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2016 16:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2016 20:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.146826795414943 (code B ref -1); Mon, 11 Jul 2016 20:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jul 2016 20:12:34 +0000 Original-Received: from localhost ([127.0.0.1]:47257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMhZC-0003sw-8e for submit@debbugs.gnu.org; Mon, 11 Jul 2016 16:12:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMhZA-0003sk-RX for submit@debbugs.gnu.org; Mon, 11 Jul 2016 16:12:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMhZ4-0007mR-1l for submit@debbugs.gnu.org; Mon, 11 Jul 2016 16:12:27 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMhZ3-0007mM-US for submit@debbugs.gnu.org; Mon, 11 Jul 2016 16:12:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMhZ1-0001Hk-DJ for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2016 16:12:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMhYz-0007kx-OR for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2016 16:12:23 -0400 Original-Received: from mail-oi0-x22a.google.com ([2607:f8b0:4003:c06::22a]:33688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMhYz-0007kr-Fc for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2016 16:12:21 -0400 Original-Received: by mail-oi0-x22a.google.com with SMTP id u201so163962258oie.0 for ; Mon, 11 Jul 2016 13:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=XWkL/0ekKCjt0ejkhY/XTD3iE3RhXRYpK1wfIMpJF1I=; b=tG/w8ui8opBAECi0h7B4VnT2hiYvf/2+oufbB6qXQPZG4prP6jaVYrdPIuXHp7rYbM kIIiOqIyjVuw2wSPQTcBiJkZkFrAAQrAcXQS7Fjo/z735mkynK2xhUvytZz2/q8luzwI sR3CL/wNytQeKA2HYLx9OrE5e7mTXjH1j3PTaCHQfAGONeGnrN7MLn7NvJLu7eF3gBeO UdJ7HBWnwsjGjlXoJaiGdFypJi045rHYaojuCQ8FUNQx9Y3a4qsIuLy1bKZS+VbHkjMU JeikqBDnNBBD19NRkmcqEqy/WY41bdMYysmVSrdIcedl/RetaCSjEsnXmJneKiwByimN KOTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XWkL/0ekKCjt0ejkhY/XTD3iE3RhXRYpK1wfIMpJF1I=; b=CZn58yF+9CkORZENyNe4PbdQYssv/0DtzjyCafeYz05ERvuPG24naUvRknBhUqsWGE 1VpG2sFXpLm41JfwWBtRXabhqj/ZsKl20ILb3IWFJmkkxGAakEJ8i/VQ0H+QdHfxX/gU OztFw09sEM/S9UMqyjbcxn4AWUVDwC7VLt2Mae0SF6QOUsyfqflQsfJjnnMVtwjll8zz SJ3hmiOULs+jirfSFtiGQo9jkZbDIsL8xp05cYyzalutIPsebD2FM71eM3VDYXD6CoVS nhQGizlFHh51GKUK68RSoOoYvrzKysVRCnSCYOAigUbLH47TXyy0utAuy9xwTnXIblnf /nPw== X-Gm-Message-State: ALyK8tJ30JrllYCX05+5PA86JwrVXs8mgCM4nYxWe7HwXAYcmq1GMzQlcRsUPy2SbFrPPUyQ8FcWck7r5z+nVA== X-Received: by 10.157.5.198 with SMTP id 64mr11920794otd.60.1468267940219; Mon, 11 Jul 2016 13:12:20 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:120873 Archived-At: --001a113e3ac203106d053761c52b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable As I do not understand the true nature of this bug, the title of this debbugs could be confusing. Please read the below in entirety. Related discussion is also on emacs-devel: https://lists.gnu.org/archive/html/emacs-devel/2016-07/msg00519.html Evaluating the below in emacs 24.5 emacs -Q results in the below error backtrace as expected: =3D=3D=3D=3D=3D Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("." nil nil) string-match-p("." nil) (progn (require (quote package)) (if (member (quote ("melpa" . " http://melpa.org/packages/")) package-archives) package-archives (setq package-archives (append package-archives (list (quote ("melpa" . " http://melpa.org/packages/")))))) (package-initialize) (package-refresh-contents) (package-install (quote projectile)) (require (quote projectile)) (projectile-global-mode) (string-match-p "." nil)) eval((progn (require (quote package)) (if (member (quote ("melpa" . " http://melpa.org/packages/")) package-archives) package-archives (setq package-archives (append package-archives (list (quote ("melpa" . " http://melpa.org/packages/")))))) (package-initialize) (package-refresh-contents) (package-install (quote projectile)) (require (quote projectile)) (projectile-global-mode) (string-match-p "." nil)) nil) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) =3D=3D=3D=3D=3D Minimal code to reproduce the issue: =3D=3D=3D=3D=3D (progn (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (package-initialize) (package-refresh-contents) (package-install 'projectile) (require 'projectile) (projectile-global-mode) (string-match-p "." nil)) =3D=3D=3D=3D=3D But evaluating the same on emacs-25 build results in: =3D=3D=3D=3D=3D Entering debugger... help-function-arglist: End of file during parsing =3D=3D=3D=3D=3D Also evaluating the above after M-x toggle-debug-on-error does not give a backtrace on the "help-function-arglist: End of file during parsing" error. This is a regression from how the actual error (wrong-type-argument stringp nil) backtrace showed up correctly on emacs 24.5 but is giving confusing and difficult to debug error on emacs-25. emacs-25 build info: In GNU Emacs 25.0.95.11 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2016-06-29 built on ulcf41.cld.analog.com Repository revision: 6192b6c3a4374b2cb6e02ca865e1899a04a7f7dc Windowing system distributor 'The X.Org Foundation', version 11.0.60900000 System Description: Red Hat Enterprise Linux Workstation release 6.6 (Santiago) Configured using: 'configure --with-modules --prefix=3D/home/kmodi/usr_local/apps/6/emacs/emacs-25 'CPPFLAGS=3D-fgnu89-inline -I/home/kmodi/usr_local/6/include -I/usr/include/freetype2 -I/usr/include' 'CFLAGS=3D-ggdb3 -O0' 'CXXFLAGS=3D-ggdb3 -O0' 'LDFLAGS=3D-L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64 -ggdb3' PKG_CONFIG_PATH=3D/home/kmodi/usr_local/6/lib/pkgconfig:/home/kmodi/usr_lo= cal/6/lib64/pkgconfig:/cad/adi/apps/gnu/linux/x86_64/6/lib/pkgconfig:/cad/a= di/apps/gnu/linux/x86_64/6/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pk= gconfig:/usr/share/pkgconfig:/lib/pkgconfig:/lib64/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 MODULES --=20 --=20 Kaushal Modi --001a113e3ac203106d053761c52b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
As I do not understand the true nature of this bug, t= he title of this debbugs could be confusing. Please read the below in entir= ety.

Related discussion is also on emacs-devel:=C2= =A0https://lists.gnu.org/archive/html/emacs-devel/2016-07/msg00519.ht= ml

Evaluating the below in emacs 24.5 emacs -Q= results in the below error backtrace as expected:

=3D=3D=3D=3D=3D
Debugger entered--Lisp error: (wrong-type-a= rgument stringp nil)
=C2=A0 string-match("." nil nil)
=C2=A0 string-match-p("." nil)
=C2=A0 (progn (= require (quote package)) (if (member (quote ("melpa" . "http://melpa.org/packages/")) p= ackage-archives) package-archives (setq package-archives (append package-ar= chives (list (quote ("melpa" . "http://melpa.org/packages/")))))) (package-initialize) = (package-refresh-contents) (package-install (quote projectile)) (require (q= uote projectile)) (projectile-global-mode) (string-match-p "." ni= l))
=C2=A0 eval((progn (require (quote package)) (if (member (quo= te ("melpa" . "http:/= /melpa.org/packages/")) package-archives) package-archives (setq p= ackage-archives (append package-archives (list (quote ("melpa" . = "http://melpa.org/packages/= ")))))) (package-initialize) (package-refresh-contents) (package-insta= ll (quote projectile)) (require (quote projectile)) (projectile-global-mode= ) (string-match-p "." nil)) nil)
=C2=A0 eval-last-sexp-= 1(nil)
=C2=A0 eval-last-sexp(nil)
=C2=A0 call-interacti= vely(eval-last-sexp nil nil)
=C2=A0 command-execute(eval-last-sex= p)
=3D=3D=3D=3D=3D

Minimal code to= reproduce the issue:
=3D=3D=3D=3D=3D
(progn
= =C2=A0 (require 'package)
=C2=A0 (add-to-list 'package-ar= chives '("melpa" . "http://melpa.org/packages/") t)
=C2=A0 (package-initi= alize)
=C2=A0 (package-refresh-contents)
=C2=A0 (packag= e-install 'projectile)

=C2=A0 (require 'pr= ojectile)
=C2=A0 (projectile-global-mode)
=C2=A0 (strin= g-match-p "." nil))
=3D=3D=3D=3D=3D

But evaluating the same on emacs-25 build results in:

<= /div>
=3D=3D=3D=3D=3D
Entering debugger...
hel= p-function-arglist: End of file during parsing
=3D=3D=3D=3D= =3D

Also evaluating the above after M-x toggle-deb= ug-on-error does not give a backtrace on the "help-function-arglist: End of file during parsing" error.

This is a regression from how the actual error (wrong-type-argument stringp nil)=C2=A0<= /span>backtrace showed up correctly on emac= s 24.5 but is giving confusing and difficult to debug error on emacs-25.

emacs-25 build info:

In GNU Emacs 25.0.95.11 (x8= 6_64-unknown-linux-gnu, GTK+ Version 2.24.23)
=C2=A0of 2016-06-29= built on ulcf41.cld.analog.com
Repository revision: 6192b6c3a4374b2cb6e02ca865e1899a04a7f7dc
Windowing system distributor 'The X.Org Foundation', versi= on 11.0.60900000
System Description: Red Hat Enterprise Linux Workstation re= lease 6.6 (Santiago)

Configured using:
= =C2=A0'configure --with-modules
=C2=A0--prefix=3D/home/kmodi/= usr_local/apps/6/emacs/emacs-25
=C2=A0'CPPFLAGS=3D-fgnu89-inl= ine -I/home/kmodi/usr_local/6/include
=C2=A0-I/usr/include/freety= pe2 -I/usr/include' 'CFLAGS=3D-ggdb3 -O0'
=C2=A0'= CXXFLAGS=3D-ggdb3 -O0' 'LDFLAGS=3D-L/home/kmodi/usr_local/6/lib
=C2=A0-L/home/kmodi/usr_local/6/lib64 -ggdb3'
=C2=A0PK= G_CONFIG_PATH=3D/home/kmodi/usr_local/6/lib/pkgconfig:/home/kmodi/usr_local= /6/lib64/pkgconfig:/cad/adi/apps/gnu/linux/x86_64/6/lib/pkgconfig:/cad/adi/= apps/gnu/linux/x86_64/6/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgco= nfig:/usr/share/pkgconfig:/lib/pkgconfig:/lib64/pkgconfig'
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAG= EMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUT= LS LIBXML2 FREETYPE LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11 = MODULES

--001a113e3ac203106d053761c52b--