Message291853
| Author |
Jake Merdich |
| Recipients |
Jake Merdich |
| Date |
2017年04月18日.23:57:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1492559879.72.0.671474641555.issue30099@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
There seem to have been a few issues in the past with creating the lib2to3 pickle files with the right permissions due to umask behavior (#15890). While I'm unaware of the status installer-level fixes have given, it seems prudent that the installed python should always function, given there is an obvious and trivial fallback (regenerating the grammar tables at runtime).
The current codebase will throw a PermissionDenied exception if the pickle file is unreadable, rather than fall back to generating the grammar tables.
To reproduce:
Install python2.6+, 3.0+
chmod o-r $PYTHON_INSTALL/lib/pythonX.Y/lib2to3/*.pickle
pythonX.Y -c "import lib2to3.pygram"
Notably, this sort of borked installation is quite hard to detect.... unless a user without root tries to run setuptools (*whistles*). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年04月18日 23:58:00 | Jake Merdich | set | recipients:
+ Jake Merdich |
| 2017年04月18日 23:57:59 | Jake Merdich | set | messageid: <1492559879.72.0.671474641555.issue30099@psf.upfronthosting.co.za> |
| 2017年04月18日 23:57:59 | Jake Merdich | link | issue30099 messages |
| 2017年04月18日 23:57:59 | Jake Merdich | create |
|