You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gh-143663: Perform path normalization in TarFile.extractall() - #143665
Please do not open a PR until the bug has been acknowledged. We can't just normalize all paths. Normalization is not the default behavior. I will close thbe PR until it has been decided that this change should be done. Sorry.
Ended up fixing the issue in extractall and not _get_extract_tarinfo as discussed in the issue because that ended up impacting the internal representation of tar objects in a way that broke a lot of tests. I think it's enough because the crash only shows up when calling lstat, which extract doesn't do, and _extract_member already perform the same separator conversion before writing to disk.
Summary of the results of the build (if available):
==
Click to see traceback logs
fatal: SHA1 COLLISION FOUND WITH 02d37d5dd2cefced3e2d834d453d6a5c848a2b9e !fatal: fetch-pack: invalid index-pack outputfatal: SHA1 COLLISION FOUND WITH 02d37d5dd2cefced3e2d834d453d6a5c848a2b9e !fatal: fetch-pack: invalid index-pack output
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log
Automatic cleanup will not be performed until the file is removed.
rror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5crror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
fatal: unable to read 02d26c4bef3ad0f9c97e47993a7fa67898842e5cfatal: could not finish pack-objects to repack promisor objectsfatal: failed to run repackremote: Enumerating objects: 13, done. remote: Counting objects: 7% (1/13) remote: Counting objects: 15% (2/13) remote: Counting objects: 23% (3/13) remote: Counting objects: 30% (4/13) remote: Counting objects: 38% (5/13) remote: Counting objects: 46% (6/13) remote: Counting objects: 53% (7/13) remote: Counting objects: 61% (8/13) remote: Counting objects: 69% (9/13) remote: Counting objects: 76% (10/13) remote: Counting objects: 84% (11/13) remote: Counting objects: 92% (12/13) remote: Counting objects: 100% (13/13) remote: Counting objects: 100% (13/13), done. remote: Compressing objects: 14% (1/7) remote: Compressing objects: 28% (2/7) remote: Compressing objects: 42% (3/7) remote: Compressing objects: 57% (4/7) remote: Compressing objects: 71% (5/7) remote: Compressing objects: 85% (6/7) remote: Compressing objects: 100% (7/7) remote: Compressing objects: 100% (7/7), done. remote: Total 7 (delta 6), reused 0 (delta 0), pack-reused 0 (from 0)
Receiving objects: 14% (1/7)
Receiving objects: 28% (2/7)
Receiving objects: 42% (3/7)
Receiving objects: 57% (4/7)
Receiving objects: 71% (5/7)
Receiving objects: 85% (6/7)
Receiving objects: 100% (7/7)
Receiving objects: 100% (7/7), 1.35 KiB | 81.00 KiB/s, done.
Resolving deltas: 0% (0/6)
Resolving deltas: 16% (1/6)
Resolving deltas: 33% (2/6)
Resolving deltas: 50% (3/6)
Resolving deltas: 66% (4/6)
Resolving deltas: 83% (5/6)
Resolving deltas: 100% (6/6)
Resolving deltas: 100% (6/6), completed with 6 local objects.
From https://github.com/python/cpython
* branch main -> FETCH_HEAD
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log
Automatic cleanup will not be performed until the file is removed.
rror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5crror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
fatal: unable to read 02d26c4bef3ad0f9c97e47993a7fa67898842e5cfatal: could not finish pack-objects to repack promisor objectsfatal: failed to run repack
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log
Automatic cleanup will not be performed until the file is removed.
rror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5crror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
fatal: unable to read 02d26c4bef3ad0f9c97e47993a7fa67898842e5cfatal: could not finish pack-objects to repack promisor objectsfatal: failed to run repackNote: switching to '562f08d6910f01e98f90e589ca5ee065fcbae53e'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 562f08d691 gh-143663: Perform path normalization in TarFile.extractall() (GH-143665)
Switched to and reset branch 'main'
configure: WARNING: no system libmpdec found; falling back to pure-Python version for the decimal module
Kill <WorkerThread #2 running test=test_external_inspection pid=2245389 time=12.5 sec> process group
Kill <WorkerThread #3 running test=test.test_concurrent_futures.test_process_pool pid=2244538 time=1 min 7 sec> process group
Kill <WorkerThread #4 running test=test_unparse pid=2245403 time=12.1 sec> process group
make: *** [Makefile:2564: buildbottest] Error 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
staleStale PR or inactive for long period of time.
5 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes an issue on Windows caused by non-normalized destination paths when calling
extractall().