Title: Uninitialized memory read related to type_comment for *args or **kwds · Issue #36 · python/typed_ast · GitHub
Open Graph Title: Uninitialized memory read related to type_comment for *args or **kwds · Issue #36 · python/typed_ast
X Title: Uninitialized memory read related to type_comment for *args or **kwds · Issue #36 · python/typed_ast
Description: I believe I've found a very shy error due to an uninitialized memory read in typed_ast. The repro conditions are murky, it only works on a particular rev of a particular codebase. The problem manifests itself in one of two ways: SystemEr...
Open Graph Description: I believe I've found a very shy error due to an uninitialized memory read in typed_ast. The repro conditions are murky, it only works on a particular rev of a particular codebase. The problem manif...
X Description: I believe I've found a very shy error due to an uninitialized memory read in typed_ast. The repro conditions are murky, it only works on a particular rev of a particular codebase. The problem m...
Opengraph URL: https://github.com/python/typed_ast/issues/36
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Uninitialized memory read related to type_comment for *args or **kwds","articleBody":"I believe I've found a very shy error due to an uninitialized memory read in typed_ast.\r\n\r\nThe repro conditions are murky, it only works on a particular rev of a particular codebase. The problem manifests itself in one of two ways:\r\n\r\n- `SystemError: \u003cbuilt-in function _parse> returned a result with an error set` with a traceback ending at line 54 in ast3.py; I suspect it is getting the type_comment from a struct that doesn't have that field and reading nonsense. (Most of the time the memory was freshly allocated and the nonsense happens to look like a NULL pointer which then gets treated as intended, but apparently in some scenarios it returns non-NULL garbage.)\r\n\r\n- `Function has duplicate type signatures` from make_argument() in transform_args() in mypy/fastparse.py; this for a line that is actually correct; so far all examples I've seen involve `*args` and I suspect the true cause is a similar scenario as the first bullet, a non-NULL piece of garbage.\r\n\r\nISTR we fixed a similar issue in the past.\r\n\r\nI will investigate more next week.","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2017-03-31T21:52:11Z","url":"https://github.com/python/typed_ast/issues/36"}
| 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:8231ecd1-b6cb-28d0-e4a6-7f90e6ffac1f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1FC:23FDF9:2A4E2E0:39FC518:6B00590F |
| html-safe-nonce | 0db5c20bde622be581fb52ce88ec13a17fd95fed5845470b027d22df25fa9491 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUZDOjIzRkRGOToyQTRFMkUwOjM5RkM1MTg6NkIwMDU5MEYiLCJ2aXNpdG9yX2lkIjoiODQ5ODkzNTYyMjc1MTI0NjYwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a22d1973248c4f86ae1dd1ece222ddda6b61e7b86e95d00d4fabf582c4c4d9bf |
| hovercard-subject-tag | issue:218626147 |
| 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/typed_ast/36/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c674ba9e2c4369ad74c5e5d48e1a4272c75aa98bcdf95525b92cf03b77fdd639/python/typed_ast/issues/36 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c674ba9e2c4369ad74c5e5d48e1a4272c75aa98bcdf95525b92cf03b77fdd639/python/typed_ast/issues/36 |
| og:image:alt | I believe I've found a very shy error due to an uninitialized memory read in typed_ast. The repro conditions are murky, it only works on a particular rev of a particular codebase. The problem manif... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvanrossum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typed_ast git https://github.com/python/typed_ast.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 51875828 |
| octolytics-dimension-repository_nwo | python/typed_ast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 51875828 |
| octolytics-dimension-repository_network_root_nwo | python/typed_ast |
| 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 | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width