GNU bug report logs - #23949
25.0.95; Regression in handling error caused by (string-match-p "." nil)

Previous Next

Package: emacs;

Reported by: Kaushal Modi <kaushal.modi <at> gmail.com>

Date: Mon, 11 Jul 2016 20:13:02 UTC

Severity: normal

Tags: fixed

Merged with 16294, 24166

Found in versions 25.0.95, 24.3.50

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kaushal Modi <kaushal.modi <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23949 <at> debbugs.gnu.org
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 part 1 (text/plain, inline)]
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 <eliz <at> gnu.org> wrote:

> In this frame, please show the value of 'string', like this:
>
>  (gdb) frame 9
>  (gdb) p string
>  (gdb) xstring
>
-- 

-- 
Kaushal Modi
[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 167 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.