[issue16576] ctypes: structure with bitfields as argument

2020-01-11 Thread Vinay Sajip


Vinay Sajip  added the comment:

The issue is being reopened, see this comment on bpo-16575:

https://bugs.python.org/msg359834

--
resolution: fixed -> 
stage: resolved -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2019-11-21 Thread Vinay Sajip


Change by Vinay Sajip :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2019-11-21 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 91c15a542cb780377dcde8fc17ba93111bc1d1cf by Vinay Sajip (Miss 
Islington (bot)) in branch '3.7':
[3.7] bpo-16576: Add checks for bitfields passed by value to functions. 
(GH-17097) (GH-17224)
https://github.com/python/cpython/commit/91c15a542cb780377dcde8fc17ba93111bc1d1cf


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2019-11-18 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset bef2815533011be9f0ce5fa2965bcada76b509b8 by Vinay Sajip (Miss 
Islington (bot)) in branch '3.8':
bpo-16576: Add checks for bitfields passed by value to functions. (GH-17097) 
(GH-17223)
https://github.com/python/cpython/commit/bef2815533011be9f0ce5fa2965bcada76b509b8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2019-11-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16724
pull_request: https://github.com/python/cpython/pull/17223

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2019-11-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16725
pull_request: https://github.com/python/cpython/pull/17224

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2019-11-12 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 106271568c58cfebae58f0c52b640dbe716ba2ce by Vinay Sajip in branch 
'master':
bpo-16576: Add checks for bitfields passed by value to functions. (GH-17097)
https://github.com/python/cpython/commit/106271568c58cfebae58f0c52b640dbe716ba2ce


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2019-11-09 Thread Vinay Sajip


Change by Vinay Sajip :


--
pull_requests: +16603
pull_request: https://github.com/python/cpython/pull/17097

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2019-11-07 Thread Vinay Sajip


Change by Vinay Sajip :


--
versions: +Python 3.7, Python 3.8, Python 3.9 -Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2019-09-10 Thread Vinay Sajip


Change by Vinay Sajip :


--
pull_requests: +15486
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/15839

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2017-02-23 Thread Vinay Sajip

Changes by Vinay Sajip :


--
nosy: +vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2013-03-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0acd9408b6f1 by Eli Bendersky in branch '3.2':
Add warning in ctypes documentation for #16575 and #16576
http://hg.python.org/cpython/rev/0acd9408b6f1

New changeset bfc159f8e4b4 by Eli Bendersky in branch '3.3':
Add warning in ctypes documentation for #16575 and #16576
http://hg.python.org/cpython/rev/bfc159f8e4b4

New changeset 502624235c7b by Eli Bendersky in branch 'default':
Add warning in ctypes documentation for #16575 and #16576
http://hg.python.org/cpython/rev/502624235c7b

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2013-03-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset eece32440a52 by Eli Bendersky in branch '2.7':
Add warning in ctypes documentation for #16575 and #16576
http://hg.python.org/cpython/rev/eece32440a52

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2013-03-07 Thread Eli Bendersky

Eli Bendersky added the comment:

The patch addresses issue16575 as well

--
nosy: +theller

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2013-03-06 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
nosy: +eli.bendersky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2013-03-06 Thread Eli Bendersky

Eli Bendersky added the comment:

I propose to start with the attached documentation fix (generated vs. 3.2 but 
should be applied to all active branches).

A code fix has to be discussed more thoroughly because in theory some code 
running only on x86-32 can rely on it and will break.

--
keywords: +patch
Added file: http://bugs.python.org/file29326/issue16576.docfix.1.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2013-03-06 Thread Eli Bendersky

Eli Bendersky added the comment:

I propose to start with the attached documentation fix (generated vs. 3.2 but 
should be applied to all active branches).

A code fix has to be discussed more thoroughly because in theory some code 
running only on x86-32 can rely on it and will break.

--
Added file: http://bugs.python.org/file29327/issue16576.docfix.1.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2013-03-06 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
Removed message: http://bugs.python.org/msg183596

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2013-03-06 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


Removed file: http://bugs.python.org/file29327/issue16576.docfix.1.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2013-03-06 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
nosy: +amaury.forgeotdarc, belopolsky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2012-12-14 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2012-12-10 Thread Meador Inge

Changes by Meador Inge mead...@gmail.com:


--
nosy: +meador.inge

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2012-11-28 Thread Armin Rigo

New submission from Armin Rigo:

ctypes pretends to support passing arguments to C functions that are structures 
containing bitfields, or at least does not explicitly forbid it.  But doing so 
results in misbehavior or segfaults in libffi itself.  Indeed, libffi has no 
support for this, and ctypes just describes a field like int x:1; as int 
x;.  The attached example segfaults on Linux x86-64.

--
components: ctypes
files: test185_lib.tgz
messages: 176629
nosy: arigo
priority: normal
severity: normal
status: open
title: ctypes: structure with bitfields as argument
type: crash
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file28156/test185_lib.tgz

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2012-11-28 Thread Alex Gaynor

Changes by Alex Gaynor alex.gay...@gmail.com:


--
nosy: +alex

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16576] ctypes: structure with bitfields as argument

2012-11-28 Thread Armin Rigo

Armin Rigo added the comment:

The same misbehavior occurs if the structures are packed (_pack_ = 1).  
Attached in test186_lib.tgz.

--
Added file: http://bugs.python.org/file28157/test186_lib.tgz

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com