[issue12181] SIGBUS error on OpenBSD (sparc64)

STINNER Victor report at bugs.python.org
Wed Jul 27 01:01:54 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum) raises a OverflowError('signed integer is greater than maximum') on a 64 bits system. select.kevent() constructor parses the 4th argument using "i" (an int): sys.maxsize doesn't fit in a C int on a 64 bits system.

kevent() constructor parses the 4th argument using "i", but it pass a pointer to a void* value (e->udata). It would be better to use a temporary C int variable, and then write the int into udata using the right cast.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12181>
_______________________________________


More information about the Python-bugs-list mailing list