[Bug 2069401] Re: mtr crashes when using -r option

Haw Loeung 2069401 at bugs.launchpad.net
Fri Oct 25 11:05:00 UTC 2024


Looks good to me:

Current:

| ubuntu at prod-ntp-nts-ps5-1:~$ apt-cache policy mtr-tiny
| mtr-tiny:
|   Installed: 0.95-1.1build2
|   Candidate: 0.95-1.1build2
|   Version table:
|  *** 0.95-1.1build2 500
|         500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
|         100 /var/lib/dpkg/status
| ubuntu at prod-ntp-nts-ps5-1:~$ mtr --report google.com
| Start: 2024-10-25T11:01:46+0000
| *** buffer overflow detected ***: terminated
| Aborted (core dumped)

Installed from -proposed:

| ubuntu at prod-ntp-nts-ps5-1:~$ sudo apt-get install mtr-tiny=0.95-1.1ubuntu0.1
| Reading package lists... Done
| Building dependency tree... Done
| Reading state information... Done
| The following packages will be upgraded:
|   mtr-tiny
| 1 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
| Need to get 54.3 kB of archives.
| After this operation, 0 B of additional disk space will be used.
| Get:1 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 mtr-tiny amd64 0.95-1.1ubuntu0.1 [54.3 kB]
| Fetched 54.3 kB in 0s (3224 kB/s)
| [master 537f38f] saving uncommitted changes in /etc prior to apt run
|  Author: ubuntu <ubuntu at prod-ntp-nts-ps5-1>
|  1 file changed, 1 insertion(+), 1 deletion(-)
| (Reading database ... 107216 files and directories currently installed.)
| Preparing to unpack .../mtr-tiny_0.95-1.1ubuntu0.1_amd64.deb ...
| Unpacking mtr-tiny (0.95-1.1ubuntu0.1) over (0.95-1.1build2) ...
| Setting up mtr-tiny (0.95-1.1ubuntu0.1) ...

Confirmed all looks good:

| ubuntu at prod-ntp-nts-ps5-1:~$ apt-cache policy mtr-tiny
| mtr-tiny:
|   Installed: 0.95-1.1ubuntu0.1
|   Candidate: 0.95-1.1ubuntu0.1
|   Version table:
|  *** 0.95-1.1ubuntu0.1 100
|         100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
|         100 /var/lib/dpkg/status
|      0.95-1.1build2 500
|         500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
| ubuntu at prod-ntp-nts-ps5-1:~$ mtr --report google.com
| Start: 2024-10-25T11:03:03+0000
| HOST: prod-ntp-nts-ps5-1          Loss%   Snt   Last   Avg  Best  Wrst StDev
|   1.|-- vlan3060.il3-core1.canoni  0.0%    10    0.5   0.4   0.4   0.5   0.0
|   2.|-- 2001:1900:5:2:2::1471      0.0%    10    0.4   0.5   0.4   0.8   0.1
|   3.|-- lo-0-v6.ear2.London1.Leve  0.0%    10    0.6   0.5   0.5   0.7   0.1
|   4.|-- 2001:4860:1:1::8d0         0.0%    10    0.6   0.6   0.5   0.7   0.1
|   5.|-- 2001:4860:0:1::7dd9        0.0%    10    2.4   2.3   2.2   3.0   0.2
|   6.|-- 2001:4860:0:1::7dc4        0.0%    10    2.7   3.0   1.9   9.6   2.3
|   7.|-- 2001:4860::c:4002:1123     0.0%    10  232.3 232.5 232.3 232.8   0.1
|   8.|-- 2001:4860::c:4003:1d29     0.0%    10  233.2 233.2 233.1 233.4   0.1
|   9.|-- 2001:4860::c:4002:1230     0.0%    10  231.0 231.0 230.8 231.1   0.1
|  10.|-- 2001:4860::c:4001:2c7f     0.0%    10  233.7 233.8 233.6 234.2   0.2
|  11.|-- 2001:4860::c:4001:e55b     0.0%    10  230.2 230.5 230.1 231.0   0.3
|  12.|-- 2001:4860::c:4003:1cbe     0.0%    10  230.3 232.3 230.3 239.2   3.2
|  13.|-- 2001:4860::c:4003:9139     0.0%    10  233.1 233.0 232.1 233.8   0.6
|  14.|-- 2001:4860::c:4003:2e3b     0.0%    10  230.0 230.2 230.0 230.4   0.1
|  15.|-- 2001:4860::9:4003:952d     0.0%    10  230.2 230.2 230.1 230.6   0.1
|  16.|-- 2001:4860:0:1::83d9        0.0%    10  232.0 231.9 231.8 232.0   0.0
|  17.|-- 2001:4860:0:1::84f         0.0%    10  230.7 230.6 230.4 230.8   0.2
|  18.|-- lctsaa-aa-in-x0e.1e100.ne  0.0%    10  230.3 230.2 230.2 230.3   0.0

** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mtr in Ubuntu.
https://bugs.launchpad.net/bugs/2069401

Title:
  mtr crashes when using -r option

Status in mtr package in Ubuntu:
  Fix Released
Status in mtr source package in Noble:
  Fix Committed
Status in mtr source package in Oracular:
  Fix Released

Bug description:
  [ Impact ]

   * mtr crashes with `*** buffer overflow detected ***: terminated`
  when using any report mode option: `-r`, `--report`, or `--report-
  wide`

  [ Test Plan ]

   * `mtr --report archive.ubuntu.com`

  [ Where problems could occur ]

   * Continue to crash when running with any of the report mode options
  with either buffer overflow or segmentation fault due to
  miscalculation of the size of the buffer required.

  [ Other Info ]

   * The attached patch was cherry picked from upstream fix per
  https://github.com/traviscross/mtr/pull/468 and
  https://github.com/traviscross/mtr/commit/5908af4c19188cb17b62f23368b6ef462831a0cb

  ================================================================================

  Have tried on 3 servers

  root at orbit:/root#mtr -r 8.8.8.8
  Start: 2024-06-14T07:49:44+0000
  *** buffer overflow detected ***: terminated
  Aborted

  #cat /etc/lsb-release
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=24.04
  DISTRIB_CODENAME=noble
  DISTRIB_DESCRIPTION="Ubuntu 24.04 LTS"

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: mtr 0.95-1.1build2
  ProcVersionSignature: Ubuntu 6.8.0-1008.9-gcp 6.8.4
  Uname: Linux 6.8.0-1008-gcp x86_64
  ApportVersion: 2.28.1-0ubuntu3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  Date: Fri Jun 14 07:48:00 2024
  ProcEnviron:
   LANG=C.UTF-8
   LC_TIME=en_GB.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm
  SourcePackage: mtr
  UpgradeStatus: Upgraded to noble on 2024-06-05 (8 days ago)
  mtime.conffile..etc.logrotate.d.apport: 2023-08-16T06:34:12.497648

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtr/+bug/2069401/+subscriptions




More information about the foundations-bugs mailing list