Title: Segfault when compiling a nested AST · Issue #4862 · RustPython/RustPython · GitHub
Open Graph Title: Segfault when compiling a nested AST · Issue #4862 · RustPython/RustPython
X Title: Segfault when compiling a nested AST · Issue #4862 · RustPython/RustPython
Description: The code creates a nested abstract syntax tree for a double negation operation using the ast module and compiles and evaluates it, resulting in a segmentation fault. import ast d = e = ast.UnaryOp(op=ast.Not(), lineno=0, col_offset=0) d....
Open Graph Description: The code creates a nested abstract syntax tree for a double negation operation using the ast module and compiles and evaluates it, resulting in a segmentation fault. import ast d = e = ast.UnaryOp(...
X Description: The code creates a nested abstract syntax tree for a double negation operation using the ast module and compiles and evaluates it, resulting in a segmentation fault. import ast d = e = ast.UnaryOp(...
Opengraph URL: https://github.com/RustPython/RustPython/issues/4862
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segfault when compiling a nested AST","articleBody":"The code creates a nested abstract syntax tree for a double negation operation using the ast module and compiles and evaluates it, resulting in a segmentation fault.\r\n\r\n```\r\nimport ast\r\nd = e = ast.UnaryOp(op=ast.Not(), lineno=0, col_offset=0)\r\nd.operand = e\r\ncompile(ast.Expression(d), \"\u003ctest>\", \"eval\")\r\n```\r\n\r\nCrash message:\r\nSegmentation fault (core dumped)\r\n\r\nEnvironment:\r\nUbuntu 18.04\r\nrustpython v0.2.0","author":{"url":"https://github.com/xiaxinmeng","@type":"Person","name":"xiaxinmeng"},"datePublished":"2023-04-06T11:57:10Z","url":"https://github.com/RustPython/RustPython/issues/4862"}
| 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:8abb9147-97c6-9ddd-dc71-2c9b3732eb93 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8428:A99C2:3998665:492ED3A:6B01E3DB |
| html-safe-nonce | 141a63a90cce965c47a63713363894270f9dab31fbc1affc5ee7512e91447be8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDI4OkE5OUMyOjM5OTg2NjU6NDkyRUQzQTo2QjAxRTNEQiIsInZpc2l0b3JfaWQiOiIxNTIwMTQyMTI5MzMzMTM0Mjk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6e8c8db5adef528971f49f6906508084c9a5b6d80fcb304cec1e3ea8ade1a63c |
| hovercard-subject-tag | issue:1657284956 |
| 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/RustPython/RustPython/4862/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4f7a4accd4a20ef51a344a485ab15c7cb498d3bdf3b4351f7afb331fd9fa4ff/RustPython/RustPython/issues/4862 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4f7a4accd4a20ef51a344a485ab15c7cb498d3bdf3b4351f7afb331fd9fa4ff/RustPython/RustPython/issues/4862 |
| og:image:alt | The code creates a nested abstract syntax tree for a double negation operation using the ast module and compiles and evaluates it, resulting in a segmentation fault. import ast d = e = ast.UnaryOp(... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xiaxinmeng |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width