You are not logged in.

#1 2018-03-03 04:46:47

aleskva
Member
Registered: 2017-09-02
Posts: 69

Python script debug

Hello, I have a Python script, which has got many threads. And sometimes it freezes, when it exhausts the thread limit. I'm not sure why, just I know it does only sometimes, which is weird. My colleague suggested to me using gdb package with py-br option, which he sometimes uses on Ubuntu. But there is no such an option on Arch Linux available. Is there any option to look into the threads and symbols when the script is freezed? Something like `gdm --pid` + `py-br` my Ubuntu colleague suggested?

PS: I don't want to recompile Python for this one little test.

PS 2: The same script on my colleague's Ubuntu (but using older Python 3.5) works without problems.

Last edited by aleskva (2018-03-03 04:49:51)

Offline

#2 2018-03-03 14:23:23

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Python script debug

aleskva wrote:

Hello, I have a Python script, which has got many threads. And sometimes it freezes, when it exhausts the thread limit. I'm not sure why, just I know it does only sometimes, which is weird. My colleague suggested to me using gdb package with py-br option, which he sometimes uses on Ubuntu. But there is no such an option on Arch Linux available. Is there any option to look into the threads and symbols when the script is freezed? Something like `gdm --pid` + `py-br` my Ubuntu colleague suggested?

PS: I don't want to recompile Python for this one little test.

PS 2: The same script on my colleague's Ubuntu (but using older Python 3.5) works without problems.

Please post the exact command that is used on Ubuntu to debug Python.

Please post the first 3 lines in your Python script (or post the whole script).

Offline

Board footer

Powered by FluxBB