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

[ zombie dumpcap processes] dumpcap processes cannot be killed properly by capture.close_async when using multiple live captures concurrently. #711

Open
amo1101 opened this issue Sep 23, 2024 · 0 comments
Labels

Comments

@amo1101
Copy link

amo1101 commented Sep 23, 2024

Describe the bug
dumpcap processes cannot be killed properly when multiple live captures are used concurrently.

To Reproduce

  1. use the attached test.py (change testpy.text to test.py) to reproduce.
  2. test with 1 live capture, i.e., run_test(1), see test.py, all tshark and dumpcap processes are closed properly
  3. test with multiple live captures, e.g., run_test(5), zombie dumpcap processes are generated.

Error Log
2024-09-23 18:18:29,492 - AsyncLiveCapture - DEBUG - Cleanup Subprocess (pid 507395)
2024-09-23 18:18:29,542 - AsyncLiveCapture - DEBUG - sniff finalized.
2024-09-23 18:18:29,543 - AsyncLiveCapture - DEBUG - Cleanup Subprocess (pid 507291)
2024-09-23 18:18:30,310 - AsyncLiveCapture - DEBUG - Waiting for process to close failed, may have zombie process.

Expected behavior
All tshark and dumpcap processed should be killed properly.

Versions (please complete the following information):

  • OS: Ubuntu Oracular Oriole 24.10
  • pyshark version: 0.6.1
  • tshark version: 4.2.6

Example pcap / packet

@amo1101 amo1101 added the bug label Sep 23, 2024
@amo1101 amo1101 changed the title [ zombie dumpcap processes] dumpcap processes cannot be killed properly when using multiple live captures concurrently. [ zombie dumpcap processes] dumpcap processes cannot be killed properly by capture.close_async when using multiple live captures concurrently. Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant