New submission from Remi Pointel <pyt...@xiri.fr>: Hi,
I have few problems in test_socket.py. 1) test_sendall_interrupted blocks on OpenBSD, I must Ctrl+c to interrupt the test. I added a skip to have full regress tests, but I think it's not the proper way. I have run it into gdb, and ctrl+c it: test_sendall_interrupted (__main__.GeneralModuleTests) ... [New process 20677] ^C Program received signal SIGINT, Interrupt. 0x0000000206d2378a in poll () from /usr/lib/libc.so.60.1 (gdb) bt #0 0x0000000206d2378a in poll () from /usr/lib/libc.so.60.1 #1 0x0000000205f4e4aa in _thread_kern_poll (wait_reqd=Variable "wait_reqd" is not available. ) at /usr/src/lib/libpthread/uthread/uthread_kern.c:780 #2 0x0000000205f4f3a8 in _thread_kern_sched (scp=0x0) at /usr/src/lib/libpthread/uthread/uthread_kern.c:382 #3 0x0000000205f43ade in sendto (fd=8, msg=0x2047bb040, len=1044480, flags=0, to=0x0, to_len=0) at /usr/src/lib/libpthread/uthread/uthread_sendto.c:63 #4 0x0000000210a5b243 in sock_sendall (s=0x20115c948, args=0x2011510d0) at /usr/ports/pobj/Python-3.2.2/Python-3.2.2/Modules/socketmodule.c:2699 #5 0x0000000000468992 in PyEval_EvalFrameEx (f=0x20a281c30, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:3921 #6 0x000000000046a95c in PyEval_EvalCodeEx (_co=0x20fc581b0, globals=Variable "globals" is not available. ) at Python/ceval.c:3350 #7 0x0000000000466df6 in PyEval_EvalFrameEx (f=0x20a9a3c30, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4019 #8 0x0000000000468c1a in PyEval_EvalFrameEx (f=0x2033af030, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4009 #9 0x000000000046a95c in PyEval_EvalCodeEx (_co=0x2028a9de8, globals=Variable "globals" is not available. ) at Python/ceval.c:3350 #10 0x0000000000466df6 in PyEval_EvalFrameEx (f=0x2052f1430, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4019 #11 0x000000000046a95c in PyEval_EvalCodeEx (_co=0x2028a9f58, globals=Variable "globals" is not available. ) at Python/ceval.c:3350 #12 0x0000000000511ce3 in function_call (func=0x2050d5620, arg=0x20115d330, kw=0x2052f0030) at Objects/funcobject.c:629 #13 0x00000000004e4a7f in PyObject_Call (func=0x2050d5620, arg=0x20115d330, kw=0x2052f0030) at Objects/abstract.c:2149 #14 0x000000000046456d in PyEval_EvalFrameEx (f=0x2052f0e30, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4236 #15 0x000000000046a95c in PyEval_EvalCodeEx (_co=0x2028ad268, globals=Variable "globals" is not available. ) at Python/ceval.c:3350 #16 0x0000000000511ce3 in function_call (func=0x2050d5790, arg=0x20115d240, kw=0x0) at Objects/funcobject.c:629 #17 0x00000000004e4a7f in PyObject_Call (func=0x2050d5790, arg=0x20115d240, kw=0x0) at Objects/abstract.c:2149 #18 0x00000000004ff349 in method_call (func=0x2050d5790, arg=0x20115a5a0, kw=0x0) at Objects/classobject.c:319 #19 0x00000000004e4a7f in PyObject_Call (func=0x20115d150, arg=0x20115a5a0, kw=0x0) at Objects/abstract.c:2149 #20 0x000000000042cb66 in slot_tp_call (self=Variable "self" is not available. ) at Objects/typeobject.c:5044 #21 0x00000000004e4a7f in PyObject_Call (func=0x20113b680, arg=0x20115a5a0, kw=0x0) at Objects/abstract.c:2149 #22 0x00000000004628fb in PyEval_EvalFrameEx (f=0x2071dc030, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4141 #23 0x000000000046a95c in PyEval_EvalCodeEx (_co=0x2086db6b8, globals=Variable "globals" is not available. ) at Python/ceval.c:3350 #24 0x0000000000511ce3 in function_call (func=0x2086de1d0, arg=0x20115d1c8, kw=0x2071dd430) at Objects/funcobject.c:629 #25 0x00000000004e4a7f in PyObject_Call (func=0x2086de1d0, arg=0x20115d1c8, kw=0x2071dd430) at Objects/abstract.c:2149 #26 0x000000000046456d in PyEval_EvalFrameEx (f=0x2071dde30, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4236 #27 0x000000000046a95c in PyEval_EvalCodeEx (_co=0x2086db490, globals=Variable "globals" is not available. ) at Python/ceval.c:3350 #28 0x0000000000511ce3 in function_call (func=0x2086de060, arg=0x20113f420, kw=0x0) at Objects/funcobject.c:629 #29 0x00000000004e4a7f in PyObject_Call (func=0x2086de060, arg=0x20113f420, kw=0x0) at Objects/abstract.c:2149 #30 0x00000000004ff349 in method_call (func=0x2086de060, arg=0x2011411b0, kw=0x0) at Objects/classobject.c:319 #31 0x00000000004e4a7f in PyObject_Call (func=0x20115d0d8, arg=0x2011411b0, kw=0x0) at Objects/abstract.c:2149 #32 0x000000000042cb66 in slot_tp_call (self=Variable "self" is not available. ) at Objects/typeobject.c:5044 #33 0x00000000004e4a7f in PyObject_Call (func=0x201138920, arg=0x2011411b0, kw=0x0) at Objects/abstract.c:2149 #34 0x00000000004628fb in PyEval_EvalFrameEx (f=0x2071dc430, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4141 #35 0x000000000046a95c in PyEval_EvalCodeEx (_co=0x2086db6b8, globals=Variable "globals" is not available. ) at Python/ceval.c:3350 #36 0x0000000000511ce3 in function_call (func=0x2086de1d0, arg=0x20113c498, kw=0x2071dd830) at Objects/funcobject.c:629 #37 0x00000000004e4a7f in PyObject_Call (func=0x2086de1d0, arg=0x20113c498, kw=0x2071dd830) at Objects/abstract.c:2149 #38 0x000000000046456d in PyEval_EvalFrameEx (f=0x2071dda30, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4236 #39 0x000000000046a95c in PyEval_EvalCodeEx (_co=0x2086db490, globals=Variable "globals" is not available. ) at Python/ceval.c:3350 #40 0x0000000000511ce3 in function_call (func=0x2086de060, arg=0x201127ee8, kw=0x0) at Objects/funcobject.c:629 #41 0x00000000004e4a7f in PyObject_Call (func=0x2086de060, arg=0x201127ee8, kw=0x0) at Objects/abstract.c:2149 #42 0x00000000004ff349 in method_call (func=0x2086de060, arg=0x20113e920, kw=0x0) at Objects/classobject.c:319 #43 0x00000000004e4a7f in PyObject_Call (func=0x208ba78d0, arg=0x20113e920, kw=0x0) at Objects/abstract.c:2149 #44 0x000000000042cb66 in slot_tp_call (self=Variable "self" is not available. ) at Objects/typeobject.c:5044 #45 0x00000000004e4a7f in PyObject_Call (func=0x201138370, arg=0x20113e920, kw=0x0) at Objects/abstract.c:2149 #46 0x00000000004628fb in PyEval_EvalFrameEx (f=0x20de7d830, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4141 #47 0x0000000000468c1a in PyEval_EvalFrameEx (f=0x20de7f830, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4009 #48 0x0000000000468c1a in PyEval_EvalFrameEx (f=0x20e626830, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4009 #49 0x000000000046a95c in PyEval_EvalCodeEx (_co=0x20189b040, globals=Variable "globals" is not available. ) at Python/ceval.c:3350 #50 0x0000000000511ce3 in function_call (func=0x20449fb28, arg=0x2071d9a30, kw=0x0) at Objects/funcobject.c:629 #51 0x00000000004e4a7f in PyObject_Call (func=0x20449fb28, arg=0x2071d9a30, kw=0x0) at Objects/abstract.c:2149 #52 0x000000000046456d in PyEval_EvalFrameEx (f=0x200eb9830, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4236 #53 0x0000000000468c1a in PyEval_EvalFrameEx (f=0x209c2d830, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:4009 #54 0x000000000046a95c in PyEval_EvalCodeEx (_co=0x20fc856b8, globals=Variable "globals" is not available. ) at Python/ceval.c:3350 #55 0x000000000046ab2b in PyEval_EvalCode (co=Variable "co" is not available. ) at Python/ceval.c:767 #56 0x000000000048ade7 in run_mod (mod=Variable "mod" is not available. ) at Python/pythonrun.c:1783 #57 0x000000000048aeee in PyRun_FileExFlags (fp=0x2071bb8e0, filename=0x205619690 "Lib/test/test_socket.py.orig", start=257, globals=0x205a01e30, locals=0x205a01e30, closeit=1, flags=0x7f7ffffbe5e0) at Python/pythonrun.c:1740 #58 0x000000000048da19 in PyRun_SimpleFileExFlags (fp=0x2071bb8e0, filename=0x205619690 "Lib/test/test_socket.py.orig", closeit=1, flags=0x7f7ffffbe5e0) at Python/pythonrun.c:1265 #59 0x000000000049fe00 in Py_Main (argc=Variable "argc" is not available. ) at Modules/main.c:297 #60 0x0000000000414eaa in main (argc=2, argv=0x7f7ffffbe6a0) at ./Modules/python.c:59 2) test_sendall_interrupted_with_timeout has an error: ====================================================================== ERROR: test_sendall_interrupted_with_timeout (__main__.GeneralModuleTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib/test/test_socket.py", line 753, in test_sendall_interrupted_with_timeout self.check_sendall_interrupted(True) File "Lib/test/test_socket.py", line 742, in check_sendall_interrupted self.assertRaises(socket.timeout, c.sendall, b"x" * (1024**2)) File "/usr/ports/pobj/Python-3.2.2/Python-3.2.2/Lib/unittest/case.py", line 557, in assertRaises callableObj(*args, **kwargs) socket.error: [Errno 0] Error ====================================================================== 3) testInterruptedTimeout failed: ====================================================================== FAIL: testInterruptedTimeout (__main__.TCPTimeoutTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib/test/test_socket.py", line 1707, in testInterruptedTimeout foo = self.serv.accept() socket.timeout: timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "Lib/test/test_socket.py", line 1707, in testInterruptedTimeout foo = self.serv.accept() Alarm During handling of the above exception, another exception occurred: Traceback (most recent call last): File "Lib/test/test_socket.py", line 1721, in testInterruptedTimeout self.fail("got Alarm in wrong place") AssertionError: got Alarm in wrong place ====================================================================== Thanks a lot, Remi. ---------- messages: 143564 nosy: rpointel priority: normal severity: normal status: open title: multiple errors in test_socket on OpenBSD versions: Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12905> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com