Message128720
| Author |
vstinner |
| Recipients |
db3l, gregory.p.smith, pitrou, rnk, sable, vstinner |
| Date |
2011年02月17日.10:55:13 |
| SpamBayes Score |
2.3215016e-06 |
| Marked as misclassified |
No |
| Message-id |
<1297940114.36.0.174119480095.issue11223@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> Here is what faulthandler reports when I trigger it as Python
> is locked in test_socket:
> ...
> File ".../Lib/test/fork_wait.py", line 30 in f
faulthandler doesn't print the source code line (yet?). Here is the code:
class ForkWait(unittest.TestCase):
...
def f(self, id):
while not self.stop:
self.alive[id] = os.getpid()
try:
time.sleep(SHORTSLEEP) <~~~ here
except IOError:
pass
ForkWait.f() is used by ForkWait.test_wait() which creates 4 threads. You may use all_threads=True option of faulthandler to get the backtrace of all threads.
Because ForkWait.test_wait() uses fork, you may also need to dump the backtrace of two processes.
Debug threads+multiple processes is something horrible :-) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年02月17日 10:55:14 | vstinner | set | recipients:
+ vstinner, gregory.p.smith, db3l, pitrou, sable, rnk |
| 2011年02月17日 10:55:14 | vstinner | set | messageid: <1297940114.36.0.174119480095.issue11223@psf.upfronthosting.co.za> |
| 2011年02月17日 10:55:13 | vstinner | link | issue11223 messages |
| 2011年02月17日 10:55:13 | vstinner | create |
|