Title: repr() of deeply nested dicts and dictviews can cause a stack overflow. · Issue #2782 · RustPython/RustPython · GitHub
Open Graph Title: repr() of deeply nested dicts and dictviews can cause a stack overflow. · Issue #2782 · RustPython/RustPython
X Title: repr() of deeply nested dicts and dictviews can cause a stack overflow. · Issue #2782 · RustPython/RustPython
Description: When repr() take a deeply nested dicts as the argument, the stack overflows and Rust Python interpreter crashes. test.py x = {} for i in range(10000): x = {1: x} repr(x) Actual output: Segmentation fault (core dumped) System: Ubuntu 16.0...
Open Graph Description: When repr() take a deeply nested dicts as the argument, the stack overflows and Rust Python interpreter crashes. test.py x = {} for i in range(10000): x = {1: x} repr(x) Actual output: Segmentation...
X Description: When repr() take a deeply nested dicts as the argument, the stack overflows and Rust Python interpreter crashes. test.py x = {} for i in range(10000): x = {1: x} repr(x) Actual output: Segmentation...
Opengraph URL: https://github.com/RustPython/RustPython/issues/2782
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"repr() of deeply nested dicts and dictviews can cause a stack overflow.","articleBody":"When repr() take a deeply nested dicts as the argument, the stack overflows and Rust Python interpreter crashes.\r\n\r\ntest.py\r\n```\r\nx = {}\r\nfor i in range(10000):\r\n x = {1: x}\r\n\r\nrepr(x)\r\n\r\n```\r\n\r\nActual output:\r\n\r\n> Segmentation fault (core dumped)\r\n\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:35:28Z","url":"https://github.com/RustPython/RustPython/issues/2782"}
| 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:e60c14e6-2a19-455d-d8ae-89d41928440a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84FE:2DBB21:2E883BF:3E1D742:6B01DE09 |
| html-safe-nonce | 1beca2909cf50403f5e7d6ce7cc34eff6e86851b6ad2221cac7b2b3ad955bf50 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEZFOjJEQkIyMToyRTg4M0JGOjNFMUQ3NDI6NkIwMURFMDkiLCJ2aXNpdG9yX2lkIjoiMzQzMDM2NTYzMzUwODkyNDkzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bb56aaf0c8f5a4a0ac530ad9da7769de2992d0c8ce58e81765af96a4cc578921 |
| hovercard-subject-tag | issue:957902863 |
| 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/2782/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2fde0429049f34ed4d16b07620ddb698f0e5699a4e63b8cb3dbcbf979625c9a5/RustPython/RustPython/issues/2782 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2fde0429049f34ed4d16b07620ddb698f0e5699a4e63b8cb3dbcbf979625c9a5/RustPython/RustPython/issues/2782 |
| og:image:alt | When repr() take a deeply nested dicts as the argument, the stack overflows and Rust Python interpreter crashes. test.py x = {} for i in range(10000): x = {1: x} repr(x) Actual output: Segmentation... |
| 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