"*** buffer overflow detected" when running atop

Bug #1853510 reported by bk160f on 2019-11-21
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
atop (Ubuntu)
Undecided
Unassigned

Bug Description

root@wnv2r11o001:/home/bk160f# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
root@wnv2r11o001:/home/bk160f# atop -V
Version: 1.26 - 2010/11/17 13:42:37 < <email address hidden> >
root@wnv2r11o001:/home/bk160f#
root@wnv2r11o001:/home/bk160f# atop
buffer overflow detected ***: atop terminated
 ======= Backtrace: =========
 /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f69d4cd97e5]
 /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f69d4d7b15c]
 /lib/x86_64-linux-gnu/libc.so.6(+0x117160)[0x7f69d4d79160]
 /lib/x86_64-linux-gnu/libc.so.6(+0x1166c9)[0x7f69d4d786c9]
 /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80)[0x7f69d4cdd6b0]
 /lib/x86_64-linux-gnu/libc.so.6(_IO_padn+0xa0)[0x7f69d4cd0ff0]
 /lib/x86_64-linux-gnu/libc.so.6(+0x525ab)[0x7f69d4cb45ab]
 /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x1f49)[0x7f69d4cb10b9]
 /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x7f69d4d78754]
 /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f69d4d786ad]
 atop[0x413101]
 atop[0x413cbb]
 atop[0x411177]
 atop[0x40d6be]
 atop[0x4031fc]
 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f69d4c82830]
 atop[0x4034f9]
 ======= Memory map: ========
 00400000-00426000 r-xp 00000000 08:02 666441 /usr/bin/atop
 00625000-00626000 r--p 00025000 08:02 666441 /usr/bin/atop
 00626000-0062a000 rw-p 00026000 08:02 666441 /usr/bin/atop
 0062a000-00649000 rw-p 00000000 00:00 0
 01c49000-01e84000 rw-p 00000000 00:00 0 [heap]
 7f69d46ca000-7f69d46e0000 r-xp 00000000 08:02 654979 /lib/x86_64-linux-gnu/libgcc_s.so.1
 7f69d46e0000-7f69d48df000 ---p 00016000 08:02 654979 /lib/x86_64-linux-gnu/libgcc_s.so.1
 7f69d48df000-7f69d48e0000 rw-p 00015000 08:02 654979 /lib/x86_64-linux-gnu/libgcc_s.so.1
 7f69d48e0000-7f69d4a5e000 rw-p 00000000 00:00 0
 7f69d4a5e000-7f69d4a61000 r-xp 00000000 08:02 661727 /lib/x86_64-linux-gnu/libdl-2.23.so
 7f69d4a61000-7f69d4c60000 ---p 00003000 08:02 661727 /lib/x86_64-linux-gnu/libdl-2.23.so
 7f69d4c60000-7f69d4c61000 r--p 00002000 08:02 661727 /lib/x86_64-linux-gnu/libdl-2.23.so
 7f69d4c61000-7f69d4c62000 rw-p 00003000 08:02 661727 /lib/x86_64-linux-gnu/libdl-2.23.so
 7f69d4c62000-7f69d4e22000 r-xp 00000000 08:02 661742 /lib/x86_64-linux-gnu/libc-2.23.so
 7f69d4e22000-7f69d5022000 ---p 001c0000 08:02 661742 /lib/x86_64-linux-gnu/libc-2.23.so
 7f69d5022000-7f69d5026000 r--p 001c0000 08:02 661742 /lib/x86_64-linux-gnu/libc-2.23.so
 7f69d5026000-7f69d5028000 rw-p 001c4000 08:02 661742 /lib/x86_64-linux-gnu/libc-2.23.so
 7f69d5028000-7f69d502c000 rw-p 00000000 00:00 0
 7f69d502c000-7f69d5045000 r-xp 00000000 08:02 655050 /lib/x86_64-linux-gnu/libz.so.1.2.8
 7f69d5045000-7f69d5244000 ---p 00019000 08:02 655050 /lib/x86_64-linux-gnu/libz.so.1.2.8
 7f69d5244000-7f69d5245000 r--p 00018000 08:02 655050 /lib/x86_64-linux-gnu/libz.so.1.2.8
 7f69d5245000-7f69d5246000 rw-p 00019000 08:02 655050 /lib/x86_64-linux-gnu/libz.so.1.2.8
 7f69d5246000-7f69d534e000 r-xp 00000000 08:02 661745 /lib/x86_64-linux-gnu/libm-2.23.so
 7f69d534e000-7f69d554d000 ---p 00108000 08:02 661745 /lib/x86_64-linux-gnu/libm-2.23.so
 7f69d554d000-7f69d554e000 r--p 00107000 08:02 661745 /lib/x86_64-linux-gnu/libm-2.23.so
 7f69d554e000-7f69d554f000 rw-p 00108000 08:02 661745 /lib/x86_64-linux-gnu/libm-2.23.so
 7f69d554f000-7f69d5574000 r-xp 00000000 08:02 655041 /lib/x86_64-linux-gnu/libtinfo.so.5.9
 7f69d5574000-7f69d5773000 ---p 00025000 08:02 655041 /lib/x86_64-linux-gnu/libtinfo.so.5.9
 7f69d5773000-7f69d5777000 r--p 00024000 08:02 655041 /lib/x86_64-linux-gnu/libtinfo.so.5.9
 7f69d5777000-7f69d5778000 rw-p 00028000 08:02 655041 /lib/x86_64-linux-gnu/libtinfo.so.5.9
 7f69d5778000-7f69d5799000 r-xp 00000000 08:02 655001 /lib/x86_64-linux-gnu/libncurses.so.5.9
 7f69d5799000-7f69d5998000 ---p 00021000 08:02 655001 /lib/x86_64-linux-gnu/libncurses.so.5.9
 7f69d5998000-7f69d5999000 r--p 00020000 08:02 655001 /lib/x86_64-linux-gnu/libncurses.so.5.9
 7f69d5999000-7f69d599a000 rw-p 00021000 08:02 655001 /lib/x86_64-linux-gnu/libncurses.so.5.9
 7f69d599a000-7f69d59c0000 r-xp 00000000 08:02 661728 /lib/x86_64-linux-gnu/ld-2.23.so
 7f69d5a30000-7f69d5bb6000 rw-p 00000000 00:00 0
 7f69d5bbe000-7f69d5bbf000 rw-p 00000000 00:00 0
 7f69d5bbf000-7f69d5bc0000 r--p 00025000 08:02 661728 /lib/x86_64-linux-gnu/ld-2.23.so
 7f69d5bc0000-7f69d5bc1000 rw-p 00026000 08:02 661728 /lib/x86_64-linux-gnu/ld-2.23.so
 7f69d5bc1000-7f69d5bc2000 rw-p 00000000 00:00 0
 7ffed7755000-7ffed7776000 rw-p 00000000 00:00 0 [stack]
 7ffed77d2000-7ffed77d5000 r--p 00000000 00:00 0 [vvar]
 7ffed77d5000-7ffed77d7000 r-xp 00000000 00:00 0 [vdso]
 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
 Abort(coredump)

