khamidou / lptrace

Trace any Python program, anywhere!
http://khamidou.com/lptrace/
GNU General Public License v3.0
699 stars 43 forks source link

Lptrace just hang #13

Open demonguy opened 6 years ago

demonguy commented 6 years ago

When I use lptrace, i just simply run python lptrace -p 21640. But this command just hang forever. When i add some print log in lptrace like this ` signal.signal(signal.SIGINT, sigint_handler)

print("bbbbbbbbbb")
with open(fifo_name) as fd:
    print("ssssssssssss")
    while True:
        print("aaaaaaaa")
        data = fd.read()
        print(111111111111)
        if data != '':
            print data

print("mmmmmmmm")

` it will only print "bbbbbbb", but not any other logs. Did i miss anything

demonguy commented 6 years ago

BTW, it will cause process "21640" die. Actually 21640 is just listening socket, but after i running this command, my process just die, and cannot listen socket anymore

jseakle commented 3 years ago

it might be that you don't have gdb installed. this is unfortunately the behavior in that case.