[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #65670] Bash is not memory safe.
From: |
anonymous |
Subject: |
[bug #65670] Bash is not memory safe. |
Date: |
Wed, 1 May 2024 19:39:29 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?65670>
Summary: Bash is not memory safe.
Group: The GNU Bourne-Again SHell
Submitter: None
Submitted: Wed 01 May 2024 11:39:28 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 01 May 2024 11:39:28 PM UTC By: Anonymous
$ bash --version | head -n1
GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)
$ valgrind --leak-check=full \
--track-origins=yes \
--verbose \
--log-file=valgrind-out-bash.txt \
/bin/bash
==2762== Memcheck, a memory error detector
==2762== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==2762== Using Valgrind-3.19.0-8d3c8034b8-20220411 and LibVEX; rerun with -h
for copyright info
==2762== Command: /bin/bash
==2762== Parent PID: 2251
==2762==
--2762--
--2762-- Valgrind options:
--2762-- --leak-check=full
--2762-- --track-origins=yes
--2762-- --verbose
--2762-- --log-file=valgrind-out-bash.txt
--2762-- Contents of /proc/version:
--2762-- Linux version 6.1.0-20-amd64 (debian-kernel@lists.debian.org)
(gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1
SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11)
--2762--
--2762-- Arch and hwcaps: AMD64, LittleEndian,
amd64-cx16-lzcnt-rdtscp-sse3-ssse3-avx-avx2-bmi-f16c-rdrand-rdseed
--2762-- Page sizes: currently 4096, max supported 4096
--2762-- Valgrind library directory: /usr/libexec/valgrind
--2762-- Reading syms from /bin/bash
--2762-- object doesn't have a symbol table
--2762-- Reading syms from /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
--2762-- Considering
/usr/lib/debug/.build-id/80/8ccde0c755608358b0915a6615c19401fe6bf6.debug ..
--2762-- .. build-id is valid
--2762-- Reading syms from /usr/libexec/valgrind/memcheck-amd64-linux
--2762-- Considering
/usr/lib/debug/.build-id/82/26c2aa6b808ebd5a6fafb694a7fb3287f33590.debug ..
--2762-- .. build-id is valid
--2762-- object doesn't have a dynamic symbol table
--2762-- Scheduler: using generic scheduler lock implementation.
--2762-- Reading suppressions file: /usr/libexec/valgrind/default.supp
==2762== embedded gdbserver: reading from
/tmp/vgdb-pipe-from-vgdb-to-2762-by-user-on-???
==2762== embedded gdbserver: writing to
/tmp/vgdb-pipe-to-vgdb-from-2762-by-user-on-???
==2762== embedded gdbserver: shared mem
/tmp/vgdb-pipe-shared-mem-vgdb-2762-by-user-on-???
==2762==
==2762== TO CONTROL THIS PROCESS USING vgdb (which you probably
==2762== don't want to do, unless you know exactly what you're doing,
==2762== or are doing some strange experiment):
==2762== /usr/bin/vgdb --pid=2762 ...command...
==2762==
==2762== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==2762== /path/to/gdb /bin/bash
==2762== and then give GDB the following command
==2762== target remote | /usr/bin/vgdb --pid=2762
==2762== --pid is optional if only one valgrind process is running
==2762==
--2762-- REDIR: 0x40238e0 (ld-linux-x86-64.so.2:strlen) redirected to
0x580bb0e2 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--2762-- REDIR: 0x40220c0 (ld-linux-x86-64.so.2:index) redirected to
0x580bb0fc (vgPlain_amd64_linux_REDIR_FOR_index)
--2762-- Reading syms from
/usr/libexec/valgrind/vgpreload_core-amd64-linux.so
--2762-- Considering
/usr/lib/debug/.build-id/ad/f1388be4d8781737b0c83fe111a5a9c6e930aa.debug ..
--2762-- .. build-id is valid
--2762-- Reading syms from
/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so
--2762-- Considering
/usr/lib/debug/.build-id/d8/ec66cffcb23a75c3f15940674d6028709121f8.debug ..
--2762-- .. build-id is valid
==2762== WARNING: new redirection conflicts with existing -- ignoring it
--2762-- old: 0x040238e0 (strlen ) R-> (0000.0) 0x580bb0e2
vgPlain_amd64_linux_REDIR_FOR_strlen
--2762-- new: 0x040238e0 (strlen ) R-> (2007.0) 0x048468a0
strlen
--2762-- REDIR: 0x40222e0 (ld-linux-x86-64.so.2:strcmp) redirected to
0x4847780 (strcmp)
--2762-- REDIR: 0x4021550 (ld-linux-x86-64.so.2:mempcpy) redirected to
0x484b1a0 (mempcpy)
--2762-- Reading syms from /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
--2762-- object doesn't have a symbol table
--2762-- Reading syms from /lib/x86_64-linux-gnu/libtinfo.so.6.4
--2762-- object doesn't have a symbol table
--2762-- Reading syms from /lib/x86_64-linux-gnu/libc.so.6
--2762-- Considering
/usr/lib/debug/.build-id/ee/3145ecaaff87a133daea77fbc3eecd458fa0d1.debug ..
--2762-- .. build-id is valid
==2762== WARNING: new redirection conflicts with existing -- ignoring it
--2762-- old: 0x0493b540 (memalign ) R-> (1011.0) 0x04845bc0
memalign
--2762-- new: 0x0493b540 (memalign ) R-> (1017.0) 0x04845b90
aligned_alloc
==2762== WARNING: new redirection conflicts with existing -- ignoring it
--2762-- old: 0x0493b540 (memalign ) R-> (1011.0) 0x04845bc0
memalign
--2762-- new: 0x0493b540 (memalign ) R-> (1017.0) 0x04845b60
aligned_alloc
--2762-- Reading syms from /lib/x86_64-linux-gnu/libdl.so.2
--2762-- Considering
/usr/lib/debug/.build-id/53/eaa845e9ca621f159b0622daae7387cdea1e97.debug ..
--2762-- .. build-id is valid
--2762-- Reading syms from /lib/x86_64-linux-gnu/libpthread.so.0
--2762-- Considering
/usr/lib/debug/.build-id/26/820458adaf5d95718fb502d170fe374ae3ee70.debug ..
--2762-- .. build-id is valid
--2762-- REDIR: 0x4941490 (libc.so.6:strnlen) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4941520 (libc.so.6:strpbrk) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493f640 (libc.so.6:strcmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4954420 (libc.so.6:wcsnlen) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493e780 (libc.so.6:memset) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4952d60 (libc.so.6:wcslen) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493ddb0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to
0x48371b0 (_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4952b90 (libc.so.6:wcschr) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493f530 (libc.so.6:index) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4941550 (libc.so.6:rindex) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4952c20 (libc.so.6:wcscmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493e9c0 (libc.so.6:stpncpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4953170 (libc.so.6:wmemchr) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4941340 (libc.so.6:strncmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493ea30 (libc.so.6:strcasecmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x49408a0 (libc.so.6:strcspn) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4952cb0 (libc.so.6:wcscpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493f4b0 (libc.so.6:strcat) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4941230 (libc.so.6:strncasecmp_l) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493dcc0 (libc.so.6:bcmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493e6f0 (libc.so.6:memrchr) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493f5b0 (libc.so.6:strchrnul) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4940820 (libc.so.6:strcpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493ead0 (libc.so.6:strcasecmp_l) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4941100 (libc.so.6:strlen) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x49413e0 (libc.so.6:strncpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493e940 (libc.so.6:stpcpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493e4d0 (libc.so.6:memmove) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
==2762== Preferring higher priority redirection:
--2762-- old: 0x049f4780 (__memcpy_avx_unalign) R-> (2018.0) 0x04848a60
__memcpy_avx_unaligned_erms
--2762-- new: 0x049f4780 (__memcpy_avx_unalign) R-> (2018.1) 0x0484a2b0
memmove
--2762-- REDIR: 0x493dc40 (libc.so.6:memchr) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4941710 (libc.so.6:strspn) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493e5e0 (libc.so.6:mempcpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4941190 (libc.so.6:strncasecmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x493e880 (libc.so.6:rawmemchr) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x49412d0 (libc.so.6:strncat) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x49b7fc0 (libc.so.6:__memcpy_chk) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x4941eb0 (libc.so.6:strstr) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x49b80d0 (libc.so.6:__memmove_chk) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
==2762== WARNING: new redirection conflicts with existing -- ignoring it
--2762-- old: 0x049f4740 (__memcpy_chk_avx_una) R-> (2030.0) 0x0484b290
__memcpy_chk
--2762-- new: 0x049f4740 (__memcpy_chk_avx_una) R-> (2024.0) 0x0484ac30
__memmove_chk
--2762-- REDIR: 0x4952e30 (libc.so.6:wcsncmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2762-- REDIR: 0x49fa850 (libc.so.6:__strrchr_avx2) redirected to 0x48462e0
(rindex)
--2762-- REDIR: 0x49f7610 (libc.so.6:__strcmp_avx2) redirected to 0x4847680
(strcmp)
--2762-- REDIR: 0x49f7f00 (libc.so.6:__strlen_avx2) redirected to 0x4846780
(strlen)
--2762-- REDIR: 0x49f95d0 (libc.so.6:__strncmp_avx2) redirected to 0x4846ed0
(strncmp)
--2762-- REDIR: 0x49f71e0 (libc.so.6:__strchr_avx2) redirected to 0x4846460
(index)
--2762-- REDIR: 0x49f3d80 (libc.so.6:__memchr_avx2) redirected to 0x4847800
(memchr)
--2762-- REDIR: 0x49f7420 (libc.so.6:__strchrnul_avx2) redirected to 0x484aca0
(strchrnul)
--2762-- REDIR: 0x493a860 (libc.so.6:malloc) redirected to 0x4840740 (malloc)
--2762-- REDIR: 0x49f4730 (libc.so.6:__mempcpy_avx_unaligned_erms) redirected
to 0x484adb0 (mempcpy)
--2762-- REDIR: 0x49f4780 (libc.so.6:__memcpy_avx_unaligned_erms) redirected
to 0x484a2b0 (memmove)
--2762-- REDIR: 0x493ae20 (libc.so.6:free) redirected to 0x4843110 (free)
--2762-- REDIR: 0x49f7b70 (libc.so.6:__strcpy_avx2) redirected to 0x48468d0
(strcpy)
--2762-- REDIR: 0x493b610 (libc.so.6:calloc) redirected to 0x4845540 (calloc)
--2762-- REDIR: 0x49f8080 (libc.so.6:__strncasecmp_avx2) redirected to
0x4847110 (strncasecmp)
--2762-- REDIR: 0x49f5180 (libc.so.6:__memset_avx2_unaligned_erms) redirected
to 0x484a1c0 (memset)
--2762-- REDIR: 0x49b84b0 (libc.so.6:__strcpy_chk) redirected to 0x484ad10
(__strcpy_chk)
--2762-- REDIR: 0x49f9c20 (libc.so.6:__strncpy_avx2) redirected to 0x4846a50
(strncpy)
--2762-- REDIR: 0x49fa580 (libc.so.6:__strnlen_avx2) redirected to 0x4846720
(strnlen)
--2762-- REDIR: 0x49f4740 (libc.so.6:__memcpy_chk_avx_unaligned_erms)
redirected to 0x484b290 (__memcpy_chk)
--2762-- REDIR: 0x493b060 (libc.so.6:realloc) redirected to 0x48457b0
(realloc)
--2762-- REDIR: 0x4a16d10 (libc.so.6:__strpbrk_sse42) redirected to 0x484b520
(strpbrk)
--2762-- REDIR: 0x49f5420 (libc.so.6:__stpcpy_avx2) redirected to 0x4849b60
(stpcpy)
--2762-- REDIR: 0x49fb260 (libc.so.6:__wcslen_avx2) redirected to 0x484b7c0
(wcslen)
--2762-- REDIR: 0x49fc0a0 (libc.so.6:__wmemchr_avx2) redirected to 0x484ba00
(wmemchr)
--2762-- REDIR: 0x49fab00 (libc.so.6:__wcschr_avx2) redirected to 0x484b9b0
(wcschr)
--2762-- REDIR: 0x49fba80 (libc.so.6:__wcsnlen_avx2) redirected to 0x484b7f0
(wcsnlen)
--2762-- REDIR: 0x49f6160 (libc.so.6:__strcasecmp_avx2) redirected to
0x4847050 (strcasecmp)
--2762-- REDIR: 0x49f4020 (libc.so.6:__memcmp_avx2_movbe) redirected to
0x4849aa0 (bcmp)
==2762==
==2762== HEAP SUMMARY:
==2762== in use at exit: 923,884 bytes in 28,793 blocks
==2762== total heap usage: 84,434 allocs, 55,641 frees, 2,761,955 bytes
allocated
==2762==
==2762== Searching for pointers to 28,793 not-freed blocks
==2762== Checked 885,216 bytes
==2762==
==2762== 24 bytes in 1 blocks are definitely lost in loss record 2,594 of
8,420
==2762== at 0x48407B4: malloc (vg_replace_malloc.c:381)
==2762== by 0x1A2C8D: xmalloc (in /bin/bash)
==2762== by 0x147CB0: tilde_initialize (in /bin/bash)
==2762== by 0x13A194: ??? (in /bin/bash)
==2762== by 0x13882C: main (in /bin/bash)
==2762==
==2762== LEAK SUMMARY:
==2762== definitely lost: 24 bytes in 1 blocks
==2762== indirectly lost: 0 bytes in 0 blocks
==2762== possibly lost: 0 bytes in 0 blocks
==2762== still reachable: 923,860 bytes in 28,792 blocks
==2762== suppressed: 0 bytes in 0 blocks
==2762== Reachable blocks (those to which a pointer was found) are not shown.
==2762== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==2762==
==2762== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
$ # BEFORE YOU SAY THIS IS 'JUST HOW VALGRIND WORKS' ... TRY THE SAME WITH
/bin/echo ...
$ valgrind --leak-check=full \
--track-origins=yes \
--verbose \
--log-file=valgrind-out-echo.txt \
/bin/echo
==2799== Memcheck, a memory error detector
==2799== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==2799== Using Valgrind-3.19.0-8d3c8034b8-20220411 and LibVEX; rerun with -h
for copyright info
==2799== Command: /bin/echo
==2799== Parent PID: 2236
==2799==
--2799--
--2799-- Valgrind options:
--2799-- --leak-check=full
--2799-- --track-origins=yes
--2799-- --verbose
--2799-- --log-file=valgrind-out-echo.txt
--2799-- Contents of /proc/version:
--2799-- Linux version 6.1.0-20-amd64 (debian-kernel@lists.debian.org)
(gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1
SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11)
--2799--
--2799-- Arch and hwcaps: AMD64, LittleEndian,
amd64-cx16-lzcnt-rdtscp-sse3-ssse3-avx-avx2-bmi-f16c-rdrand-rdseed
--2799-- Page sizes: currently 4096, max supported 4096
--2799-- Valgrind library directory: /usr/libexec/valgrind
--2799-- Reading syms from /bin/echo
--2799-- object doesn't have a symbol table
--2799-- Reading syms from /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
--2799-- Considering
/usr/lib/debug/.build-id/80/8ccde0c755608358b0915a6615c19401fe6bf6.debug ..
--2799-- .. build-id is valid
--2799-- Reading syms from /usr/libexec/valgrind/memcheck-amd64-linux
--2799-- Considering
/usr/lib/debug/.build-id/82/26c2aa6b808ebd5a6fafb694a7fb3287f33590.debug ..
--2799-- .. build-id is valid
--2799-- object doesn't have a dynamic symbol table
--2799-- Scheduler: using generic scheduler lock implementation.
--2799-- Reading suppressions file: /usr/libexec/valgrind/default.supp
==2799== embedded gdbserver: reading from
/tmp/vgdb-pipe-from-vgdb-to-2799-by-user-on-???
==2799== embedded gdbserver: writing to
/tmp/vgdb-pipe-to-vgdb-from-2799-by-user-on-???
==2799== embedded gdbserver: shared mem
/tmp/vgdb-pipe-shared-mem-vgdb-2799-by-user-on-???
==2799==
==2799== TO CONTROL THIS PROCESS USING vgdb (which you probably
==2799== don't want to do, unless you know exactly what you're doing,
==2799== or are doing some strange experiment):
==2799== /usr/bin/vgdb --pid=2799 ...command...
==2799==
==2799== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==2799== /path/to/gdb /bin/echo
==2799== and then give GDB the following command
==2799== target remote | /usr/bin/vgdb --pid=2799
==2799== --pid is optional if only one valgrind process is running
==2799==
--2799-- REDIR: 0x40238e0 (ld-linux-x86-64.so.2:strlen) redirected to
0x580bb0e2 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--2799-- REDIR: 0x40220c0 (ld-linux-x86-64.so.2:index) redirected to
0x580bb0fc (vgPlain_amd64_linux_REDIR_FOR_index)
--2799-- Reading syms from
/usr/libexec/valgrind/vgpreload_core-amd64-linux.so
--2799-- Considering
/usr/lib/debug/.build-id/ad/f1388be4d8781737b0c83fe111a5a9c6e930aa.debug ..
--2799-- .. build-id is valid
--2799-- Reading syms from
/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so
--2799-- Considering
/usr/lib/debug/.build-id/d8/ec66cffcb23a75c3f15940674d6028709121f8.debug ..
--2799-- .. build-id is valid
==2799== WARNING: new redirection conflicts with existing -- ignoring it
--2799-- old: 0x040238e0 (strlen ) R-> (0000.0) 0x580bb0e2
vgPlain_amd64_linux_REDIR_FOR_strlen
--2799-- new: 0x040238e0 (strlen ) R-> (2007.0) 0x048468a0
strlen
--2799-- REDIR: 0x40222e0 (ld-linux-x86-64.so.2:strcmp) redirected to
0x4847780 (strcmp)
--2799-- REDIR: 0x4021550 (ld-linux-x86-64.so.2:mempcpy) redirected to
0x484b1a0 (mempcpy)
--2799-- Reading syms from /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
--2799-- object doesn't have a symbol table
--2799-- Reading syms from /lib/x86_64-linux-gnu/libc.so.6
--2799-- Considering
/usr/lib/debug/.build-id/ee/3145ecaaff87a133daea77fbc3eecd458fa0d1.debug ..
--2799-- .. build-id is valid
==2799== WARNING: new redirection conflicts with existing -- ignoring it
--2799-- old: 0x04908540 (memalign ) R-> (1011.0) 0x04845bc0
memalign
--2799-- new: 0x04908540 (memalign ) R-> (1017.0) 0x04845b90
aligned_alloc
==2799== WARNING: new redirection conflicts with existing -- ignoring it
--2799-- old: 0x04908540 (memalign ) R-> (1011.0) 0x04845bc0
memalign
--2799-- new: 0x04908540 (memalign ) R-> (1017.0) 0x04845b60
aligned_alloc
--2799-- Reading syms from /lib/x86_64-linux-gnu/libdl.so.2
--2799-- Considering
/usr/lib/debug/.build-id/53/eaa845e9ca621f159b0622daae7387cdea1e97.debug ..
--2799-- .. build-id is valid
--2799-- Reading syms from /lib/x86_64-linux-gnu/libpthread.so.0
--2799-- Considering
/usr/lib/debug/.build-id/26/820458adaf5d95718fb502d170fe374ae3ee70.debug ..
--2799-- .. build-id is valid
--2799-- REDIR: 0x490e490 (libc.so.6:strnlen) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490e520 (libc.so.6:strpbrk) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490c640 (libc.so.6:strcmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x4921420 (libc.so.6:wcsnlen) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490b780 (libc.so.6:memset) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x491fd60 (libc.so.6:wcslen) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490adb0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to
0x48371b0 (_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x491fb90 (libc.so.6:wcschr) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490c530 (libc.so.6:index) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490e550 (libc.so.6:rindex) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x491fc20 (libc.so.6:wcscmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490b9c0 (libc.so.6:stpncpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x4920170 (libc.so.6:wmemchr) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490e340 (libc.so.6:strncmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490ba30 (libc.so.6:strcasecmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490d8a0 (libc.so.6:strcspn) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x491fcb0 (libc.so.6:wcscpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490c4b0 (libc.so.6:strcat) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490e230 (libc.so.6:strncasecmp_l) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490acc0 (libc.so.6:bcmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490b6f0 (libc.so.6:memrchr) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490c5b0 (libc.so.6:strchrnul) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490d820 (libc.so.6:strcpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490bad0 (libc.so.6:strcasecmp_l) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490e100 (libc.so.6:strlen) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490e3e0 (libc.so.6:strncpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490b940 (libc.so.6:stpcpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490b4d0 (libc.so.6:memmove) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
==2799== Preferring higher priority redirection:
--2799-- old: 0x049c1780 (__memcpy_avx_unalign) R-> (2018.0) 0x04848a60
__memcpy_avx_unaligned_erms
--2799-- new: 0x049c1780 (__memcpy_avx_unalign) R-> (2018.1) 0x0484a2b0
memmove
--2799-- REDIR: 0x490ac40 (libc.so.6:memchr) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490e710 (libc.so.6:strspn) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490b5e0 (libc.so.6:mempcpy) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490e190 (libc.so.6:strncasecmp) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x490b880 (libc.so.6:rawmemchr) redirected to 0x48371b0
(_vgnU_ifunc_wrapper)
--2799-- REDIR: 0x49c7850 (libc.so.6:__strrchr_avx2) redirected to 0x48462e0
(rindex)
--2799-- REDIR: 0x49c4f00 (libc.so.6:__strlen_avx2) redirected to 0x4846780
(strlen)
--2799-- REDIR: 0x49c4610 (libc.so.6:__strcmp_avx2) redirected to 0x4847680
(strcmp)
--2799-- REDIR: 0x49c65d0 (libc.so.6:__strncmp_avx2) redirected to 0x4846ed0
(strncmp)
--2799-- REDIR: 0x49c41e0 (libc.so.6:__strchr_avx2) redirected to 0x4846460
(index)
--2799-- REDIR: 0x49c0d80 (libc.so.6:__memchr_avx2) redirected to 0x4847800
(memchr)
--2799-- REDIR: 0x49c4420 (libc.so.6:__strchrnul_avx2) redirected to 0x484aca0
(strchrnul)
--2799-- REDIR: 0x4907860 (libc.so.6:malloc) redirected to 0x4840740 (malloc)
--2799-- REDIR: 0x49c1730 (libc.so.6:__mempcpy_avx_unaligned_erms) redirected
to 0x484adb0 (mempcpy)
--2799-- REDIR: 0x49c1780 (libc.so.6:__memcpy_avx_unaligned_erms) redirected
to 0x484a2b0 (memmove)
--2799-- REDIR: 0x4907e20 (libc.so.6:free) redirected to 0x4843110 (free)
==2799==
==2799== HEAP SUMMARY:
==2799== in use at exit: 0 bytes in 0 blocks
==2799== total heap usage: 31 allocs, 31 frees, 5,017 bytes allocated
==2799==
==2799== All heap blocks were freed -- no leaks are possible
==2799==
==2799== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
$ # IS THE LATER VERSION ANY BETTER?
$ valgrind --leak-check=full \
--track-origins=yes \
--verbose \
--log-file=valgrind-out-bash.txt \
./bash
malloc: variables.c:660: assertion botched
free: called with unallocated block argument
last command: (null)
Aborting...Aborted
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65670>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #65670] Bash is not memory safe.,
anonymous <=