Title: Evaluating a long list with eval() causes segfault. · Issue #2781 · RustPython/RustPython · GitHub
Open Graph Title: Evaluating a long list with eval() causes segfault. · Issue #2781 · RustPython/RustPython
X Title: Evaluating a long list with eval() causes segfault. · Issue #2781 · RustPython/RustPython
Description: See the following example, we take a long computation of list addition operation. RustPython crashes. test.py mylist = [] n = 10000 print(eval("mylist"+"+mylist"*n)) Actual output: Segmentation fault (core dumped) System: Ubuntu 16.04 Ru...
Open Graph Description: See the following example, we take a long computation of list addition operation. RustPython crashes. test.py mylist = [] n = 10000 print(eval("mylist"+"+mylist"*n)) Actual output: Segmentation fau...
X Description: See the following example, we take a long computation of list addition operation. RustPython crashes. test.py mylist = [] n = 10000 print(eval("mylist"+"+mylist"*n)) Actual outp...
Opengraph URL: https://github.com/RustPython/RustPython/issues/2781
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Evaluating a long list with eval() causes segfault.","articleBody":"See the following example, we take a long computation of list addition operation. RustPython crashes. \r\n\r\ntest.py\r\n```\r\nmylist = []\r\nn = 10000\r\nprint(eval(\"mylist\"+\"+mylist\"*n))\r\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:34:36Z","url":"https://github.com/RustPython/RustPython/issues/2781"}
| 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:3ec211fb-d87e-83df-17a7-8c9b193332cc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0C2:2F9718:2C70FAE:3BA1363:6B01DE15 |
| html-safe-nonce | cde511519556910ff1bf4776ab1b0910b377e6d54de82491d33dda68119d101e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEMyOjJGOTcxODoyQzcwRkFFOjNCQTEzNjM6NkIwMURFMTUiLCJ2aXNpdG9yX2lkIjoiODM5OTk2NzM0NDE4NDY0NzE5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d90f893500cb5de53332477a7f6ef33968e07f57a29e68a4f32179cbce1f8568 |
| hovercard-subject-tag | issue:957902208 |
| 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/2781/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5639d1772ef9baf66a227047c7750f05012042484afec905f5090d500251653b/RustPython/RustPython/issues/2781 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5639d1772ef9baf66a227047c7750f05012042484afec905f5090d500251653b/RustPython/RustPython/issues/2781 |
| og:image:alt | See the following example, we take a long computation of list addition operation. RustPython crashes. test.py mylist = [] n = 10000 print(eval("mylist"+"+mylist"*n)) Actual output: Segmentation fau... |
| 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