Title: exec() crashes Rust Python when taking large expression as argument · Issue #2783 · RustPython/RustPython · GitHub
Open Graph Title: exec() crashes Rust Python when taking large expression as argument · Issue #2783 · RustPython/RustPython
X Title: exec() crashes Rust Python when taking large expression as argument · Issue #2783 · RustPython/RustPython
Description: When we set the argument of exec() as a complex expression, Rust Python interpreter crashes Please check the following example. This example triggers segmentation fault on Rust Python 0.1.2 interpreter. test.py mylist = [] n = 10000 prin...
Open Graph Description: When we set the argument of exec() as a complex expression, Rust Python interpreter crashes Please check the following example. This example triggers segmentation fault on Rust Python 0.1.2 interpr...
X Description: When we set the argument of exec() as a complex expression, Rust Python interpreter crashes Please check the following example. This example triggers segmentation fault on Rust Python 0.1.2 interpr...
Opengraph URL: https://github.com/RustPython/RustPython/issues/2783
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"exec() crashes Rust Python when taking large expression as argument","articleBody":"When we set the argument of exec() as a complex expression, Rust Python interpreter crashes Please check the following example. This example triggers segmentation fault on Rust Python 0.1.2 interpreter.\r\n\r\ntest.py\r\n```\r\nmylist = []\r\nn = 10000\r\nprint(exec(\"mylist\"+\"+mylist\"*n))\r\n```\r\n\r\nActual output:\r\n\r\n> Segmentation fault (core dumped)\r\n\r\nSystem:\r\n\r\n> Ubuntu 16.04\r\n> Rust Python 0.1.2 interpreter","author":{"url":"https://github.com/xiaxinmeng","@type":"Person","name":"xiaxinmeng"},"datePublished":"2021-08-02T08:37:08Z","url":"https://github.com/RustPython/RustPython/issues/2783"}
| 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:0522cf6b-a30a-533a-a845-9430b475f2ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84E2:172B92:2EE058A:3E7B9CA:6B01DE04 |
| html-safe-nonce | 98a7a9e8f68981dc0dcd19dd1e7eb3910b78f807437488c3a9494ee2a1dd03a9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEUyOjE3MkI5MjoyRUUwNThBOjNFN0I5Q0E6NkIwMURFMDQiLCJ2aXNpdG9yX2lkIjoiMTM1MzcyMDA3NTEyMjc2MTIyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 308fb88114afdadca9e0c4c8b30f3e8c5ecd8ce488f995165fd97ecabe649909 |
| hovercard-subject-tag | issue:957904136 |
| 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/2783/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2bf3cc48893970bcfaa5fbb2a18719e36263ec42fa04c1f5af21489c15240747/RustPython/RustPython/issues/2783 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2bf3cc48893970bcfaa5fbb2a18719e36263ec42fa04c1f5af21489c15240747/RustPython/RustPython/issues/2783 |
| og:image:alt | When we set the argument of exec() as a complex expression, Rust Python interpreter crashes Please check the following example. This example triggers segmentation fault on Rust Python 0.1.2 interpr... |
| 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