On Sun, 20 Jul 2014 11:14:53 -0300, David Bremner wrote: > Hi Emacs Maintainers; Hi, Hmm, why has your original message not been accepted as a bug in the Emacs bug list? (I found it in the gmane.emacs.bugs newsgroup, so I'm cc'ing this to the group.) > A notmuch-emacs user reported a bug with emacs "hanging" on unpacking a > tar file. After some debugging I believe have narrowed the problem down > to the following test case, which can be run with e.g. > % emacs -Q --script bug.el > (require 'gnus-util) > (let* ((temp-dir (make-temp-file "/tmp/loop-test" t)) > (dir (concat temp-dir "/test")) > (target (concat dir "/parent"))) > (make-temp-file dir) > (make-directory dir) > (make-symbolic-link ".." target) > (message "%s" (gnus-recursive-directory-files dir))) > On my system, this reports some 40 spurious paths created by following > the symlink. In the actual case, it reported some 70,000 paths, which > caused further processing by the mm- libraries to grind to take an > apparently infinite time. The following patch fixes the problem at least on Cygwin. Is it ok for yours, too? If so, I'll install it in the Emacs trunk (i.e. the one that will become Emacs 24.5) and also the Gnus Git master.