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 vstinner
Recipients mark.dickinson, neologix, rpointel, vstinner
Date 2011-05-25.21:15:06
SpamBayes Score 3.3199e-12
Marked as misclassified No
Message-id <1306358107.25.0.992301434255.issue12181@psf.upfronthosting.co.za>
In-reply-to
Content
> Don't hesitate to ask me if you need information.

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.

What is the size of intptr_t and "long long" types on your host? You can find this information in config.log if you compiled Python manually. Otherwise, use a dummy C script like:
--------------
int main() { return sizeof(long long); }
--------------
and
--------------
#include <stdint.h>
int main() { return sizeof(intptr_t); }
--------------
Compile the script, run it, and read the exitcode (e.g.g echo $? using bash).

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):
-------------
#include <stdio.h>
#include <sys/event.h>
#include <stddef.h> /* For offsetof */

#ifndef offsetof
#define offsetof(type, member) ( (int) & ((type*)0) -> member )
#endif

struct kevent ev;

#define DUMP(field) printf("offset of " #field ": %u\n", offsetof(ev, field))

int main()
{
   DUMP(ident);
   DUMP(filter);
   DUMP(flags);
   DUMP(fflags);
   DUMP(data);
   DUMP(udata);
   return 0;
}
-------------
History
Date User Action Args
2011-05-25 21:15:07vstinnersetrecipients: + vstinner, mark.dickinson, neologix, rpointel
2011-05-25 21:15:07vstinnersetmessageid: <1306358107.25.0.992301434255.issue12181@psf.upfronthosting.co.za>
2011-05-25 21:15:06vstinnerlinkissue12181 messages
2011-05-25 21:15:06vstinnercreate