This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ghazel
Recipients ghazel, theller
Date 2010-07-16.04:29:03
SpamBayes Score 0.00092048856
Marked as misclassified No
Message-id <1279254547.58.0.636737341251.issue9266@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, this issue is worse, and much easier to reproduce, than I thought. Here is an updated ctypes_test.zip with a repro using only integers and callbacks.

Correct output:
('three', (1, 2, 3))
('four', (1, 2, 3, 4))
('five', (1, 2, 3, 4, 5))

Incorrect output:
('three', (1, 2, 3))
('four', (1, 2, 3, 0))
('five', (1, 2, 3, 0, 5))

I built Python 2.7 from source with MSVC 9. This is not reproducible in Debug mode, or Win32 Release mode. It only happens in x64 Release mode. 

One very interesting discovery is that if I set these options:

Optimization: Disabled (/Od)
Enable Instrinsic Functions: No

the error does not occur!
History
Date User Action Args
2010-07-16 04:29:07ghazelsetrecipients: + ghazel, theller
2010-07-16 04:29:07ghazelsetmessageid: <1279254547.58.0.636737341251.issue9266@psf.upfronthosting.co.za>
2010-07-16 04:29:05ghazellinkissue9266 messages
2010-07-16 04:29:03ghazelcreate