This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients eryksun, jkloth, malin, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2016-04-13.09:32:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460539933.85.0.222340419812.issue26744@psf.upfronthosting.co.za>
In-reply-to
Content
> I have two programs, they occasionally infinite hang.

Can you please try the faulthandler module to try to get a traceback of all Python threads?

I suggest to use the watchdog with a short timeout (ex: 60 seconds):
https://docs.python.org/dev/library/faulthandler.html#faulthandler.dump_traceback_later

> 1, print() function cause the infinite hang.
> 2, If it hangs, simply press ENTER key, it goes on without any problem.

Are you running your program in the Windows console (cmd.exe)? In IDLE? In PowerShell?
History
Date User Action Args
2016-04-13 09:32:13vstinnersetrecipients: + vstinner, paul.moore, tim.golden, jkloth, zach.ware, eryksun, steve.dower, malin
2016-04-13 09:32:13vstinnersetmessageid: <1460539933.85.0.222340419812.issue26744@psf.upfronthosting.co.za>
2016-04-13 09:32:13vstinnerlinkissue26744 messages
2016-04-13 09:32:13vstinnercreate