all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry OReilly <gundaetiapo@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: stephen.berman@gmx.net, 15405@debbugs.gnu.org,
	Leo Liu <sdl.web@gmail.com>
Subject: bug#15405: 24.3; #[] freezes emacs
Date: Wed, 18 Sep 2013 19:20:35 -0400	[thread overview]
Message-ID: <CAFM41H1YV6Oy=CxNDi+XjDYnNMV60gtSEfF_exnUn=Rk4cPA8g@mail.gmail.com> (raw)
In-Reply-To: <83txhilymg.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]

What I've found so far is that the return from the font_list_entities
function's call to font_get_cache is as follows

C-x 3 without evalling #[] (Emacs behaves correctly):
(1 (#<font-spec x unknown DejaVu\ LGC\ Sans\ Mono nil iso10646-1 nil nil
nil nil nil 100 nil ((user-spec . "Monospace 10"))> . []) (#<font-spec x
nil Monospace nil iso8859-1 nil nil nil nil nil nil nil ((:name .
"Monospace 10"))> . []))

M-: #[] then C-x 3 (Emacs core dumps):
(1 (#<font-spec x unknown DejaVu\ LGC\ Sans\ Mono nil iso10646-1 nil nil
nil nil nil 100 nil ((user-spec . "Monospace 10"))> . #[]) (#<font-spec x
nil Monospace nil iso8859-1 nil nil nil nil nil nil nil ((:name .
"Monospace 10"))> . #[]))

The out of place #[] becomes the val input to font_delete_unmatched.

Separately, I found that calling (eq #[] #[]) also causes the problem.
So another reproduction recipe is to let file empty-byte-code.el have
content:

  (eq #[] #[])
  (split-window-right)

Then: emacs -Q --load empty-byte-code.el

Core dump results.

The eq function seems pretty harmless, so perhaps it's worth looking
at the reader that makes a Lisp_Object out of #[]. Where would I find
that?

[-- Attachment #2: Type: text/html, Size: 1382 bytes --]

  reply	other threads:[~2013-09-18 23:20 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-18  1:50 bug#15405: 24.3; #[] freezes emacs Leo Liu
2013-09-18  7:23 ` Andreas Schwab
2013-09-18 14:36 ` Barry OReilly
2013-09-18 15:07   ` Eli Zaretskii
2013-09-18 15:14     ` Barry OReilly
2013-09-18 15:27       ` Eli Zaretskii
2013-09-18 15:41         ` Stephen Berman
2013-09-18 16:26           ` Eli Zaretskii
2013-09-18 17:31             ` Barry OReilly
2013-09-18 19:26               ` Eli Zaretskii
2013-09-18 23:20                 ` Barry OReilly [this message]
2013-09-19  7:00                   ` Eli Zaretskii
2013-09-20 15:33                     ` Barry OReilly
2013-09-20 16:13                       ` Barry OReilly
2013-09-20 16:21                         ` Drew Adams
2013-09-20 19:09                       ` Stefan Monnier
2013-09-20 19:43                         ` Barry OReilly
2013-09-20 21:26                           ` Stefan Monnier
2013-09-20 21:38                             ` Barry OReilly
2013-09-21  1:28                               ` Dmitry Antipov
2013-09-21  1:39                                 ` Dmitry Antipov
2013-09-21  2:51                                 ` Stefan Monnier
2013-09-25 15:22                                   ` Barry OReilly
2013-09-25 16:12                                     ` Dmitry Antipov
2013-09-25 17:35                                       ` Stefan Monnier
2013-09-25 19:09                                         ` Barry OReilly
2013-09-25 21:50                                           ` Dmitry Antipov
2013-09-26  1:15                                           ` Stefan Monnier
2013-09-26  3:51                                             ` Barry OReilly
2013-09-25 17:10                                     ` Stefan Monnier
2013-09-18 23:41                 ` Barry OReilly
2013-09-18 17:57             ` Stephen Berman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFM41H1YV6Oy=CxNDi+XjDYnNMV60gtSEfF_exnUn=Rk4cPA8g@mail.gmail.com' \
    --to=gundaetiapo@gmail.com \
    --cc=15405@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=sdl.web@gmail.com \
    --cc=stephen.berman@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.