root@wnv2r11o001:/home/bk160f# dpkg --list | grep zlib
ii zlib1g:amd64 1:1.2.8.dfsg-2ubuntu4.1 amd64 compression library - runtime
root@wnv2r11o001:/home/bk160f# dpkg --list | grep ncurses
ii libncurses5:amd64 6.0+20160213-1ubuntu1 amd64 shared libraries for terminal handling
ii libncursesw5:amd64 6.0+20160213-1ubuntu1 amd64 shared libraries for terminal handling (wide character support)
ii mtr-tiny 0.86-1ubuntu0.1 amd64 Full screen ncurses traceroute tool
ii ncurses-base 6.0+20160213-1ubuntu1 all basic terminal type definitions
ii ncurses-bin 6.0+20160213-1ubuntu1 amd64 terminal-related programs and man pages
ii ncurses-term 6.0+20160213-1ubuntu1 all additional terminal type definitions
root@wnv2r11o001:/home/bk160f#

affects: tree (Ubuntu) → atop (Ubuntu)
Brian Foster (blfoster) wrote :

This problem does not seem to happen on 18.04:

# lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
#
# atop -V
Version: 2.3.0 - 2017/03/25 09:59:59 <email address hidden>
#
# atop
[... seems to work fine ...]

Maybe try installing 18.04(or later) `atop'?
You may or may not run into dependency issues.

# ldd $(which atop)
        linux-vdso.so.1 (0x00007ffc22968000)
        libncurses.so.5 => /lib/x86_64-linux-gnu/libncurses.so.5 (0x00007f1902844000)
        libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f190261a000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f19023fd000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f190205f000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f1901e57000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1901a66000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1901862000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f1902d62000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1901643000)
#

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers