Title: Rust Python gets crashing when rebinding __repr__ as __str__ · Issue #2778 · RustPython/RustPython · GitHub
Open Graph Title: Rust Python gets crashing when rebinding __repr__ as __str__ · Issue #2778 · RustPython/RustPython
X Title: Rust Python gets crashing when rebinding __repr__ as __str__ · Issue #2778 · RustPython/RustPython
Description: Rust Python interpreter crashes when rebinding repr as str. class Foo(object): pass Foo.__repr__ = Foo.__str__ foo = Foo() str(foo) Actual output: Segmentation fault (core dumped) System: Ubuntu 16.04 Rust Python 0.1.2 interpreter
Open Graph Description: Rust Python interpreter crashes when rebinding repr as str. class Foo(object): pass Foo.__repr__ = Foo.__str__ foo = Foo() str(foo) Actual output: Segmentation fault (core dumped) System: Ubuntu 16...
X Description: Rust Python interpreter crashes when rebinding repr as str. class Foo(object): pass Foo.__repr__ = Foo.__str__ foo = Foo() str(foo) Actual output: Segmentation fault (core dumped) System: Ubuntu 16...
Opengraph URL: https://github.com/RustPython/RustPython/issues/2778
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rust Python gets crashing when rebinding __repr__ as __str__","articleBody":"\r\nRust Python interpreter crashes when rebinding __repr__ as __str__. \r\n\r\n\r\n```\r\nclass Foo(object):\r\n pass\r\n\r\nFoo.__repr__ = Foo.__str__\r\n\r\nfoo = Foo()\r\nstr(foo)\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:30:46Z","url":"https://github.com/RustPython/RustPython/issues/2778"}
| 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:9cb37e39-3ba0-19df-01f4-02eb3dc168cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8556:2270F4:301001A:3FC78DB:6B01DE0B |
| html-safe-nonce | 783fd132223d86392d58d0f0f290a9595b5a801208ebd7d12c7627f78c76266d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTU2OjIyNzBGNDozMDEwMDFBOjNGQzc4REI6NkIwMURFMEIiLCJ2aXNpdG9yX2lkIjoiODEwMjUxNzk1ODE3MTAyNDkwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c4c39b4d593d1a01a0eb2fb44727b2d852a99cf2a9981a50329a0241696eff9d |
| hovercard-subject-tag | issue:957899269 |
| 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/2778/issue_layout |
| twitter:image | https://opengraph.githubassets.com/27831063da24b2e11500d864c579ec90021509a76816adec3ce81a41d1e018c4/RustPython/RustPython/issues/2778 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/27831063da24b2e11500d864c579ec90021509a76816adec3ce81a41d1e018c4/RustPython/RustPython/issues/2778 |
| og:image:alt | Rust Python interpreter crashes when rebinding repr as str. class Foo(object): pass Foo.__repr__ = Foo.__str__ foo = Foo() str(foo) Actual output: Segmentation fault (core dumped) System: Ubuntu 16... |
| 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