[Python-bugs-list] [ python-Bugs-567892 ] Various Playstation 2 Linux Test Errors

noreply@sourceforge.net noreply@sourceforge.net
Wed, 12 Jun 2002 22:11:26 -0700


Bugs item #567892, was opened at 2002-06-12 02:21
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=567892&group_id=5470

Category: Installation
Group: Platform-specific
Status: Open
Resolution: None
Priority: 1
Submitted By: Keith Thomson (kazriko)
Assigned to: Nobody/Anonymous (nobody)
Summary: Various Playstation 2 Linux Test Errors

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Keith Thomson (kazriko)
Date: 2002-06-12 23:11

Message:
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')

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2002-06-12 03:31

Message:
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...

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=567892&group_id=5470