Title: test_ctypes: test_generated_data() fails on x86 Debian Installed with X 3.x · Issue #121938 · python/cpython · GitHub
Open Graph Title: test_ctypes: test_generated_data() fails on x86 Debian Installed with X 3.x · Issue #121938 · python/cpython
X Title: test_ctypes: test_generated_data() fails on x86 Debian Installed with X 3.x · Issue #121938 · python/cpython
Description: Bug report x86 Debian Installed with X 3.x build: https://buildbot.python.org/all/#/builders/1244/builds/2499 FAIL: test_generated_data (test.test_ctypes.test_generated_structs.GeneratedTest.test_generated_data) (name='Packed4') Check th...
Open Graph Description: Bug report x86 Debian Installed with X 3.x build: https://buildbot.python.org/all/#/builders/1244/builds/2499 FAIL: test_generated_data (test.test_ctypes.test_generated_structs.GeneratedTest.test_g...
X Description: Bug report x86 Debian Installed with X 3.x build: https://buildbot.python.org/all/#/builders/1244/builds/2499 FAIL: test_generated_data (test.test_ctypes.test_generated_structs.GeneratedTest.test_g...
Opengraph URL: https://github.com/python/cpython/issues/121938
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_ctypes: test_generated_data() fails on x86 Debian Installed with X 3.x","articleBody":"# Bug report\n\nx86 Debian Installed with X 3.x build: https://buildbot.python.org/all/#/builders/1244/builds/2499\n\n```\nFAIL: test_generated_data (test.test_ctypes.test_generated_structs.GeneratedTest.test_generated_data) (name='Packed4')\nCheck that a ctypes struct/union matches its C equivalent.\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.14/test/test_ctypes/test_generated_structs.py\", line 444, in test_generated_data\n self.assertEqual(sizeof(cls), next(expected))\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: 12 != 16\n```\n\nThe structure:\n\n```py\n@register()\nclass Packed4(Structure):\n _fields_ = [('a', c_int8), ('b', c_int64)]\n _pack_ = 8\n```\n\nconfigure:\n\n```\n./configure --prefix '$(PWD)/target'\n```\n\ntest.pythoninfo:\n\n```\nCC.version: gcc (Debian 12.2.0-14) 12.2.0\n\nsysconfig[CFLAGS]: -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall\n\nsysconfig[PY_CFLAGS]: -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall\n\nsysconfig[PY_CFLAGS_NODIST]: -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc\n\nsysconfig[PY_STDMODULE_CFLAGS]: -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-125877\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2024-07-17T21:25:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/121938/cpython/issues/121938"}
| 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:afed8d82-384d-c5ad-9ae5-c5dadd3cb264 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8024:178041:152F6B:1D998E:696A6340 |
| html-safe-nonce | 4d82a4065af9a8217882769859676e9a91df3ea6836c289927e88ffe46ec4625 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDI0OjE3ODA0MToxNTJGNkI6MUQ5OThFOjY5NkE2MzQwIiwidmlzaXRvcl9pZCI6IjUyNTYzODM0NDY2NjI0MzIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a4262f3364b7f99e1e48d475670fe2141e5a542ce457e0d5601a430f0fedc7fd |
| hovercard-subject-tag | issue:2414627427 |
| 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/121938/issue_layout |
| twitter:image | https://opengraph.githubassets.com/add121ca1fa0a396c9a6e41e43e80058b67edae3be9cb8bd1cb8ae449a4503b4/python/cpython/issues/121938 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/add121ca1fa0a396c9a6e41e43e80058b67edae3be9cb8bd1cb8ae449a4503b4/python/cpython/issues/121938 |
| og:image:alt | Bug report x86 Debian Installed with X 3.x build: https://buildbot.python.org/all/#/builders/1244/builds/2499 FAIL: test_generated_data (test.test_ctypes.test_generated_structs.GeneratedTest.test_g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392 |
| 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 | 87cbd411c2982752221b5751d583a515b23bf5fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width