[issue12927] test_ctypes: segfault with suncc
STINNER Victor
report at bugs.python.org
Wed Sep 7 14:51:21 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Code of the test:
from ctypes import *
def test_ignore_retval(self):
# Test if the return value of a callback is ignored
# if restype is None
proto = CFUNCTYPE(None)
def func():
return (1, "abc", None)
cb = proto(func)
self.assertEqual(None, cb())
The crash occurs on self.assertEqual(None, cb()). I suppose that it occurs on cb().
Is CFUNCTYPE correct? Or should it be PYFUNCTYPE?
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12927>
_______________________________________
More information about the Python-bugs-list
mailing list