[issue12181] SIGBUS error on OpenBSD (sparc64)
STINNER Victor
report at bugs.python.org
Thu May 26 18:29:03 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Le jeudi 26 mai 2011 à 14:54 +0000, Charles-François Natali a écrit :
> Charles-François Natali <neologix at free.fr> added the comment:
>
> OpenBSD's struct kevent definition looks fishy:
> http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/event.h?rev=1.15;content-type=text%2Fplain
>
> struct kevent {
> u_int ident; /* identifier for this event */
> short filter; /* filter for event */
> u_short flags;
> u_int fflags;
> int data;
> void *udata; /* opaque user data identifier */
> };
>
> ident and data should be uintptr_t/intptr_t
ident and data are not pointers, I suppose that T_UINT and T_INT should
be used instead of T_UINTPTR_T and T_INTPTR_T. intptr_t is bigger than
an int on a 64 bits system (void*: 64 bits, int: 32 bits).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12181>
_______________________________________
More information about the Python-bugs-list
mailing list