[OpenIndiana-discuss] mtr: mtr-packet reported invalid argument issue

Bill Sommerfeld sommerfeld at hamachi.org
Mon Oct 13 22:03:49 UTC 2025


On 10/13/25 13:41, Bill Sommerfeld wrote:
> On 10/13/25 11:12, Predrag Zečević via openindiana-discuss wrote:
>> Does anyone is seeing same issue as me?
>>
>> :; pfexec mtr --report-wide --report-cycles 5 --aslookup 
>> pkg.openindiana.org
>> Start: 2025-10-13T20:03:44+0200
>> HOST: solarix               Loss%   Snt   Last   Avg  Best  Wrst StDev
>> mtr: mtr-packet reported invalid argument
> 
> I'm seeing the same thing for IPv4 but not IPv6 destinations.
> I'll dig into this further when I get a chance.

The problem appears to be in the /usr/sbin/mtr-packet program (which 
holds the setuid part of mtr).

If you revert to the mtr-0.95 version of the mtr-packet binary, mtr 
starts working again.

Looking at truss output, the mtr-0.96 version fails a repeated bind() 
syscall with a changed local address:

943929: getsockname(3, 0xFFFFFAFFFFDFC0B0, 0xFFFFFAFFFFDFC0AC, 
SOV_DEFAULT) = 0
943929:         AF_INET  name = 0.0.0.0  port = 0
943929: bind(3, 0xFFFFFAFFFFDFC4B8, 16, SOV_XPG4_2)     = 0
943929:         AF_INET  name = 127.0.0.1  port = 0
...
943929: getsockname(3, 0xFFFFFAFFFFDFB2A0, 0xFFFFFAFFFFDFB29C, 
SOV_DEFAULT) = 0
943929:         AF_INET  name = 127.0.0.1  port = 0
943929: bind(3, 0x0041C518, 16, SOV_XPG4_2)             Err#22 EINVAL
943929:         AF_INET  name = 173.11.94.227  port = 0

while the mtr-0.95 version doesn't call bind() at all.

					- Bill




More information about the openindiana-discuss mailing list