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 2016年10月02日 23:48 by thehesiod, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| python_urllib_crash.txt | thehesiod, 2016年10月02日 23:48 | |||
| Messages (7) | |||
|---|---|---|---|
| msg277917 - (view) | Author: Alexander Mohr (thehesiod) * | Date: 2016年10月02日 23:48 | |
I have a unittest which spawns several processes repeatedly. One of these subprocesses uses botocore, which itself uses the above two methods through the calls proxy_bypass and getproxies. It seems after re-spawning the methods a few times the titled calls eventually repeatedly cause python to crash on 10.12. I have a core file if that would help, zip'd it's ~242MB. I've attached a file that shows the lldb callstack and python callstack. |
|||
| msg277921 - (view) | Author: Alexander Mohr (thehesiod) * | Date: 2016年10月03日 02:22 | |
interestingly I haven't been able to get this to crash in a separate test app. There must be either timing related to some interaction with another module. let me know how you guys would like to proceed. I can definitely reproduce it consistently in our application. |
|||
| msg277922 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2016年10月03日 02:33 | |
This is likely a duplicate of issues like #27126 and #13829. In #24273 there is a suggested workaround: set environment variable "no_proxy" to "*". http://bugs.python.org/issue24273#msg243963 |
|||
| msg277968 - (view) | Author: Alexander Mohr (thehesiod) * | Date: 2016年10月03日 17:34 | |
ya I did a monkey patch which resolved it. if sys.platform == 'darwin': import botocore.vendored.requests.utils, urllib.request botocore.vendored.requests.utils.proxy_bypass = urllib.request.proxy_bypass_environment botocore.vendored.requests.utils.getproxies = urllib.request.getproxies_environment urllib.request.proxy_bypass = urllib.request.proxy_bypass_environment urllib.request.getproxies = urllib.request.getproxies_environment |
|||
| msg277970 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2016年10月03日 17:56 | |
Glad you have it working. Did you try the suggested workaround of setting environment variable "no_proxy" to "*"? I believe that should have had the same net effect as the monkey patching. |
|||
| msg278001 - (view) | Author: Alexander Mohr (thehesiod) * | Date: 2016年10月03日 21:37 | |
I'm sure it would work, I just wanted a solution that didn't changes to our build infrastructure. btw if we're marking this as a duplicate of the other bug, can we update the other bug to say it affects python3.x as well? Thanks! |
|||
| msg278080 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2016年10月04日 19:06 | |
OK, I'm closing this a duplicate and I've updated #13829 to include currently 3.x versions. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:37 | admin | set | github: 72529 |
| 2016年10月04日 19:06:27 | ned.deily | set | status: open -> closed nosy: + ronaldoussoren messages: + msg278080 components: + macOS stage: resolved |
| 2016年10月03日 21:37:33 | thehesiod | set | status: pending -> open messages: + msg278001 |
| 2016年10月03日 17:56:32 | ned.deily | set | status: open -> pending messages: + msg277970 |
| 2016年10月03日 17:34:39 | thehesiod | set | status: pending -> open messages: + msg277968 |
| 2016年10月03日 02:33:19 | ned.deily | set | status: open -> pending |
| 2016年10月03日 02:33:05 | ned.deily | set | nosy:
+ ned.deily messages: + msg277922 resolution: duplicate superseder: exception error in _scproxy.so when called after fork |
| 2016年10月03日 02:22:59 | thehesiod | set | messages: + msg277921 |
| 2016年10月02日 23:48:54 | thehesiod | create | |