FS#49498 - [bash] Memory leaks

Attached to Project: Arch Linux
Opened by Nils Bars (noEntry) - Saturday, 28 May 2016, 16:38 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Wednesday, 09 November 2016, 16:15 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Version: bash 4.3 at patchlevel 042

If bash is build with ASAN enabled, numerous memory leaks are reported while running 'make check'.
These errors do not appear when building from upstream e.g. ftp://ftp.gnu.org/pub/gnu/bash/bash-4.3.tar.gz.

Steps to reproduce:
1. Get the bash PKGFILE
2. Replace these flags in you re makepkg.conf or create a new one
CFLAGS="-fno-omit-frame-pointer -g -fsanitize=address -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong"
CXXFLAGS="-fno-omit-frame-pointer -g -fsanitize=address -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong"
3. Run: makepkg --skipinteg -s (--skipinteg is need because the checksums of the source files are still not updated)
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Wednesday, 09 November 2016, 16:15 GMT
Reason for closing:  Upstream
Additional comments about closing:  As Allan pointed out, this is upstream issue.
Comment by Nils Bars (noEntry) - Saturday, 28 May 2016, 16:50 GMT
...
< Direct leak of 3 byte(s) in 1 object(s) allocated from:
< #0 0x7f2c5f2fed58 in __interceptor_malloc /build/gcc-multilib/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:38
< #1 0x4d4c3b in xmalloc /tmp/bash/src/bash-4.3/xmalloc.c:112
< #2 0x46845d in expassign /tmp/bash/src/bash-4.3/expr.c:484
< #3 0x4672b8 in expcomma /tmp/bash/src/bash-4.3/expr.c:446
< #4 0x46761f in subexpr /tmp/bash/src/bash-4.3/expr.c:428
< #5 0x46890b in evalexp /tmp/bash/src/bash-4.3/expr.c:393
< #6 0x4e9322 in let_builtin let.def:101
< #7 0x443aba in execute_builtin /tmp/bash/src/bash-4.3/execute_cmd.c:4346
< #8 0x448316 in execute_builtin_or_function /tmp/bash/src/bash-4.3/execute_cmd.c:4767
< #9 0x448316 in execute_simple_command /tmp/bash/src/bash-4.3/execute_cmd.c:4170
< #10 0x44a46d in execute_command_internal /tmp/bash/src/bash-4.3/execute_cmd.c:787
< #11 0x44f89e in execute_command /tmp/bash/src/bash-4.3/execute_cmd.c:390
< #12 0x420010 in reader_loop /tmp/bash/src/bash-4.3/eval.c:160
< #13 0x41c40b in main /tmp/bash/src/bash-4.3/shell.c:756
< #14 0x7f2c5e7fc740 in __libc_start_main (/usr/lib/libc.so.6+0x20740)
<
< Direct leak of 3 byte(s) in 1 object(s) allocated from:
< #0 0x7f2c5f2fed58 in __interceptor_malloc /build/gcc-multilib/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:38
< #1 0x4d4c3b in xmalloc /tmp/bash/src/bash-4.3/xmalloc.c:112
< #2 0x46851e in expassign /tmp/bash/src/bash-4.3/expr.c:484
< #3 0x4672b8 in expcomma /tmp/bash/src/bash-4.3/expr.c:446
< #4 0x46761f in subexpr /tmp/bash/src/bash-4.3/expr.c:428
< #5 0x46890b in evalexp /tmp/bash/src/bash-4.3/expr.c:393
< #6 0x4e9322 in let_builtin let.def:101
< #7 0x443aba in execute_builtin /tmp/bash/src/bash-4.3/execute_cmd.c:4346
< #8 0x448316 in execute_builtin_or_function /tmp/bash/src/bash-4.3/execute_cmd.c:4767
< #9 0x448316 in execute_simple_command /tmp/bash/src/bash-4.3/execute_cmd.c:4170
< #10 0x44a46d in execute_command_internal /tmp/bash/src/bash-4.3/execute_cmd.c:787
< #11 0x44f89e in execute_command /tmp/bash/src/bash-4.3/execute_cmd.c:390
< #12 0x420010 in reader_loop /tmp/bash/src/bash-4.3/eval.c:160
< #13 0x41c40b in main /tmp/bash/src/bash-4.3/shell.c:756
< #14 0x7f2c5e7fc740 in __libc_start_main (/usr/lib/libc.so.6+0x20740)
...
Comment by Allan McRae (Allan) - Sunday, 29 May 2016, 08:19 GMT
Report this upstream.

Loading...