From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Wiesner Newsgroups: gmane.emacs.bugs Subject: bug#14718: 24.3.50; Endless loop in "package-read-all-archive-contents" Date: Tue, 25 Jun 2013 22:19:43 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372191618 21423 80.91.229.3 (25 Jun 2013 20:20:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Jun 2013 20:20:18 +0000 (UTC) To: 14718@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 25 22:20: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 1UrZis-0000Qx-HE for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Jun 2013 22:20:18 +0200 Original-Received: from localhost ([::1]:53384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrZis-0002RZ-4K for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Jun 2013 16:20:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrZij-0002GJ-4S for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 16:20:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrZig-0005Xa-U3 for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 16:20:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrZig-0005XR-RR for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 16:20:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UrZig-0000yM-5z for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 16:20:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Wiesner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jun 2013 20:20:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14718 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13721916013715 (code B ref -1); Tue, 25 Jun 2013 20:20:05 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jun 2013 20:20:01 +0000 Original-Received: from localhost ([127.0.0.1]:41033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UrZia-0000xi-Py for submit@debbugs.gnu.org; Tue, 25 Jun 2013 16:20:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38288) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UrZiY-0000xV-F7 for submit@debbugs.gnu.org; Tue, 25 Jun 2013 16:19:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrZiS-0005FD-3d for submit@debbugs.gnu.org; Tue, 25 Jun 2013 16:19:53 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrZiS-0005F8-0U for submit@debbugs.gnu.org; Tue, 25 Jun 2013 16:19:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrZiQ-0001yq-7z for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 16:19:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrZiO-00059s-Us for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 16:19:50 -0400 Original-Received: from mail-ea0-x235.google.com ([2a00:1450:4013:c01::235]:41856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrZiO-00059m-P3 for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 16:19:48 -0400 Original-Received: by mail-ea0-f181.google.com with SMTP id a15so7133230eae.40 for ; Tue, 25 Jun 2013 13:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=/uP1E+P/lyTc6hACoJ6vap/qdh0vts5MXyBg9upAoYc=; b=DEXh3be0cx82I/rbNjOrN7TE/QhZztFMPHtuJCx3ZBf+us+eW2BcQk5DQBnBdUukn4 z3xn4cGd4WfAsHaKQcVqb1ZIUWU5QBV2Q98CWxyDr8ijFFPvdrlVapkBjW/FzVpKflLs QJnkQRpysHBtqlIzIn9aA9rAaaIG1m8PmO8xRpjQ5mAh5qrR7azyO42nx1QAYdGrFMkM iIH7kXyG29uchdywiaPf8ECSCHySxWucgr49Edq+FAJrowaqQCMyPMQOV4oQJHay0ETJ oxwO6OJXBodX+aSOMI/rASDJisk+mfrm/2qcAFUuKYz9wiA42hdqyJ/V/qDlvaC7WM5d lvKw== X-Received: by 10.14.218.136 with SMTP id k8mr624024eep.111.1372191588046; Tue, 25 Jun 2013 13:19:48 -0700 (PDT) Original-Received: from lunaryorn-air (host-188-174-198-200.customer.m-online.net. [188.174.198.200]) by mx.google.com with ESMTPSA id cg12sm38387651eeb.7.2013.06.25.13.19.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 25 Jun 2013 13:19:47 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:75593 Archived-At: If a package is contained in two or more archives, "package-read-all-archive-contents" hangs in an endless loop. For instance, in "emacs -Q": ELISP> package-archives (("gnu" . "http://elpa.gnu.org/packages/")) ELISP> (package-refresh-contents) nil ELISP> (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) (("gnu" . "http://elpa.gnu.org/packages/") ("melpa" . "http://melpa.milkbox.net/packages/")) ELISP> package-archives (("gnu" . "http://elpa.gnu.org/packages/") ("melpa" . "http://melpa.milkbox.net/packages/")) ELISP> (package-refresh-contents) *** Eval error *** Quit during evaluation The last invocation continues forever. "Quit during evaluation" is the result of repeatedly pressing "C-g". I inserted some "message" calls into functions called by "package-refresh-contents", which indicate that the "while" loop at the bottom of "package--add-to-archive-contents" is the root cause. This loop seems to continue forever if "package--add-to-archive-contents" is invoked with a "package" which is already contained in another archive. Inserting a "(message "DEBUG: Looping for %s" package)" at the beginning of the body of this loop repeats this message a few thousand times before C-g succeeds in interrupting the evaluation. In my case, this was the "yasnippet" package which is contained in GNU as well as in MELPA. Apparently the test of this loop is wrong, but since I do not understand what the loop is supposed to do, I can't say how it is wrong.