Title: bpo-34783 move pymain_clear_config to directly before pymain_run_* by Elias481 · Pull Request #9522 · python/cpython · GitHub
Open Graph Title: bpo-34783 move pymain_clear_config to directly before pymain_run_* by Elias481 · Pull Request #9522 · python/cpython
X Title: bpo-34783 move pymain_clear_config to directly before pymain_run_* by Elias481 · Pull Request #9522 · python/cpython
Description: Posible fix for SIGSEGV on script specified on command line not found in 3.7 (for example on Alpine). On other Linux there is a (null) output instead. This would fix issue reported here: docker-library/python#320 . pymain_clear_config must not be run before pymain_run_filename -> pymain_open_filename. Could be implemented other way, thought. @vstinner should now how to do it properly. Alternative approaches I could mind, for example: preserver value of pymain->config.program and pass it through to pymain_open_filename in case it needs it for reporting errors get the program name for error message another way do not reference pymain->config.program in pymain_open_filename when the error message is generated ensure that all systems print "(null)" as program name instead to SEGV do not clear this at all https://bugs.python.org/issue34783
Open Graph Description: Posible fix for SIGSEGV on script specified on command line not found in 3.7 (for example on Alpine). On other Linux there is a (null) output instead. This would fix issue reported here: docker-lib...
X Description: Posible fix for SIGSEGV on script specified on command line not found in 3.7 (for example on Alpine). On other Linux there is a (null) output instead. This would fix issue reported here: docker-lib...
Opengraph URL: https://github.com/python/cpython/pull/9522
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3d05bed3-41c8-566e-46f9-0bbec34cb115 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D042:305538:8E2C89:BC79EF:6A53FB5D |
| html-safe-nonce | 067b5bde331f9d961a63b2a892f796622c69841b98a00a36352b59675f44640d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDQyOjMwNTUzODo4RTJDODk6QkM3OUVGOjZBNTNGQjVEIiwidmlzaXRvcl9pZCI6IjI0NzY0MDg1NTc1OTczNTg5NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ce473d37cdce360359a7d2ec7f70a8843b69e6011aa1cedf51a5f0bd2d86be99 |
| hovercard-subject-tag | pull_request:217540674 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/9522/files |
| twitter:image | https://avatars.githubusercontent.com/u/38512369?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/38512369?s=400&v=4 |
| og:image:alt | Posible fix for SIGSEGV on script specified on command line not found in 3.7 (for example on Alpine). On other Linux there is a (null) output instead. This would fix issue reported here: docker-lib... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width