From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15405: 24.3; #[] freezes emacs Date: Wed, 25 Sep 2013 13:10:29 -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> <83ob7pmh28.fsf@gnu.org> <523CF65A.7010607@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1380129084 19585 80.91.229.3 (25 Sep 2013 17:11:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Sep 2013 17:11:24 +0000 (UTC) Cc: Dmitry Antipov , 15405@debbugs.gnu.org, Leo Liu , stephen.berman@gmx.net To: Barry OReilly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 25 19:11:25 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 1VOscV-0002GM-If for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Sep 2013 19:11:23 +0200 Original-Received: from localhost ([::1]:54043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOscU-0003GQ-Ti for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Sep 2013 13:11:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOscJ-000318-Ib for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2013 13:11:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOscA-0000Qd-Q6 for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2013 13:11:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOscA-0000QX-MS for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2013 13:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VOsc9-0005Dm-TE for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2013 13:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Sep 2013 17:11:01 +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.138012903320028 (code B ref 15405); Wed, 25 Sep 2013 17:11:01 +0000 Original-Received: (at 15405) by debbugs.gnu.org; 25 Sep 2013 17:10:33 +0000 Original-Received: from localhost ([127.0.0.1]:35633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VOsbh-0005Cy-AZ for submit@debbugs.gnu.org; Wed, 25 Sep 2013 13:10:33 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:47235) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VOsbe-0005Cq-RR for 15405@debbugs.gnu.org; Wed, 25 Sep 2013 13:10:31 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r8PHAUJZ021341; Wed, 25 Sep 2013 13:10:30 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id E8837B4102; Wed, 25 Sep 2013 13:10:29 -0400 (EDT) In-Reply-To: (Barry OReilly's message of "Wed, 25 Sep 2013 11:22:34 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: * X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 1.5 X-NAI-Spam-Rules: 2 Rules triggered SUBJ_EMPTY_BRACKET=1.5, RV4712=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4712> : inlines <101> : streams <1044651> : uri <1547297> 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:78739 Archived-At: > Without any special casing of zero vectors, the allocator calls > SETUP_ON_FREE_LIST for a zero vector and sets v->u.next. But for a > zero vector the allocator only allows enough memory for the header, so > setting the next pointer corrupts other memory. Yes, that's why we have special cased the zero-length vectors. How many different zero vectors do we need? We at least need 2 (the [] and the #[]), but do we need others? If not, let's try and change the code so that we can have those two pre-allocated and use the right one at the right place. Stefan