ThreadTest sometimes fails

There may be some thread safety issues with PlashGlibc. ThreadTest sometimes fails:

======================================================================
ERROR: tests_thread_test_py.ThreadTest.test_parallel
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/thread_test.py", line 89, in test_parallel
    self._run_test("test_parallel")
  File "tests/thread_test.py", line 83, in _run_test
    plash.process_test.check_exit_status(status)
  File "/work/plash/python/plash/process_test.py", line 41, in check_exit_status
    raise ProcessExitError("Status %i" % status)
ProcessExitError: Status 139

This occurred once:

*** glibc detected *** /tmp/tmpXCQ_U0/test-case: double free or corruption (out): 0x00002aaaac004ee0 ***
fstat(fd, &st): No such file or directory
fd >= 0: Function not implemented
E....
======================================================================
ERROR: tests_thread_test_py.ThreadTest.test_parallel
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/thread_test.py", line 89, in test_parallel
    self._run_test("test_parallel")
  File "tests/thread_test.py", line 83, in _run_test
    plash.process_test.check_exit_status(status)
  File "/work/plash/python/plash/process_test.py", line 39, in check_exit_status
    os.WEXITSTATUS(status))
ProcessExitError: Process exited with status 1

That said, the non-PlashGlibc version of this test has failed occasionally, so there may be a bug in the test case too:

fd >= 0: File exists
F...
======================================================================
FAIL: tests_thread_test_py.ThreadTest.test_parallel_native
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/thread_test.py", line 65, in test_parallel_native
    assert rc == 0, rc
AssertionError: 1

Problems found:

Tasks:

PlashIssues/LibcThreadSafety (last edited 2008-04-06 16:23:22 by MarkSeaborn)