[issue12181] SIGBUS error on OpenBSD (sparc64)
Federico Schwindt 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 <http://bugs.python.org/issue12181> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12181] SIGBUS error on OpenBSD (sparc64)
Federico Schwindt added the comment: I wrote the patch. While the patch fixes most of the issues I'm not entirely happy with it and that's the reason I have not submitted it. -- ___ Python tracker <http://bugs.python.org/issue12181> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18325] test_kqueue fails in OpenBSD
New submission from Federico Schwindt: test_kqueue fails in OpenBSD/amd64 -current: Traceback (most recent call last): File "/usr/obj/pobj/Python-3.3.2/Python-3.3.2/Lib/test/test_kqueue.py", line 79, in test_create_event ev = select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum) OverflowError: signed integer is greater than maximum In OpenBSD, ident is an unsigned integer data is a signed integer. See http://bugs.python.org/issue12181 for details. -- components: Tests messages: 192018 nosy: Federico.Schwindt, neologix priority: normal severity: normal status: open title: test_kqueue fails in OpenBSD versions: Python 2.7, Python 3.3 ___ Python tracker <http://bugs.python.org/issue18325> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18325] test_kqueue fails in OpenBSD
Changes by Federico Schwindt : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue18325> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12181] SIGBUS error on OpenBSD (sparc64)
Federico Schwindt added the comment: New version hopefully good and ready for inclusion. Please note that the tests are still broken and need to be addressed (bignum and sys.maxsize passed to ident and data respectively). Thanks. -- Added file: http://bugs.python.org/file29741/patch-Modules_selectmodule_c ___ Python tracker <http://bugs.python.org/issue12181> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12181] SIGBUS error on OpenBSD (sparc64)
Federico Schwindt added the comment: >> Please note that the tests are still broken and need to be addressed (bignum >> and sys.maxsize passed to ident and data respectively). > > If you could fill a separate issue for that, it would be great. I will but once this is committed. It'd make things easier. > BTW, there are other OpenBSD-specific issues on the report, and we > don't have that many contributors (AFAICT noone): so if you can have a > look at them, that would be great (especially since our OpenBSD > buildbots have all been down for some time now). On this report or you mean in general? I don't mind looking if time permits. Why are the OpenBSD buildbots down? Can we do anything about it? Having a buildbot slave up will definitely help here. -- ___ Python tracker <http://bugs.python.org/issue12181> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12181] SIGBUS error on OpenBSD (sparc64)
Federico Schwindt added the comment: This patch was made against 2.7.4. I've checked 3.3.1 and it obviously doesn't work as PyInt* are gone. I'll update the patch later today so it can be used everywhere. -- ___ Python tracker <http://bugs.python.org/issue12181> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12181] SIGBUS error on OpenBSD (sparc64)
Federico Schwindt added the comment: Here's a slightly modified version of the patch that should work with python 2 and 3. -- Added file: http://bugs.python.org/file29789/openbsd-kqueue-001.patch ___ Python tracker <http://bugs.python.org/issue12181> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12181] SIGBUS error on OpenBSD (sparc64)
Federico Schwindt added the comment: Trent, would be possible to update the OpenBSD slaves to 5.3 (or -current)? There has been too many changes since 5.1 that affect python (for example the threads implementation). -- ___ Python tracker <http://bugs.python.org/issue12181> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com