René's URL Explorer Experiment


Title: `zipfile` may raise `EOFError` too early · Issue #101911 · python/cpython · GitHub

Open Graph Title: `zipfile` may raise `EOFError` too early · Issue #101911 · python/cpython

X Title: `zipfile` may raise `EOFError` too early · Issue #101911 · python/cpython

Description: I am using the ziprofs.py on Ubuntu. When I run this in Python-3.11.1 it works very well. With Python 3.12.0a4+ there are problems. In both cases, the same ziprofs.py and fuse.py files are used. The only difference is the python version....

Open Graph Description: I am using the ziprofs.py on Ubuntu. When I run this in Python-3.11.1 it works very well. With Python 3.12.0a4+ there are problems. In both cases, the same ziprofs.py and fuse.py files are used. Th...

X Description: I am using the ziprofs.py on Ubuntu. When I run this in Python-3.11.1 it works very well. With Python 3.12.0a4+ there are problems. In both cases, the same ziprofs.py and fuse.py files are used. Th...

Mail addresses
jan@wolski.fi
vstinner@python.org

Opengraph URL: https://github.com/python/cpython/issues/101911

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`zipfile` may raise `EOFError` too early","articleBody":"I am using the ziprofs.py on Ubuntu.  When I run this in Python-3.11.1 it works very well.  With Python\r\n3.12.0a4+ there are problems. In both cases, the same ziprofs.py and fuse.py files are used.\r\nThe only difference is the python version.\r\n\r\n\r\nUnfortunately, I was unable to demonstrate problems using Linux\r\ncommands like wc, gzip, md5sum.  Sofar, I only see this problem with  proprietary closed source software.\r\nIt appears with different files.\r\n\r\nWhen this EOFError occurs in \r\n    def read(self,path,size,offset,fh) of ziprofs.py\r\nthen the value of parameter \"size\" was 131072  and that of \"offset\" was 75755520.\r\nThe size of the file is  525537280 Bytes.\r\nStrikingly, the low value of offset suggests, that the EOF is not yet riched.\r\n\r\nMany thanks\r\nC\r\n\r\n```pytb\r\nFile \"/local/filesystem/git/ZipROFS/ziprofs.py\", line 258, in read\r\n    return f.read(size)\r\n           ^^^^^^^^^^^^\r\n  File \"/local/python/2023_02_cpython-main/Lib/zipfile/__init__.py\", line 948, in read\r\n    data = self._read1(n)\r\n           ^^^^^^^^^^^^^^\r\n  File \"/local/python/2023_02_cpython-main/Lib/zipfile/__init__.py\", line 1018, in _read1\r\n    data = self._read2(n)\r\n           ^^^^^^^^^^^^^^\r\n  File \"/local/python/2023_02_cpython-main/Lib/zipfile/__init__.py\", line 1052, in _read2\r\n    raise EOFError\r\nEOFError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/local/filesystem/git/ZipROFS/fuse.py\", line 744, in _wrapper\r\n    return func(*args, **kwargs) or 0\r\n           ^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/local/filesystem/git/ZipROFS/fuse.py\", line 860, in read\r\n    ret = self.operations('read', self._decode_optional_path(path), size, offset, fh)\r\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/local/filesystem/git/ZipROFS/ziprofs.py\", line 127, in __call__\r\n    return super().__call__(op, self.root + path, *args)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/local/filesystem/git/ZipROFS/fuse.py\", line 1097, in __call__\r\n    return getattr(self, op)(*args)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/local/filesystem/git/ZipROFS/ziprofs.py\", line 261, in read\r\n    exit(999)\r\n  File \"\u003cfrozen _sitebuiltins>\", line 26, in __call__\r\nSystemExit: 999\r\n```\r\n","author":{"url":"https://github.com/christophgil","@type":"Person","name":"christophgil"},"datePublished":"2023-02-14T16:55:57Z","url":"https://github.com/python/cpython/issues/101911"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:625155a1-23aa-8562-3117-62f8df26ac0c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEBBA:A71F9:35FB0C4:444FA81:6B021B39
html-safe-nonceef52b1ddef430e0ec28ae91ea8be10cd50d423588b51c31cf1b361bc2289111e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkJBOkE3MUY5OjM1RkIwQzQ6NDQ0RkE4MTo2QjAyMUIzOSIsInZpc2l0b3JfaWQiOiI4NDYwNzc3NTA1NTAxMDkyNjY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4aa3b7b20d24acbc95ec03a7ca1fe7a9cd7d1d466a1c55c4450e2baeda90eec4
hovercard-subject-tagissue:1584510174
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/101911/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2c686bff5cc74e12e57da82a30aa36ba276a50b2e0a91b8ffc2a05475272f423/python/cpython/issues/101911
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2c686bff5cc74e12e57da82a30aa36ba276a50b2e0a91b8ffc2a05475272f423/python/cpython/issues/101911
og:image:altI am using the ziprofs.py on Ubuntu. When I run this in Python-3.11.1 it works very well. With Python 3.12.0a4+ there are problems. In both cases, the same ziprofs.py and fuse.py files are used. Th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechristophgil
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/101911#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F101911
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F101911
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/101911
Reloadhttps://github.com/python/cpython/issues/101911
Reloadhttps://github.com/python/cpython/issues/101911
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/101911
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/101911
zipfile may raise EOFError too earlyhttps://github.com/python/cpython/issues/101911#top
https://github.com/gpshead
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-IOhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-IO%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/christophgil
christophgilhttps://github.com/christophgil
on Feb 14, 2023https://github.com/python/cpython/issues/101911#issue-1584510174
christophgilhttps://github.com/christophgil
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Feb 14, 2023https://github.com/python/cpython/issues/101911#event-8517694309
arhadthedevhttps://github.com/arhadthedev
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-IOhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-IO%22
on Feb 15, 2023https://github.com/python/cpython/issues/101911#event-8521849580
https://github.com/arhadthedev
arhadthedevhttps://github.com/arhadthedev
on Feb 15, 2023https://github.com/python/cpython/issues/101911#issuecomment-1430722385
@serhiy-storchakahttps://github.com/serhiy-storchaka
@gpsheadhttps://github.com/gpshead
https://github.com/christophgil
christophgilhttps://github.com/christophgil
on Feb 15, 2023https://github.com/python/cpython/issues/101911#issuecomment-1431048919
f9b3706https://github.com/python/cpython/commit/f9b3706df65c4962646587b437a4eb39289dfd4c
@sobolevnhttps://github.com/sobolevn
4f380dbhttps://github.com/python/cpython/commit/4f380db1a539bf7ae157d1e0791b5ac3fecfcf01
https://github.com/python/cpython.githttps://github.com/python/cpython.git
4f380dbhttps://github.com/python/cpython/commit/4f380db1a539bf7ae157d1e0791b5ac3fecfcf01
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
on Feb 15, 2023https://github.com/python/cpython/issues/101911#issuecomment-1431199835
https://git-scm.com/docs/git-bisecthttps://git-scm.com/docs/git-bisect
https://github.com/christophgil
christophgilhttps://github.com/christophgil
on Feb 16, 2023https://github.com/python/cpython/issues/101911#issuecomment-1433154552
…https://github.com/python/cpython/issues/101911
https://git-scm.com/docs/git-bisecthttps://git-scm.com/docs/git-bisect
#101911 (comment)https://github.com/python/cpython/issues/101911#issuecomment-1431199835
https://github.com/notifications/unsubscribe-auth/ASRZU6AM54BTPGD7JLNRWKLWXS35PANCNFSM6AAAAAAU3ZZ57Ehttps://github.com/notifications/unsubscribe-auth/ASRZU6AM54BTPGD7JLNRWKLWXS35PANCNFSM6AAAAAAU3ZZ57E
https://github.com/christophgil
christophgilhttps://github.com/christophgil
on Feb 18, 2023https://github.com/python/cpython/issues/101911#issuecomment-1435518035
330f1d5https://github.com/python/cpython/commit/330f1d58282517bdf1f19577ab9317fa9810bf95
gh-88339https://github.com/python/cpython/issues/88339
GH-27737https://github.com/python/cpython/pull/27737
@JuniorJPDJhttps://github.com/JuniorJPDJ
…https://github.com/python/cpython/issues/101911
https://git-scm.com/docs/git-bisecthttps://git-scm.com/docs/git-bisect
#101911 (comment)https://github.com/python/cpython/issues/101911#issuecomment-1431199835
https://github.com/notifications/unsubscribe-auth/ASRZU6AM54BTPGD7JLNRWKLWXS35PANCNFSM6AAAAAAU3ZZ57Ehttps://github.com/notifications/unsubscribe-auth/ASRZU6AM54BTPGD7JLNRWKLWXS35PANCNFSM6AAAAAAU3ZZ57E
https://github.com/christophgil
christophgilhttps://github.com/christophgil
on Feb 20, 2023https://github.com/python/cpython/issues/101911#issuecomment-1437233275
26a162bhttps://github.com/python/cpython/commit/26a162baef96d78656e189b2fa16fdcab7195730
gh-89668https://github.com/python/cpython/issues/89668
gh-25966https://github.com/python/cpython/pull/25966
90e7230https://github.com/python/cpython/commit/90e72300730189c4a48529baaad9b0005d40731c
gh-92781https://github.com/python/cpython/issues/92781
#92783https://github.com/python/cpython/pull/92783
https://github.com/christophgil
christophgilhttps://github.com/christophgil
on Feb 20, 2023https://github.com/python/cpython/issues/101911#issuecomment-1437237057
26a162bhttps://github.com/python/cpython/commit/26a162baef96d78656e189b2fa16fdcab7195730
gh-89668https://github.com/python/cpython/issues/89668
gh-25966https://github.com/python/cpython/pull/25966
90e7230https://github.com/python/cpython/commit/90e72300730189c4a48529baaad9b0005d40731c
gh-92781https://github.com/python/cpython/issues/92781
#92783https://github.com/python/cpython/pull/92783
…https://github.com/python/cpython/issues/101911
330f1d5https://github.com/python/cpython/commit/330f1d58282517bdf1f19577ab9317fa9810bf95
gh-88339https://github.com/python/cpython/issues/88339
GH-27737https://github.com/python/cpython/pull/27737
@JuniorJPDJhttps://github.com/JuniorJPDJ
https://git-scm.com/docs/git-bisecthttps://git-scm.com/docs/git-bisect
#101911 (comment)https://github.com/python/cpython/issues/101911#issuecomment-1431199835
https://github.com/notifications/unsubscribe-auth/ASRZU6AM54BTPGD7JLNRWKLWXS35PANCNFSM6AAAAAAU3ZZ57Ehttps://github.com/notifications/unsubscribe-auth/ASRZU6AM54BTPGD7JLNRWKLWXS35PANCNFSM6AAAAAAU3ZZ57E
https://github.com/christophgil
christophgilhttps://github.com/christophgil
on Feb 23, 2023https://github.com/python/cpython/issues/101911#issuecomment-1442519220
https://github.com/jpruciak
jpruciakhttps://github.com/jpruciak
on Mar 15, 2023https://github.com/python/cpython/issues/101911#issuecomment-1469828657
https://github.com/ericvsmith
ericvsmithhttps://github.com/ericvsmith
on Mar 15, 2023https://github.com/python/cpython/issues/101911#issuecomment-1470141902
https://github.com/mcepl
mceplhttps://github.com/mcepl
on Mar 31, 2023https://github.com/python/cpython/issues/101911#issuecomment-1491291276
epyhttps://github.com/wustho/epy
c7a87f3https://github.com/wustho/epy/commit/c7a87f3901c4c8e2c19f009aaf4e71e7e8e78b3e
Twenty Four Years Later-ao3_29298975.epubhttps://github.com/python/cpython/files/11118284/Twenty.Four.Years.Later-ao3_29298975.zip
gpsheadhttps://github.com/gpshead
on Mar 31, 2023https://github.com/python/cpython/issues/101911#event-8895412738
iritkatrielhttps://github.com/iritkatriel
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
on Apr 5, 2023https://github.com/python/cpython/issues/101911#event-8934039526
serhiy-storchakahttps://github.com/serhiy-storchaka
Zipfile issues 📦https://github.com/orgs/python/projects/7
on Sep 10, 2023https://github.com/python/cpython/issues/101911#event-14890790938
https://github.com/thatch
thatchhttps://github.com/thatch
on May 20, 2025https://github.com/python/cpython/issues/101911#issuecomment-2892727303
does use multiprocessinghttps://github.com/wustho/epy/blob/6b0e9fe0773f05fdf844b574f0f28df3961f60ab/src/epy_reader/reader.py#L139-L158
https://github.com/danifus
danifushttps://github.com/danifus
on May 20, 2025https://github.com/python/cpython/issues/101911#issuecomment-2892855912
#127856https://github.com/python/cpython/pull/127856
https://github.com/mcepl
mceplhttps://github.com/mcepl
on May 21, 2025https://github.com/python/cpython/issues/101911#issuecomment-2897406932
wustho/epy@ee3d693https://github.com/wustho/epy/commit/ee3d6932be21b8bb69881d625b201758ee125eb3
https://github.com/Ragzouken
Ragzoukenhttps://github.com/Ragzouken
on Sep 22, 2025https://github.com/python/cpython/issues/101911#issuecomment-3319170260
#127856https://github.com/python/cpython/pull/127856
https://github.com/Ragzouken
Ragzoukenhttps://github.com/Ragzouken
on Sep 22, 2025https://github.com/python/cpython/issues/101911#issuecomment-3319199377
picnixzhttps://github.com/picnixz
on Sep 22, 2025https://github.com/python/cpython/issues/101911#event-19842092683
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Sep 22, 2025https://github.com/python/cpython/issues/101911#issuecomment-3319655745
https://github.com/Ragzouken
Ragzoukenhttps://github.com/Ragzouken
on Sep 22, 2025https://github.com/python/cpython/issues/101911#issuecomment-3319759527
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Sep 22, 2025https://github.com/python/cpython/issues/101911#issuecomment-3319770962
picnixzhttps://github.com/picnixz
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 22, 2025https://github.com/python/cpython/issues/101911#event-19842707022
github-project-automationhttps://github.com/apps/github-project-automation
Zipfile issues 📦https://github.com/orgs/python/projects/7
on Sep 22, 2025https://github.com/python/cpython/issues/101911
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/101911
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/101911
gpsheadhttps://github.com/gpshead
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-IOhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-IO%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
Zipfile issues 📦https://github.com/orgs/python/projects/7
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.