This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年03月16日 05:24 by dgreiman, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| py3k-win-codec-recursion-20080315.diff | dgreiman, 2008年03月16日 05:24 | Patch for pythonrun.c | ||
| py3k-win-codec-recursion-20080316.diff | dgreiman, 2008年03月17日 02:34 | Updated patch including testcase | ||
| Messages (5) | |||
|---|---|---|---|
| msg63570 - (view) | Author: Douglas Greiman (dgreiman) * | Date: 2008年03月16日 05:24 | |
When python is invoked with -v or -vv under Windows, the process of importing the codec for sys.stderr causes a message to be written to stderr, which in turn causes the codec to be recursively imported. Sometimes the stack overflow exception is swallowed, other times it is not. The bug depends on the particular locale settings of the Windows machine. To reproduce: python_d.exe -v and look for many repeated imports of encodings.<some codec> Patch is attached. |
|||
| msg63611 - (view) | Author: Trent Nelson (trent) * (Python committer) | Date: 2008年03月17日 01:09 | |
Any chance of getting a test case that demonstrates this? I'll happily test the patch if there's an associated test case I can run to assert before/after behaviour. |
|||
| msg63613 - (view) | Author: Douglas Greiman (dgreiman) * | Date: 2008年03月17日 02:34 | |
Good call. I've attached an updated patch which includes a testcase in test_cmd_line.py. |
|||
| msg63615 - (view) | Author: Trent Nelson (trent) * (Python committer) | Date: 2008年03月17日 03:14 | |
+1, tested on x86 XP and x64 2k8. |
|||
| msg64044 - (view) | Author: Trent Nelson (trent) * (Python committer) | Date: 2008年03月19日 06:53 | |
Fixed in r61607, thanks for the report + patch. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:31 | admin | set | github: 46550 |
| 2008年03月19日 06:53:27 | trent | set | status: open -> closed resolution: accepted messages: + msg64044 |
| 2008年03月18日 06:55:45 | trent | set | priority: normal assignee: trent |
| 2008年03月17日 03:14:02 | trent | set | messages: + msg63615 |
| 2008年03月17日 02:34:27 | dgreiman | set | files:
+ py3k-win-codec-recursion-20080316.diff messages: + msg63613 |
| 2008年03月17日 01:09:03 | trent | set | nosy:
+ trent messages: + msg63611 |
| 2008年03月16日 05:24:44 | dgreiman | create | |