[Python-Dev] test_logging hangs on Solaris 8

Neal Norwitz neal@metaslash.com
Fri, 25 Apr 2003 15:41:48 -0400


On Fri, Apr 25, 2003 at 01:22:43PM -0500, Skip Montanaro wrote:
> Using the latest version from CVS, on Solaris 8 test_logging hangs.  Lots of
> output, then:
> 
>     ...
> 
> and it just sits there.  ^C doesn't terminate it.  I have to stop it w/ ^Z,
> then "kill %1" it.  I have the very latest source checked out.  Any ideas?

On Solaris 8, I've had the test pass, hang, and crash the interpreter
(actually it was test_threaded_import when running all the tests).
The problem may be related to Mark's changes, but I'm not sure.

Anyway, the tests passed when run many times with the change below,
perhaps it will work for you.  I'm running the entire suite on
Solaris now.  The change works on Linux.

Neal
--
--- Lib/test/test_logging.py.save       2003-04-25 15:30:23.000000000 -0400
+++ Lib/test/test_logging.py    2003-04-25 15:30:52.000000000 -0400
@@ -470,6 +470,8 @@
         socketDataProcessed.acquire()
         socketDataProcessed.wait()
         socketDataProcessed.release()
+        for thread in threads:
+            thread.join()
         banner("logrecv output", "begin")
         sys.stdout.write(sockOut.getvalue())
         sockOut.close()