Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lptrace just hang #13

Open
demonguy opened this issue Oct 12, 2017 · 2 comments
Open

Lptrace just hang #13

demonguy opened this issue Oct 12, 2017 · 2 comments

Comments

@demonguy
Copy link

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 demonguy changed the title Lptrace just hang at read() function Lptrace just hang Oct 12, 2017
@demonguy
Copy link
Author

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
Copy link

jseakle commented Jul 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants