-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Open
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
With some files python trying to pickle.load() use all available RAM
and get killed by OOM killer.
How-to-reproduce:
import pickle
f = open("./oom-1a498cedae1dc957f2fbb15d18a5c265dc7b9ae2.txt","rb")
pickle.load(f)
where oom-1a498cedae1dc957f2fbb15d18a5c265dc7b9ae2.txt:
]replace.
Whats-happend:
RAM consumption grows till process killed by OOM killer
Whats-you-expect:
some kind of error?
I'll include 3 examples of "broken" pickle files. But i cannot find the way to see similarities in content. And I'm not very well versed in the pickle format to find out the root of the problem.
CPython versions tested on:
3.9, 3.12
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
No status