[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

python2.3 test suite results on hurd-i386



Hi,

I've taken a closer look at running the test-suite. This is when
building with pthreads (i.e. with the patch from #247211). There are
three problems:

1. test_capi fails with the following error:

test_capi
python: ../../libpthread/sysdeps/mach/pt-thread-halt.c:35:
	__pthread_thread_halt: Unexpected error: (os/kern) invalid
	right.  
make[1]: *** [test] Aborted
make[1]: Leaving directory
`/home/mbanck/build/tmp/python2.3-2.3.3/build-static'

If I run that test manually it runs through fine. It seems a couple
(two or three) other (random) tests have to be run before in order to
trigger this. Maybe that's an specific issue with my box?

2. test_poll segfaults. It's in the poll_unit_tests() method
(test_poll.py:77)

def poll_unit_tests():
    # returns NVAL for invalid file descriptor
    FD = 42
    try:
        os.close(FD)
    except OSError:
        pass
    p = select.poll()
    p.register(FD)
    r = p.poll() 			# <- segfaults here
    verify(r[0][0] == fd)
    f.close()
    r = p.poll()
    verify(r[0] == (fd, select.POLLNVAL))
    os.unlink(TESTFN)

This is the backtrace:

Starting program: /home/mbanck/build/tmp/python2.3-2.3.3/build-static/python -E -tt ../Lib/test/regrtest.py test_poll

Program received signal SIGSEGV, Segmentation fault.
(bt)
0x010829c5 in _hurd_select (nfds=1, pollfds=0x8157688, readfds=0x0, 
    writefds=0x0, exceptfds=0x0, timeout=0x0, sigmask=0x0) at machine-lock.h:52
52	machine-lock.h: No such file or directory.
	in machine-lock.h
#0  0x010829c5 in _hurd_select (nfds=1, pollfds=0x8157688, readfds=0x0, 
    writefds=0x0, exceptfds=0x0, timeout=0x0, sigmask=0x0) at machine-lock.h:52
#1  0x01175795 in __poll (fds=0x1, nfds=1, timeout=19027976)
    at ../sysdeps/mach/hurd/poll.c:48
#2  0x00138cf1 in poll_poll (self=0x1e4e8, args=0x1)
    at /home/mbanck/build/tmp/python2.3-2.3.3/Modules/selectmodule.c:482
#3  0x080fc8ca in PyCFunction_Call (func=0xae2cc, arg=0x1e02c, kw=0x0)
    at ../Objects/methodobject.c:108
#4  0x080ab574 in call_function (pp_stack=0x15fe8cc, oparg=1)
    at ../Python/ceval.c:3443
#5  0x080a992e in eval_frame (f=0x8162cb4) at ../Python/ceval.c:2120
#6  0x080ab6ad in fast_function (func=0x0, pp_stack=0x15fe9ec, n=0, na=1, nk=0)
    at ../Python/ceval.c:3522
#7  0x080ab46c in call_function (pp_stack=0x15fe9ec, oparg=1)
    at ../Python/ceval.c:3462
#8  0x080a992e in eval_frame (f=0x81c5434) at ../Python/ceval.c:2120
#9  0x080ab6ad in fast_function (func=0x0, pp_stack=0x15feb0c, n=0, na=1, nk=0)
    at ../Python/ceval.c:3522
#10 0x080ab46c in call_function (pp_stack=0x15feb0c, oparg=1)
    at ../Python/ceval.c:3462
#11 0x080a992e in eval_frame (f=0x8181afc) at ../Python/ceval.c:2120
#12 0x080aa4bc in PyEval_EvalCodeEx (co=0xa4f60, globals=0x0, locals=0x1, 
    args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at ../Python/ceval.c:2667
#13 0x080accb9 in PyEval_EvalCode (co=0x1, globals=0x1, locals=0x1)
    at ../Python/ceval.c:537
#14 0x080cbe56 in PyImport_ExecCodeModuleEx (name=0x15ff520 "test.test_poll", 
    co=0xa4f60, 
    pathname=0x15fec00 "/home/mbanck/build/tmp/python2.3-2.3.3/Lib/test/test_poll.pyc") at ../Python/import.c:621
#15 0x080cec43 in load_source_module (name=0x15ff520 "test.test_poll", 
    pathname=0x15fec00 "/home/mbanck/build/tmp/python2.3-2.3.3/Lib/test/test_poll.pyc", fp=0x8166278) at ../Python/import.c:894
#16 0x080cc9ae in load_module (name=0x15ff520 "test.test_poll", fp=0x8166278, 
    buf=0x15ff090 "/home/mbanck/build/tmp/python2.3-2.3.3/Lib/test/test_poll.py", type=1, loader=0x0) at ../Python/import.c:1699
#17 0x080cd8a8 in import_submodule (mod=0x1e644, 
    subname=0x15ff525 "test_poll", fullname=0x15ff520 "test.test_poll")
    at ../Python/import.c:2290
#18 0x080cd3d3 in load_next (mod=0x1e644, altmod=0x1e644, p_name=0x15ff525, 
    buf=0x15ff520 "test.test_poll", p_buflen=0x15ff51c)
    at ../Python/import.c:2111
#19 0x080cf4ff in import_module_ex (name=0x0, globals=0x1, locals=0xa18ac, 
    fromlist=0xa638c) at ../Python/import.c:1964
#20 0x080ce47c in PyImport_ImportModuleEx (
    name=0x1 <Address 0x1 out of bounds>, globals=0x1, locals=0x1, 
    fromlist=0x1) at ../Python/import.c:1998
#21 0x080a0a01 in builtin___import__ (self=0x0, args=0x1)
    at ../Python/bltinmodule.c:45
#22 0x080fc8ca in PyCFunction_Call (func=0x26bec, arg=0x860cc, kw=0x0)
    at ../Objects/methodobject.c:108
#23 0x080ab574 in call_function (pp_stack=0x15ffa7c, oparg=1)
    at ../Python/ceval.c:3443
#24 0x080a992e in eval_frame (f=0x816b0d4) at ../Python/ceval.c:2120
#25 0x080aa4bc in PyEval_EvalCodeEx (co=0xfa320, globals=0x0, locals=0x1, 
    args=0x81c0a14, argcount=5, kws=0x81c0a28, kwcount=0, defs=0x8dad8, 
    defcount=1, closure=0x0) at ../Python/ceval.c:2667
#26 0x080ab629 in fast_function (func=0x0, pp_stack=0x15ffbfc, n=5, na=1, 
    nk=136055316) at ../Python/ceval.c:3533
#27 0x080ab46c in call_function (pp_stack=0x15ffbfc, oparg=1)
    at ../Python/ceval.c:3462
#28 0x080a992e in eval_frame (f=0x81c080c) at ../Python/ceval.c:2120
#29 0x080aa4bc in PyEval_EvalCodeEx (co=0xfa2a0, globals=0x0, locals=0x1, 
    args=0x81c0958, argcount=0, kws=0x813bdb4, kwcount=0, defs=0x951a0, 
    defcount=11, closure=0x0) at ../Python/ceval.c:2667
#30 0x080ab629 in fast_function (func=0x0, pp_stack=0x15ffd7c, n=0, na=1, 
    nk=135511476) at ../Python/ceval.c:3533
#31 0x080ab46c in call_function (pp_stack=0x15ffd7c, oparg=1)
    at ../Python/ceval.c:3462
#32 0x080a992e in eval_frame (f=0x813bc64) at ../Python/ceval.c:2120
#33 0x080aa4bc in PyEval_EvalCodeEx (co=0xfa620, globals=0x0, locals=0x1, 
    args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at ../Python/ceval.c:2667
#34 0x080accb9 in PyEval_EvalCode (co=0x1, globals=0x1, locals=0x1)
    at ../Python/ceval.c:537
#35 0x080d8ddb in run_node (n=0x3679c, 
    filename=0x1 <Address 0x1 out of bounds>, globals=0x1, locals=0x1, 
    flags=0x1) at ../Python/pythonrun.c:1265
#36 0x080d858f in PyRun_SimpleFileExFlags (fp=0x8139c20, 
    filename=0x101b042 "../Lib/test/regrtest.py", closeit=16887874, 
    flags=0x15ffed8) at ../Python/pythonrun.c:862
#37 0x08054e45 in Py_Main (argc=2, argv=0x15fff5c) at ../Modules/main.c:415
#38 0x0805499b in main (argc=1, argv=0x1) at ../Modules/python.c:23
(quit)
The program is running.  Exit anyway? (y or n) 
(y)

3. There's a strange KeyboardInterrupt error happening when running
through the whole test-suite. It does not happen at a specific test, but
around test_st*:

test_str
test_strftime
Traceback (most recent call last):
  File "../Lib/test/regrtest.py", line 1005, in ?
    main()
  File "../Lib/test/regrtest.py", line 264, in main
    ok = runtest(test, generate, verbose, quiet, testdir)
  File "../Lib/test/regrtest.py", line 394, in runtest
    the_package = __import__(abstest, globals(), locals(), [])
  File "/home/mbanck/build/tmp/python2.3-2.3.3/Lib/test/test_strftime.py", line
	146, in ? main()
  File "/home/mbanck/build/tmp/python2.3-2.3.3/Lib/test/test_strftime.py", line
	29, in main
    strftest(now + (i + j*100)*23*3603)
  File "/home/mbanck/build/tmp/python2.3-2.3.3/Lib/test/test_strftime.py", line
	53, in strftest
    expectations = (
  File "/home/mbanck/build/tmp/python2.3-2.3.3/Lib/calendar.py", line
	35, in __getitem__
    data = [datetime.date(2001, j, 1).strftime(self.format)
KeyboardInterrupt


cheers,

Michael

-- 
Michael Banck
Debian Developer
mbanck@debian.org
http://www.advogato.org/person/mbanck/diary.html



Reply to: