Devuan bug report logs - #774
traceroute: Exit code is not reliable nor documented

version graph

Package: traceroute; Maintainer for traceroute is (unknown); Source for traceroute is src:traceroute.

Reported by: Alessandro Vesely <vesely@tana.it>

Date: Fri, 18 Aug 2023 08:10:01 UTC

Severity: grave

Tags: debian

Found in version 1:2.1.0-2+deb11u1

Forwarded to https://bugs.debian.org/1050039

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#774; Package traceroute. (Fri, 18 Aug 2023 08:10:01 GMT) (full text, mbox, link).


Acknowledgement sent to Alessandro Vesely <vesely@tana.it>:
New bug report received and forwarded. Copy sent to devuan-dev@lists.dyne.org. (Fri, 18 Aug 2023 08:10:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

From: Alessandro Vesely <vesely@tana.it>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: traceroute: Exit code is not reliable nor documented
Date: Fri, 18 Aug 2023 10:08:31 +0200
Package: traceroute
Version: 1:2.1.0-2+deb11u1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

I've been using traceroute to monitor network state of the server.
It is called for each interface by a cron job running a few times per hour.
Since yesterday, an interface stopped working, but the job never noticed it.
Manually calling traceroute only shows the (natted) modem interface:

:~# ip addr show eth1r
3: eth1r: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:26:55:e0:d0:e8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.254/24 brd 192.168.1.255 scope global eth1r
       valid_lft forever preferred_lft forever
    inet6 fe80::226:55ff:fee0:d0e8/64 scope link 
       valid_lft forever preferred_lft forever

:~# traceroute -4 -n -i eth1r -m 4 -s 192.168.1.254 185.204.135.186
traceroute to 185.204.135.186 (185.204.135.186), 4 hops max, 60 byte packets
 1  192.168.1.1  0.235 ms  0.282 ms  0.289 ms
 2  * * *
 3  * * *
 4  * * *

Exit code is 0.  In fact recvmsg reports no error.  The relevant calls are:
23495 sendto(14, "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_", 32, 0, NULL, 0) = 32
23495 recvmsg(3, {msg_name={sa_family=AF_INET, sin_port=htons(33434), sin_addr=inet_addr("185.204.135.186")}, msg_namelen=28->16, msg_iov=[{iov_base="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_", iov_len=1280}], msg_iovlen=1, msg_control=[{cmsg_len=32, cmsg_level=SOL_SOCKET, cmsg_type=SO_TIMESTAMP_OLD, cmsg_data={tv_sec=1692345052, tv_usec=96190}}, {cmsg_len=20, cmsg_level=SOL_IP, cmsg_type=IP_TTL, cmsg_data=[64]}, {cmsg_len=48, cmsg_level=SOL_IP, cmsg_type=IP_RECVERR, cmsg_data={ee_errno=113, ee_origin=2, ee_type=11, ee_code=0, ee_info=0, ee_data=0, offender={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("192.168.1.1")}}}], msg_controllen=104, msg_flags=MSG_ERRQUEUE}, MSG_ERRQUEUE) = 32
23495 recvmsg(4, {msg_name={sa_family=AF_INET, sin_port=htons(33435), sin_addr=inet_addr("185.204.135.186")}, msg_namelen=28->16, msg_iov=[{iov_base="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_", iov_len=1280}], msg_iovlen=1, msg_control=[{cmsg_len=32, cmsg_level=SOL_SOCKET, cmsg_type=SO_TIMESTAMP_OLD, cmsg_data={tv_sec=1692345052, tv_usec=96276}}, {cmsg_len=20, cmsg_level=SOL_IP, cmsg_type=IP_TTL, cmsg_data=[64]}, {cmsg_len=48, cmsg_level=SOL_IP, cmsg_type=IP_RECVERR, cmsg_data={ee_errno=113, ee_origin=2, ee_type=11, ee_code=0, ee_info=0, ee_data=0, offender={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("192.168.1.1")}}}], msg_controllen=104, msg_flags=MSG_ERRQUEUE}, MSG_ERRQUEUE) = 32
23495 recvmsg(5, {msg_name={sa_family=AF_INET, sin_port=htons(33436), sin_addr=inet_addr("185.204.135.186")}, msg_namelen=28->16, msg_iov=[{iov_base="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_", iov_len=1280}], msg_iovlen=1, msg_control=[{cmsg_len=32, cmsg_level=SOL_SOCKET, cmsg_type=SO_TIMESTAMP_OLD, cmsg_data={tv_sec=1692345052, tv_usec=96277}}, {cmsg_len=20, cmsg_level=SOL_IP, cmsg_type=IP_TTL, cmsg_data=[64]}, {cmsg_len=48, cmsg_level=SOL_IP, cmsg_type=IP_RECVERR, cmsg_data={ee_errno=113, ee_origin=2, ee_type=11, ee_code=0, ee_info=0, ee_data=0, offender={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("192.168.1.1")}}}], msg_controllen=104, msg_flags=MSG_ERRQUEUE}, MSG_ERRQUEUE) = 32
23495 +++ exited with 0 +++

The modem obviously needs a reset.  The point is that I was expecting
traceroute to detect that, since the interface doesn't work.  If this
is not a bug in the code, it is in the documentation, tagged 11 October
2006, which doesn't mention exit code at all.


Thanks
Ale


-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 4 (chimaera)
Release:	4
Codename:	chimaera
Architecture: x86_64

Kernel: Linux 5.10.0-24-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages traceroute depends on:
ii  libc6  2.31-13+deb11u6

traceroute recommends no packages.

traceroute suggests no packages.

-- no debconf information

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#774; Package traceroute. (Fri, 18 Aug 2023 17:08:01 GMT) (full text, mbox, link).


Message #8 received at 774@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Alessandro Vesely <vesely@tana.it>, 774@bugs.devuan.org
Subject: Re: bug#774: traceroute: Exit code is not reliable nor documented
Date: Fri, 18 Aug 2023 18:04:30 +0100
Control: tags -1 debian

Alessandro

On Fri, Aug 18, 2023 at 10:08:31AM +0200, Alessandro Vesely wrote:
> Package: traceroute
> Version: 1:2.1.0-2+deb11u1
> Severity: grave
> Justification: renders package unusable

Thanks for this. However, traceroute is not a forked package and Devuan uses
Debian's packages directly without recompilation. Please report this to Debian's
BTS to be addressed.

Thanks

Mark

Added tag(s) debian. Request was from Mark Hindley <mark@hindley.org.uk> to 774-submit@bugs.devuan.org. (Fri, 18 Aug 2023 17:08:04 GMT) (full text, mbox, link).


Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#774; Package traceroute. (Fri, 18 Aug 2023 18:26:02 GMT) (full text, mbox, link).


Acknowledgement sent to Alessandro Vesely <vesely@tana.it>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. (Fri, 18 Aug 2023 18:26:02 GMT) (full text, mbox, link).


Message #15 received at 774@bugs.devuan.org (full text, mbox, reply):

From: Alessandro Vesely <vesely@tana.it>
To: Mark Hindley <mark@hindley.org.uk>, 774@bugs.devuan.org
Subject: Re: bug#774: traceroute: Exit code is not reliable nor documented
Date: Fri, 18 Aug 2023 20:23:23 +0200
On Fri 18/Aug/2023 19:04:30 +0200 Mark Hindley wrote:
> Control: tags -1 debian
> 
> Alessandro
> 
> On Fri, Aug 18, 2023 at 10:08:31AM +0200, Alessandro Vesely wrote:
>> Package: traceroute
>> Version: 1:2.1.0-2+deb11u1
>> Severity: grave
>> Justification: renders package unusable
> 
> Thanks for this. However, traceroute is not a forked package and Devuan uses
> Debian's packages directly without recompilation. Please report this to Debian's
> BTS to be addressed.


Hm... I used reportbug.  Now I repeated the same using --bts=debian.  Wouldn't 
it have been possible to just forward the message somewhere?

Best
Ale

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#774; Package traceroute. (Fri, 18 Aug 2023 19:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. (Fri, 18 Aug 2023 19:06:04 GMT) (full text, mbox, link).


Message #20 received at 774@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Alessandro Vesely <vesely@tana.it>
Cc: 774@bugs.devuan.org
Subject: Re: bug#774: traceroute: Exit code is not reliable nor documented
Date: Fri, 18 Aug 2023 20:03:53 +0100
Control: forwarded -1 https://bugs.debian.org/1050039

On Fri, Aug 18, 2023 at 08:23:23PM +0200, Alessandro Vesely wrote:
> Hm... I used reportbug.  Now I repeated the same using --bts=debian.

Thanks. Adding forwarded. 

> Wouldn't it have been possible to just forward the message somewhere?

Well, it wasn't *my* report. However, reportbug in daedalus tries to pick the
correct BTS by default.

Mark

Set bug forwarded-to-address to 'https://bugs.debian.org/1050039'. Request was from Mark Hindley <mark@hindley.org.uk> to 774-submit@bugs.devuan.org. (Fri, 18 Aug 2023 19:06:05 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sun Nov 24 09:53:45 2024;