#1110343 mtr-tiny [Hurd i386] crashes on IPv6

Package:
mtr-tiny
Source:
mtr-tiny
Description:
Full screen ncurses traceroute tool
Submitter:
Martin-Éric Racine
Date:
2025-08-04 06:49:02 UTC
Severity:
normal
#1110343#5
Date:
2025-08-03 13:35:11 UTC
From:
To:
$ mtr deb.debian.org
mtr: Unexpected mtr-packet error

$ mtr -4 deb.debian.org
(works as expected)

$ mtr -6 deb.debian.org
mtr: Unexpected mtr-packet error

#1110343#10
Date:
2025-08-03 14:01:14 UTC
From:
To:
Hi,

Can you run "sudo strace -o mtr.str -f -s 300 mtr -r -c 10 -6 deb.debian.org

and send me the resulting mtr.str ?

	Roger.

#1110343#15
Date:
2025-08-03 14:45:01 UTC
From:
To:
No, I cannot, since strace hasn't been ported to Hurd.

Martin-Éric


su 3.8.2025 klo 17.01 Rogier Wolff (R.E.Wolff@bitwizard.nl) kirjoitti:

#1110343#20
Date:
2025-08-03 15:30:15 UTC
From:
To:
Apparently

rpctrace ./your-program

is the hurd equivlalent.

#1110343#25
Date:
2025-08-03 15:38:52 UTC
From:
To:
The -f option isn't supported, but it worked. Output attached.

su 3.8.2025 klo 18.30 Rogier Wolff (R.E.Wolff@bitwizard.nl) kirjoitti:

#1110343#30
Date:
2025-08-03 16:14:06 UTC
From:
To:
I spotted this line:

  60<--59(pid1245)->io_read_request (-1 4095) = 0 "33000
unexpected-error errno 1073741866\n"

and I did some googling on it. 1073741866 appears to more canonically be
0x4000002A which is the GNU Hurd ENOPROTOOPT error number.

So I suspect that there's a socket option that mtr is using that hasn't
been implemented in Hurd.

#1110343#35
Date:
2025-08-04 06:27:42 UTC
From:
To:
My reading of the code is that the following socket option levels+option
names are used for IPv6 in mtr:

IPPROTO_IPV6    IPV6_TCLASS
IPPROTO_IPV6    IPV6_UNICAST_HOPS
SOL_IP          IPV6_RECVERR
SOL_SOCKET      SO_BINDTODEVICE
SOL_SOCKET      SO_ERROR
SOL_SOCKET      SO_MARK
SOL_SOCKET      SO_PROTOCOL
SOL_SOCKET      SO_REUSEADDR
SOL_SOCKET      SO_REUSEPORT

#1110343#40
Date:
2025-08-04 06:46:55 UTC
From:
To:
Added the Hurd mailing list in CC, in case someone would know which
option isn't supported.

ma 4.8.2025 klo 9.27 Robert Woodcock (rcw@debian.org) kirjoitti:

Martin-Éric