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

Subprocess.Popen is not followed when the Children flag is on #236

Open
DamGouz opened this issue Sep 10, 2024 · 0 comments
Open

Subprocess.Popen is not followed when the Children flag is on #236

DamGouz opened this issue Sep 10, 2024 · 0 comments

Comments

@DamGouz
Copy link

DamGouz commented Sep 10, 2024

Description

Running a subprocess with Popen causes austin to stop monitoring the children

Steps to Reproduce

import os
import sys
import time

if __name__ == "__main__":
    if len(sys.argv) == 1:
        print(os.getpid())
        subprocess.call(['python', 'test.py', 'popen'])
    elif sys.argv[1] == 'popen':
        subprocess.Popen(['python', 'test.py', 'count'])
    elif sys.argv[1] == 'count':
        for i in range(100):
            print(i)
            time.sleep(0.1)

Expected behavior:
I would expect austin to monitor all 3 calls of the script, up to counting to 100.

Actual behavior:
It stops at Popen:
P55636;T0:5c98;C:\tmp\austin_test\test.py:<module>:9;C:\python\Lib\subprocess.py:call:391;C:\python\Lib\subprocess.py:Popen.wait:1264;C:\python\Lib\subprocess.py:Popen._wait:1588 36

Reproduces how often:
100%

Versions

3.6.0

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

1 participant