python / cpython

The Python programming language
https://www.python.org/
Other
60.47k stars 29.23k forks source link

Various Playstation 2 Linux Test Errors #36732

Closed 53bb3752-2d45-4850-bbc9-4bef7a853c1b closed 22 years ago

53bb3752-2d45-4850-bbc9-4bef7a853c1b commented 22 years ago
BPO 567892
Nosy @mwhudson

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = None closed_at = created_at = labels = ['expert-installation'] title = 'Various Playstation 2 Linux Test Errors' updated_at = user = 'https://bugs.python.org/kazriko' ``` bugs.python.org fields: ```python activity = actor = 'kazriko' assignee = 'none' closed = True closed_date = None closer = None components = ['Installation'] creation = creator = 'kazriko' dependencies = [] files = [] hgrepos = [] issue_num = 567892 keywords = [] message_count = 3.0 messages = ['11171', '11172', '11173'] nosy_count = 2.0 nosy_names = ['mwh', 'kazriko'] pr_nums = [] priority = 'low' resolution = None stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue567892' versions = [] ```

53bb3752-2d45-4850-bbc9-4bef7a853c1b commented 22 years ago

I recently downloaded Python 2.2.1 onto my Playstation 2 with a linux kit installed. It uses a mipsel architecture, (mips endian-little) with a Linux 2.2.1 kernel (retrofitted with many backported stuff from later versions) and a glibc 2.2.2 i believe, also custom modified by SCEI.

Python compiled perfectly the first time, and installed flawlessly. On a whim, I decided to run python's testing suite. (make test)

The first pass crashed with this error.

test_re make: *** [test] Segmentation fault

i moved this test out of the folder to see if there were any other errors, and got the same one for test_sre.

After moving these two tests, i got the following results, including the lines from the failing tests.

test test_descr failed -- x=2, y=1 test test_linuxaudiodev failed -- (16, 'Device or resource busy', '/dev/dsp') test test_userdict failed -- test failed 3 tests failed: test_descr test_linuxaudiodev test_userdict 18 tests skipped: test_al test_cd test_cl test_curses test_dl test_gl test_imgfile test_largefile test_minidom test_nis test_ntpath test_pyexpat test_sax test_socket_ssl test_socketserver test_sunaudiodev test_winreg test_winsound 3 skips unexpected on linux2: test_minidom test_pyexpat test_sax

The linuxaudiodev actually gave me two different errors, no other audio programs were running at the time, so i'm suspecting a ps2sd bug on that one. but the other four tests I have not tried to isolate yet.

I'll keep at it, Would welcome any recommendations on places to look to diagnose these problems.

This is probably a very-low priority thing, as PS2Linux is still a bit of a beta test thing, it would be nice if i could isolate this down to some bugs in ps2linux's libraries, so that we could fix them without mucking up the python code with ps2 stuff.

mwhudson commented 22 years ago

Logged In: YES user_id=6656

Some tips:

(1) don't worry about test_linuxaudiodev. I'm not sure it's a lost cause, but...

(2) the test_re stuff is probably the consequence of a small stack size. try running ulimit -s 8192 before running the test suite.

(3) the other test failures are a bit odd. do you feel like digging some more? "test_userdict failed -- test failed" isn't terribly informative...

53bb3752-2d45-4850-bbc9-4bef7a853c1b commented 22 years ago

Logged In: YES user_id=346680

I attempted to use the ulimit command and change the stack size maximum, but it still failed when doing the full test suite. (even tried several different stack sizes) however, running the test individually with this line ./python Lib/test/regrtest.py -g test_re.py worked perfectly, as did the sre version.

I ran test_descr outside of the testing framework, and it 
crashed on the following test..
Testing classic comparisons...
        (base = __main__.classic)
Traceback (most recent call last):
  File "./Lib/test/test_descr.py", line 2906, in ?
    test_main()
  File "./Lib/test/test_descr.py", line 2884, in test_main
    classic_comparisons()
  File "./Lib/test/test_descr.py", line 2193, in 
classic_comparisons
    verify(cmp(x, c[y]) == cmp(x, y), "x=%d, y=%d" % (x, y))
  File "./Lib/test/test_support.py", line 118, in verify
    raise TestFailed(reason)
test_support.TestFailed: x=2, y=1

similarly, test_userdict gave this traceback when it crashed.
./python ./Lib/test/test_userdict.py
Traceback (most recent call last):
  File "./Lib/test/test_userdict.py", line 33, in ?
    verify(cmp(a, b) == cmp(len(a), len(b)))
  File "./Lib/test/test_support.py", line 118, in verify
    raise TestFailed(reason)

These might be failing for the same reason?

For information's sake, here's the linuxaudio traceback.

[kazrikna@rikku Python-2.2.1]
$ ./python ./Lib/test/test_linuxaudiodev.py
Traceback (most recent call last):
  File "./Lib/test/test_linuxaudiodev.py", line 89, in ?
    test()
  File "./Lib/test/test_linuxaudiodev.py", line 86, in test
    play_sound_file(findfile('audiotest.au'))
  File "./Lib/test/test_linuxaudiodev.py", line 42, in 
play_sound_file
    a.bufsize()
linuxaudiodev.error: (22, 'Invalid argument')