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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:625155a1-23aa-8562-3117-62f8df26ac0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBBA:A71F9:35FB0C4:444FA81:6B021B39 |
| html-safe-nonce | ef52b1ddef430e0ec28ae91ea8be10cd50d423588b51c31cf1b361bc2289111e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkJBOkE3MUY5OjM1RkIwQzQ6NDQ0RkE4MTo2QjAyMUIzOSIsInZpc2l0b3JfaWQiOiI4NDYwNzc3NTA1NTAxMDkyNjY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4aa3b7b20d24acbc95ec03a7ca1fe7a9cd7d1d466a1c55c4450e2baeda90eec4 |
| hovercard-subject-tag | issue:1584510174 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/101911/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2c686bff5cc74e12e57da82a30aa36ba276a50b2e0a91b8ffc2a05475272f423/python/cpython/issues/101911 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2c686bff5cc74e12e57da82a30aa36ba276a50b2e0a91b8ffc2a05475272f423/python/cpython/issues/101911 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | christophgil |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width