Message158049
When running test_multiprocessing on Linux I occasionally see a stream of errors caused by ignored weakref callbacks:
Exception AssertionError: AssertionError() in <Finalize object, dead> ignored
These do not cause the unittests to fail.
Finalizers from the parent process are supposed to be cleared after the fork. But if a garbage collection before that then Finalizer callbacks can be run in the "wrong" process.
Disabling gc during fork seems to prevent the errors. Or maybe the Finalizer should record the pid of the process which created it and only invoke the callback if it matches the current pid.
(Compare Issure 1336 conscerning subprocess.) |
|
Date |
User |
Action |
Args |
2012-04-11 16:32:32 | sbt | set | recipients:
+ sbt |
2012-04-11 16:32:32 | sbt | set | messageid: <1334161952.16.0.996503370024.issue14548@psf.upfronthosting.co.za> |
2012-04-11 16:32:31 | sbt | link | issue14548 messages |
2012-04-11 16:32:31 | sbt | create | |
|