This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: glob.glob with ** does not always detect symlink loops
Type: Stage:
Components: Library (Lib) Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: rrt
Priority: normal Keywords:

Created on 2021-04-16 20:08 by rrt, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg391253 - (view) Author: Reuben Thomas (rrt) Date: 2021-04-16 20:08
Example session:

$ mkdir foo
$ cd foo
$ ln -s .. bar
$ ln -s .. baz
$ python3.9
Python 3.9.0+ (default, Oct 20 2020, 08:43:38) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from glob import glob
>>> glob('**/README', recursive=True)
[HANG]

Removing either of the symlinks fixes the hang.
History
Date User Action Args
2022-04-11 14:59:44adminsetgithub: 88041
2021-04-16 20:10:06rrtsettitle: path.glob with ** does not always detect symlink loops -> glob.glob with ** does not always detect symlink loops
2021-04-16 20:08:29rrtsetcomponents: + Library (Lib)
versions: + Python 3.9
2021-04-16 20:08:18rrtcreate