This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rpointel
Recipients mark.dickinson, neologix, rpointel, vstinner
Date 2011-05-25.21:46:33
SpamBayes Score 6.434821e-07
Marked as misclassified No
Message-id <1306359994.59.0.961681327959.issue12181@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2011-05-25 21:46:34rpointelsetrecipients: + rpointel, mark.dickinson, vstinner, neologix
2011-05-25 21:46:34rpointelsetmessageid: <1306359994.59.0.961681327959.issue12181@psf.upfronthosting.co.za>
2011-05-25 21:46:34rpointellinkissue12181 messages
2011-05-25 21:46:34rpointelcreate