iovisor / iovisor/bcc

python3 tcpv4connect no output

Open
#3,310 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

Install
```
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4052245BD4284CDD
echo "deb https://repo.iovisor.org/apt/$(lsb_release -cs) $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/iovisor.list
sudo apt-get update
sudo apt-get install bcc-tools libbcc-examples linux-headers-$(uname -r) python-bcc python3-bcc
```

python version 2.7.17
python3 version 3.6.9

When I do ```curl www.google.com```
python output below (IP address changed)
```
sudo python tcpv4connect.py
PID COMM SADDR DADDR DPORT
1560 curl 1.1.1.1 1.1.1.1 80
```
But python3 doesn't output anything
```
sudo python3 tcpv4connect.py
PID COMM SADDR DADDR DPORT
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the named tcpv4connect.py tool and reproduce the difference between sudo python and sudo python3 using the provided curl command. Compare the two execution paths and verify that Python 3 reports the connection with the same columns and data as Python 2.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
networking, observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.