rpointel <pyt...@xiri.fr> added the comment: > It looks like the crash occurs on r[0].data in testPair() of test_kqueue. Can > you confirm this? Comment the line in test_kqueue.py to check if it works > around the crash.
Yes, it does not crash if I comment this line. > What is the size of intptr_t and "long long" types on your host? size of intptr_t and "long long" is : 8. > Can you try to get the definition of the kevent structure? It should be in > /usr/include/sys/event.h. And/or the offset of each field using the following > C script (not tested). I have replaced this line of your program (because it failed to build): #define DUMP(field) printf("offset of " #field ": %u\n", offsetof(ev, field)) by #define DUMP(field) printf("offset of " #field ": %u\n", offsetof(struct kevent, field)) and I have: offset of ident: 0 offset of filter: 4 offset of flags: 6 offset of fflags: 8 offset of data: 12 offset of udata: 16 Thanks a lot for your help, Remi. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12181> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com