From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#5237: 23.1; file-expand-wildcards infinite recursion on tramp ipv6 addr Date: Thu, 17 Dec 2009 09:11:52 +1100 Message-ID: <87aaxibmc7.fsf@blah.blah> Reply-To: Kevin Ryde , 5237@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261003202 21216 80.91.229.12 (16 Dec 2009 22:40:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2009 22:40:02 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 16 23:39:54 2009 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.50) id 1NL2XC-0000Vs-BO for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2009 23:39:54 +0100 Original-Received: from localhost ([127.0.0.1]:57164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NL2XB-0002jk-Rl for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2009 17:39:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NL2X7-0002jV-VG for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 17:39:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NL2X2-0002iZ-Pp for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 17:39:48 -0500 Original-Received: from [199.232.76.173] (port=47642 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NL2X2-0002iR-Lc for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 17:39:44 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51639) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NL2X2-00012J-7G for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 17:39:44 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBGMdgTZ029556; Wed, 16 Dec 2009 14:39:42 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nBGMK47v027997; Wed, 16 Dec 2009 14:20:04 -0800 Resent-Date: Wed, 16 Dec 2009 14:20:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kevin Ryde Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 16 Dec 2009 22:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 5237 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126100158427301 (code B ref -1); Wed, 16 Dec 2009 22:20:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 16 Dec 2009 22:13:04 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBGMD3TM027298 for ; Wed, 16 Dec 2009 14:13:04 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NL27C-0005G5-E2 for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 17:13:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NL277-0005BF-JZ for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 17:13:01 -0500 Original-Received: from [199.232.76.173] (port=53862 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NL277-0005B1-7K for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 17:12:57 -0500 Original-Received: from mailout2-6.pacific.net.au ([61.8.2.229]:45015 helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NL276-0007Ky-Mp for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 17:12:57 -0500 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id 970B91A21F0 for ; Thu, 17 Dec 2009 09:12:52 +1100 (EST) Original-Received: from blah.blah (ppp2FAB.dyn.pacific.net.au [61.8.47.171]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id A4B308C27 for ; Thu, 17 Dec 2009 09:12:46 +1100 (EST) Original-Received: from gg by blah.blah with local (Exim 4.71) (envelope-from ) id 1NL265-0004IZ-7P for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2009 09:11:53 +1100 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 16 Dec 2009 17:39:48 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:33648 Archived-At: Calling file-expand-wildcards on a tramp filename with an ipv6 address goes into an infinite recursion. Eg. M-: (file-expand-wildcards "/scp:[::1]:/etc/passwd") => Variable binding depth exceeds max-specpdl-size You probably need ssh setup for ipv6 access to localhost to see this. I expect file-expand-wildcards shouldn't look at the remote identifier part when considering whether there's wildcards left to expand. And/or when doing "updir" with file-name-nondirectory + file-name-directory it should watch out for the result being the same as the input pattern, meaning the root directory has been reached. In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-09-14 on raven, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default-enable-multibyte-characters: t