[Python-Dev] test_logging hangs on Solaris 8
Guido van Rossum
guido@python.org
Fri, 25 Apr 2003 16:07:43 -0400
> From: Neal Norwitz <neal@metaslash.com>
> 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()
OK, I'll add that to the release branch, so I can scratch at least one
of the "known bugs" we start out with...
--Guido van Rossum (home page: http://www.python.org/~guido/)