buffer overflow detected
Description:
When running mtr -r nrk.no
I get "*** buffer overflow detected ***". This does not happen when I build mtr from source from the mtr master
branch.
I have tried building it with different flags, gdb and debug settings, but have not been able to pin down exactly where this lies, but I only get this when running mtr from the mtr package.
% mtr -r nrk.no
Start: 2024-07-24T10:04:55+0200
*** buffer overflow detected ***: terminated
zsh: IOT instruction (core dumped) mtr -r nrk.no
% gdb --args mtr -r nrk.no
GNU gdb (GDB) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from mtr...
(No debugging symbols found in mtr)
(gdb) r
Starting program: /usr/bin/mtr -r nrk.no
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Detaching after fork from child process 6348]
[Detaching after fork from child process 6349]
Start: 2024-07-24T09:18:03+0200
*** buffer overflow detected ***: terminated
Program received signal SIGABRT, Aborted.
0x00007ffff7c8d3f4 in ?? () from /usr/lib/libc.so.6
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/bin/mtr -r nrk.no
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Detaching after fork from child process 6379]
[Detaching after fork from child process 6380]
Start: 2024-07-24T09:19:38+0200
*** buffer overflow detected ***: terminated
Program received signal SIGABRT, Aborted.
0x00007ffff7c8d3f4 in ?? () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff7c8d3f4 in ?? () from /usr/lib/libc.so.6
#1 0x00007ffff7c34120 in raise () from /usr/lib/libc.so.6
#2 0x00007ffff7c1b4c3 in abort () from /usr/lib/libc.so.6
#3 0x00007ffff7c1c354 in ?? () from /usr/lib/libc.so.6
#4 0x00007ffff7d1c759 in __fortify_fail () from /usr/lib/libc.so.6
#5 0x00007ffff7d1c0e4 in __chk_fail () from /usr/lib/libc.so.6
#6 0x00007ffff7d1d917 in __snprintf_chk () from /usr/lib/libc.so.6
#7 0x000055555555e546 in ?? ()
#8 0x0000555555558b97 in ?? ()
#9 0x00007ffff7c1ce08 in ?? () from /usr/lib/libc.so.6
#10 0x00007ffff7c1cecc in __libc_start_main () from /usr/lib/libc.so.6
#11 0x000055555555a4f5 in ?? ()
(gdb)
Additional info:
- mtr 0.95-5
Steps to reproduce:
mtr -r nrk.no
This might also, maybe, be needed to reproduce the issue:
sudo sysctl -w net.ipv4.tcp_congestion_control=bbr
Edited by Alexander Rødseth