[issue12181] SIGBUS error on OpenBSD (sparc64)

Federico Schwindt report at bugs.python.org
Thu Jun 2 01:32:07 CEST 2011


Federico Schwindt <federico.schwindt at gmail.com> added the comment:

Adding to this, the kqueue code (and test) heavily depends on the size of these members. kqueue_event_richcompare() uses a Py_intptr_t to store the result of substracting T_UINTs which is obviusly wrong on platforms where Py_intptr and T_UINTs are not the same (which is neither related to this bug nor OpenBSD specific), the test uses sys.maxint, etc.

It'd be nice if someone cleans the code to fix all these problems and adds some more tests to cover all the members in tp_richcompare.

----------
nosy: +Federico.Schwindt

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


More information about the Python-bugs-list mailing list