Title: Segmentation fault in running compile() with large expression size. · Issue #2780 · RustPython/RustPython · GitHub
Open Graph Title: Segmentation fault in running compile() with large expression size. · Issue #2780 · RustPython/RustPython
X Title: Segmentation fault in running compile() with large expression size. · Issue #2780 · RustPython/RustPython
Description: Calling function compile() in "single" mode to compile large size expression can cause a segmentation fault On RustPython. See the following example. The example cause segmentation fault on Rust Python 0.1.2 interpreter when n > 10000, e...
Open Graph Description: Calling function compile() in "single" mode to compile large size expression can cause a segmentation fault On RustPython. See the following example. The example cause segmentation fault on Rust Py...
X Description: Calling function compile() in "single" mode to compile large size expression can cause a segmentation fault On RustPython. See the following example. The example cause segmentation fault ...
Opengraph URL: https://github.com/RustPython/RustPython/issues/2780
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segmentation fault in running compile() with large expression size.","articleBody":"Calling function compile() in \"single\" mode to compile large size expression can cause a segmentation fault On RustPython. See the following example. The example cause segmentation fault on Rust Python 0.1.2 interpreter when n > 10000, e.g. n = 1000,100000,1000000\r\n\r\ntest.py\r\n```\r\nmylist = []\r\nn = 10000\r\nprint(compile(\"mylist\"+\"+mylist\"*n,'','single'))\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:33:42Z","url":"https://github.com/RustPython/RustPython/issues/2780"}
| 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:5f2ab903-756e-9253-c245-4961b78b998e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9730:D1D28:FDB845:1516680:6B01DE06 |
| html-safe-nonce | 5cf884a55a57ab8cb1a24b8926c5bde740c560cc427a0535dbe26031cd4135ac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzMwOkQxRDI4OkZEQjg0NToxNTE2NjgwOjZCMDFERTA2IiwidmlzaXRvcl9pZCI6IjM3MzgzMzM1NjYyMjkxNDMwNDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 37594da0e312b2a4e8bec760bc7996c5ef95ffba3baf25f71ed4706e3876079b |
| hovercard-subject-tag | issue:957901536 |
| 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/2780/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e58abbafb66c7d0b96dd30af31ad19ef2c3d3123f685d28f35b6ec48db649205/RustPython/RustPython/issues/2780 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e58abbafb66c7d0b96dd30af31ad19ef2c3d3123f685d28f35b6ec48db649205/RustPython/RustPython/issues/2780 |
| og:image:alt | Calling function compile() in "single" mode to compile large size expression can cause a segmentation fault On RustPython. See the following example. The example cause segmentation fault on Rust Py... |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width