Homebrew / homebrew-core

🍻 Default formulae for the missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
13.75k stars 12.44k forks source link

mtr doesn't gives any report output if --port option is used with tcp/ udp. #173552

Closed keshvic closed 4 months ago

keshvic commented 5 months ago

brew gist-logs <formula> link OR brew config AND brew doctor output

admin@test ~ % brew gist-logs mtr
Error: No logs.

admin@test ~ % brew config
HOMEBREW_VERSION: 4.3.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9fdb0d53990d3e62e25325a6f89dbb769e84a530
Last commit: 7 days ago
Core tap JSON: 03 Jun 06:30 UTC
Core cask tap JSON: 03 Jun 06:30 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 3.3.1 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.6.0 => /usr/bin/curl
macOS: 14.5-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: 15.4
Rosetta 2: false

admin@test ~ % brew doctor
Your system is ready to brew.

Verification

What were you trying to do (and why)?

What? I was trying to run mtr and see the output for tcp port 22. Why? There seems to be network issue at my office vpn

What happened (include all command output)?

I saw that when I run default tcp (port 80) or icmp or udp (port 33xxx) then it works fine but when I run with option for port with tcp or udp then, there is no output shown after command finishes running.

image

I also ran wireshark and I can see that packets were sent out by my mac but cli showed no report output.

image

What did you expect to happen?

I expect to see regular report output which shows the hops taken with loss and other network characteristics. See example below for working scenario with default port (80).

image

Step-by-step reproduction instructions (by running brew commands)

1. brew update
2. brew upgrade
3. brew install mtr
4. sudo mtr --tcp --port 22 -w -o "LSRD BAW MXI" 194.108.117.16
SMillerDev commented 5 months ago

Does it work if you compile that version from scratch?

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.