GNU bug report logs - #6214
23.1; json-read-string crashes emacs with long string

Previous Next

Package: emacs;

Reported by: Carl Worth <cworth <at> cworth.org>

Date: Tue, 18 May 2010 16:36:01 UTC

Severity: normal

Found in version 23.1

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: notmuch <at> notmuchmail.org
Subject: Re: 23.1; json-read-string crashes emacs with long string
Date: Tue, 18 May 2010 18:16:43 +0100
On 2010-05-18 17:08 +0100, Carl Worth wrote:
> ;; Caution: Evaluating the block below has been known to crash emacs
> (with-temp-buffer
>   (require 'json)
>   ;; First we just need a lot of text. 32 copies of GPLv3 seems to do it
>   (dotimes (i 32)
>     (insert-file "/usr/share/emacs/23.1/etc/COPYING"))
>   ;; Now create a buffer with a json-encoded version of the text
>   (let ((json-string (json-encode-string (buffer-string))))
>     (with-temp-buffer
>       (insert json-string)
>       (goto-char (point-min))
>       ;; And try to read the string. This triggers the segfault.
>       (json-read-string))))

Crash emacs 23.2 too.

Leo





This bug report was last modified 14 years and 341 days ago.

Previous Next


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