Bug 248000 - net/mtr: Failure to start mtr-packet
Summary: net/mtr: Failure to start mtr-packet
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
Depends on:
Reported: 2020-07-15 13:46 UTC by Cristian Cardoso
Modified: 2021-07-16 00:28 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Cristian Cardoso 2020-07-15 13:46:36 UTC
When trying to run a mtr on FreeBSD, this error always occurs:
Error decoding localhost address
mtr: Failure to start mtr-packet: Invalid argument

This occurs with the mtr-0.93_1 package and the mtr-nox11-0.93_1 package

SO version: 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC amd64
Comment 1 Po-Chuan Hsieh freebsd_committer 2020-07-30 10:37:50 UTC
The same problem was reported in bug #243121 and fixed in mtr 0.93_1.

I have no idea what happened on your box.
Could you give more information about your configuration?

And please confirm:
- /usr/local/sbin/mtr-packet has setuid bit
- You do not have an old installation with outdated binaries.

% ls -la /usr/local/sbin/mtr-packet
-r-sr-xr-x  1 root  wheel  39920 Jul 27 23:18 /usr/local/sbin/mtr-packet*
Comment 2 Cristian Cardoso 2020-08-05 19:44:52 UTC
(In reply to Sunpoet Po-Chuan Hsieh from comment #1)
After updating or freebsd moved to run mtr
The settings were as you mentioned.

Installing a system from a FreeBSD 12.1 ISO a few months ago.
Comment 3 Po-Chuan Hsieh freebsd_committer 2020-10-04 14:33:55 UTC
Please confirm if the problem still exists in mtr 0.94.
Comment 4 Cristian Cardoso 2020-11-03 20:45:18 UTC

I tested it on my FreeBSD router which is in the version: 12.1-RELEASE-p10 FreeBSD 12.1-RELEASE-p10 GENERIC  amd64

Curious that I have other FreeBSD servers in the same version that this does not occur.

# mtr
Error decoding localhost address (connect failed/Network is unreachable)
mtr: Failure to start mtr-packet: Invalid argument

The above test was done in version 0.94 and in version mtr-nox11-0.94
Comment 5 Po-Chuan Hsieh freebsd_committer 2021-07-16 00:22:43 UTC
I cannot reproduce this problem. If you have any non-default configuration (e.g. options), please revert it and try again. Thanks!
Comment 6 Cristian Cardoso 2021-07-16 00:28:56 UTC
In this moment this problem not occur anymore