From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.bugs Subject: bug#15405: 24.3; #[] freezes emacs Date: Wed, 18 Sep 2013 19:20:35 -0400 Message-ID: References: <8361tynp73.fsf@gnu.org> <834n9inoa0.fsf@gnu.org> <871u4mcf2h.fsf@rosalinde.fritz.box> <831u4mnlit.fsf@gnu.org> <83txhilymg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013cbfea43b85c04e6b0af06 X-Trace: ger.gmane.org 1379546478 32396 80.91.229.3 (18 Sep 2013 23:21:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Sep 2013 23:21:18 +0000 (UTC) Cc: stephen.berman@gmx.net, 15405@debbugs.gnu.org, Leo Liu To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 19 01:21:19 2013 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 1VMR3e-0002sj-It for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Sep 2013 01:21:18 +0200 Original-Received: from localhost ([::1]:49019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMR3d-0008MB-W8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Sep 2013 19:21:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMR3V-0008Lw-H3 for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2013 19:21:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMR3P-0000o8-Gb for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2013 19:21:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMR3P-0000o4-Bt for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2013 19:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VMR3O-0003NN-Ln for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2013 19:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Barry OReilly Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2013 23:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15405 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15405-submit@debbugs.gnu.org id=B15405.137954644612948 (code B ref 15405); Wed, 18 Sep 2013 23:21:02 +0000 Original-Received: (at 15405) by debbugs.gnu.org; 18 Sep 2013 23:20:46 +0000 Original-Received: from localhost ([127.0.0.1]:47622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMR36-0003Ml-Ge for submit@debbugs.gnu.org; Wed, 18 Sep 2013 19:20:44 -0400 Original-Received: from mail-we0-f176.google.com ([74.125.82.176]:59823) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMR33-0003MX-Lc for 15405@debbugs.gnu.org; Wed, 18 Sep 2013 19:20:42 -0400 Original-Received: by mail-we0-f176.google.com with SMTP id u56so7110547wes.35 for <15405@debbugs.gnu.org>; Wed, 18 Sep 2013 16:20:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fyL8yRPBxvEDfQkBr2hC+a7Xq0tPC2hvKsu7qObqSU0=; b=ZO+T9PqjP1QEXURpWbUJUvBB+lRJzD3Nc8YwVxlyOXpXN4ux2laYnqwamxNsplyDSz 0p89d8cZt0NOKdT6iJ0u4uCCYkj2PNgphu7znCWaUq/mDW8DLFjW23luDnv05rCowcn4 oD3v46b5RSN+rIaQEOrzcLcqgSetOnHNoyOwYYjbogoFUs5AIwV7zvOL6expGsHglfsK LRB3UvueiiMVMCu7yoyvkEz0vImk2yL+968kd8QA65I4zSaXSafrayaiYK2GjTKrUFsZ N1Ev9ibQ1T/6THXGVV8tBhKv5TIirJvwh1LmgeLHLvze+ERWbJYtm/PG+7LkIfyAn6Uu v22g== X-Received: by 10.194.176.163 with SMTP id cj3mr33819826wjc.8.1379546435924; Wed, 18 Sep 2013 16:20:35 -0700 (PDT) Original-Received: by 10.194.234.234 with HTTP; Wed, 18 Sep 2013 16:20:35 -0700 (PDT) In-Reply-To: <83txhilymg.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78539 Archived-At: --089e013cbfea43b85c04e6b0af06 Content-Type: text/plain; charset=ISO-8859-1 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 (# . []) (# . [])) M-: #[] then C-x 3 (Emacs core dumps): (1 (# . #[]) (# . #[])) 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? --089e013cbfea43b85c04e6b0af06 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
What I've found so far is that the return from the fon= t_list_entities
function's call to font_get_cache is as follows
<= br>C-x 3 without evalling #[] (Emacs behaves correctly):
(1 (#<font-s= pec x unknown DejaVu\ LGC\ Sans\ Mono nil iso10646-1 nil nil nil nil nil 10= 0 nil ((user-spec . "Monospace 10"))> . []) (#<font-spec x = nil Monospace nil iso8859-1 nil nil nil nil nil nil nil ((:name . "Mon= ospace 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-s= pec . "Monospace 10"))> . #[]) (#<font-spec x nil Monospace= nil iso8859-1 nil nil nil nil nil nil nil ((:name . "Monospace 10&quo= t;))> . #[]))

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:

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

Then: e= macs -Q --load empty-byte-code.el

Core dump results.

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



--089e013cbfea43b85c04e6b0af06--