Title: BUG: System deadlocks performing big loop operations in python 3.5.4, windows 10
Type: Stage: resolved
Components: Versions:
Status: closed Resolution: later
Dependencies: Superseder:
Assigned To: Nosy List: Nik101, r.david.murray, terry.reedy
Priority: normal Keywords:

Created on 2017-10-11 19:10 by Nik101, last changed 2017-10-13 21:34 by terry.reedy. This issue is now closed.

Messages (3)
msg304173 - (view) Author: Nikhil (Nik101) Date: 2017-10-11 19:10
What I did
1) root file declared where operation will start and import hashlib for
getting hash signatures
2) os.walk for recursively diving into directory tree
3) open file and find sha256 digest and print it
4) close the file
5) recursively repeat all above 2 steps till we traversed directory tree

Above logic python program caused sudden exponential increase in RAM usage
(task manager by chance)  and certainly DEADLOCK and......  Force shutdown

I want to know what went wrong.....
msg304175 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2017-10-11 19:20
Most likely an error in your program logic, I'm afraid.  This isn't a forum for getting help, you should try the python-list mailing list.  (If you do find a bug, you can then open an issue with details.)
msg304366 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-10-13 21:34
Nikhil, I am closing this for now because I am at least 85% sure David is right.  To get any help, you need to reduce your code to the minimum needed to produce the symptoms and then include that with any question.  You would be told the same on Stackoverflow, which is another place to seek answers.
Date User Action Args
2017-10-13 21:34:33terry.reedysetstatus: open -> closed

nosy: + terry.reedy
messages: + msg304366

resolution: later
stage: resolved
2017-10-11 19:20:34r.david.murraysetnosy: + r.david.murray
messages: + msg304175
2017-10-11 19:10:07Nik101create