Title: Undefined behaviour in `main` and 3.11 · Issue #96678 · python/cpython · GitHub
Open Graph Title: Undefined behaviour in `main` and 3.11 · Issue #96678 · python/cpython
X Title: Undefined behaviour in `main` and 3.11 · Issue #96678 · python/cpython
Description: I ran the sanitizers again, and found a few more instances of undefined behaviour, mostly around bit-shifting of signed integers and arithmetic with NULL pointers. export CC="clang" export ASAN_OPTIONS=detect_leaks=0 configure --with-ass...
Open Graph Description: I ran the sanitizers again, and found a few more instances of undefined behaviour, mostly around bit-shifting of signed integers and arithmetic with NULL pointers. export CC="clang" export ASAN_OPT...
X Description: I ran the sanitizers again, and found a few more instances of undefined behaviour, mostly around bit-shifting of signed integers and arithmetic with NULL pointers. export CC="clang" expor...
Opengraph URL: https://github.com/python/cpython/issues/96678
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Undefined behaviour in `main` and 3.11","articleBody":"I ran the sanitizers again, and found a few more instances of undefined behaviour, mostly around bit-shifting of signed integers and arithmetic with NULL pointers.\r\n\r\n```bash\r\nexport CC=\"clang\"\r\nexport ASAN_OPTIONS=detect_leaks=0\r\nconfigure --with-assertions --with-address-sanitizer --with-trace-refs --with-undefined-behavior-sanitizer --with-pydebug\r\nnice make -j8\r\nmake test\r\n```\r\n\r\nI put some asserts to demonstrate the undefined behaviour into pull requests for main (https://github.com/matthiasgoergens/cpython/pull/18) and 3.11 (https://github.com/matthiasgoergens/cpython/pull/19).\r\n\r\nMore information about my environment:\r\n\r\n```\r\n$ clang --version\r\nclang version 14.0.6\r\nTarget: x86_64-pc-linux-gnu\r\nThread model: posix\r\nInstalledDir: /usr/bin\r\n```","author":{"url":"https://github.com/matthiasgoergens","@type":"Person","name":"matthiasgoergens"},"datePublished":"2022-09-08T08:57:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":36},"url":"https://github.com/96678/cpython/issues/96678"}
| 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:68d5e5bf-1ea2-cdf3-c1d0-8d3191a574b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97A0:2F5B11:BCC4FA:104AF4C:6969F302 |
| html-safe-nonce | adb5121a2775296d9e62fd791566d1202fb4b5e620ee3bc6d4c83be7dc88dd7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0EwOjJGNUIxMTpCQ0M0RkE6MTA0QUY0Qzo2OTY5RjMwMiIsInZpc2l0b3JfaWQiOiI3Mjk5OTg0NzAwMjAzNDYzNDI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b3a28e03d6be142b075174c9a9fadc52afd8cebd44a0793782328659dc10e26e |
| hovercard-subject-tag | issue:1365829890 |
| 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/python/cpython/96678/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe46ccc7d524a7afa8964fdd0f35ae7720b1cf144edba5b294419c7a2615c2c7/python/cpython/issues/96678 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe46ccc7d524a7afa8964fdd0f35ae7720b1cf144edba5b294419c7a2615c2c7/python/cpython/issues/96678 |
| og:image:alt | I ran the sanitizers again, and found a few more instances of undefined behaviour, mostly around bit-shifting of signed integers and arithmetic with NULL pointers. export CC="clang" export ASAN_OPT... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matthiasgoergens |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width