python / python/cpython

c_void_p array is a footgun on I32LP64 systems

Open
#91,122 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.10 3.11 3.9 (EOL) topic-ctypes type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 46966
Nosy @eryksun, @taralx

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2022-03-09.02:28:03.614>
labels = ['ctypes', 'type-bug', '3.9', '3.10', '3.11']
title = 'c_void_p array is a footgun on I32LP64 systems'
updated_at = <Date 2022-03-09.16:47:23.165>
user = 'https://github.com/taralx'

bugs.python.org fields:

activity = <Date 2022-03-09.16:47:23.165>
actor = 'taralx'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['ctypes']
creation = <Date 2022-03-09.02:28:03.614>
creator = 'taralx'
dependencies = []
files = []
hgrepos = []
issue_num = 46966
keywords = []
message_count = 3.0
messages = ['414783', '414790', '414805']
nosy_count = 2.0
nosy_names = ['eryksun', 'taralx']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue46966'
versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The payload names no files, tests, or entry points. Start by reading the linked BPO 46966 discussion and the ctypes component context, then reproduce the reported c_void_p array behavior on an I32LP64 system. Done requires a maintainer-agreed resolution for the reported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.