From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#6378: all-completions Segfault Date: Tue, 8 Jun 2010 18:41:07 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1276016303 11720 80.91.229.12 (8 Jun 2010 16:58:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Jun 2010 16:58:23 +0000 (UTC) Cc: 6378@debbugs.gnu.org To: Nathan Weizenbaum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 08 18:58:22 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OM286-0006qt-7k for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Jun 2010 18:58:22 +0200 Original-Received: from localhost ([127.0.0.1]:47884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OM285-0002f1-KG for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Jun 2010 12:58:21 -0400 Original-Received: from [140.186.70.92] (port=51338 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OM27t-0002bh-Eb for bug-gnu-emacs@gnu.org; Tue, 08 Jun 2010 12:58:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OM27s-0005Gs-7w for bug-gnu-emacs@gnu.org; Tue, 08 Jun 2010 12:58:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37808) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OM27s-0005Gi-5O for bug-gnu-emacs@gnu.org; Tue, 08 Jun 2010 12:58:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OM1sI-0005js-1S; Tue, 08 Jun 2010 12:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Jun 2010 16:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6378 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6378-submit@debbugs.gnu.org id=B6378.127601529522049 (code B ref 6378); Tue, 08 Jun 2010 16:42:02 +0000 Original-Received: (at 6378) by debbugs.gnu.org; 8 Jun 2010 16:41:35 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OM1rr-0005ja-Ia for submit@debbugs.gnu.org; Tue, 08 Jun 2010 12:41:35 -0400 Original-Received: from mail-fx0-f44.google.com ([209.85.161.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OM1rp-0005jT-Qv for 6378@debbugs.gnu.org; Tue, 08 Jun 2010 12:41:34 -0400 Original-Received: by fxm13 with SMTP id 13so954238fxm.3 for <6378@debbugs.gnu.org>; Tue, 08 Jun 2010 09:41:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=OuozRXfFBcr9L48VNR6Rmb79G61F1tZ0mB29ENwWtmg=; b=GmedPKL0Ce3IGPP6yr+H3Yolu2U6ffn7OCx8yTFT0tzPqMgr/t2/r5ODqz6HYpV8Ds RUEITYLi8+e84QkIPtPhzVVm7Zbrck8gmyy4jqwy0TbbT3z4BzGgepEVlayARdIzC7XK ZW+E6OwTjeb+CAotfXWqNdUgAdaSBHIvunUVQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=R685Zr2fXL02gubSSuUGHlk9lcRouLpoYlbNNKfNVuzVdl2bp9s4r+7DlAu0PwkMIH 7tgDO986vsawsWBOOIai1QrdFEtwQCQ1TFXYkLtGSF6NICPhW7qHaQnOZJ52VAXHrF2R +IkbUgWJtWzpMyuwTTX/QXCAUzdR3gZ3TfHb0= Original-Received: by 10.204.47.21 with SMTP id l21mr8016923bkf.134.1276015287406; Tue, 08 Jun 2010 09:41:27 -0700 (PDT) Original-Received: by 10.204.32.5 with HTTP; Tue, 8 Jun 2010 09:41:07 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 08 Jun 2010 12:42:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37605 Archived-At: On Tue, Jun 8, 2010 at 17:46, Nathan Weizenbaum wrote: > =C2=A0 (all-completions "" []) > > I think the problem is on line 1593 of src/minibuf.c, but my > Emacs-innards-fu isn't good enough to attempt a fix. minibuf.c:1617, at this code: if (XSYMBOL (bucket)->next) because bucket has been assigned random junk from the nonexistent item at position 0 in COLLECTION. It should be fixed with the attached patch. Juanma 2010-06-08 Juanma Barranquero * minibuf.c (Fall_completions): Check COLLECTION's size. (Bug#6378) =3D=3D=3D modified file 'src/minibuf.c' --- src/minibuf.c 2010-01-13 08:35:10 +0000 +++ src/minibuf.c 2010-06-08 16:34:41 +0000 @@ -1591,5 +1591,5 @@ { obsize =3D XVECTOR (collection)->size; - bucket =3D XVECTOR (collection)->contents[index]; + bucket =3D obsize ? XVECTOR (collection)->contents[index] : zero; }