580_gpg-sanitize-recipe.sh10 KBDownload
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Mar 6 2015
Mar 6 2015
Added updated gost28147.c that removes the undefined behavior.
579_gost28147.c19 KBDownload
Added updated buf.help.h that removes the undefined behavior.
JW set Version to 1.6.3 on T1881: Undefined behavior when running `make check` under Clang sanitizers.
578_bufhelp.h10 KBDownload
JW added projects to T1881: Undefined behavior when running `make check` under Clang sanitizers: libgcrypt, Bug Report.
Updated status to 'unread'. I'm not chatting.
Updated to include line numbers.
54400==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 240 byte(s) in 12 object(s) allocated from:
#0 0x49f45b in __interceptor_malloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
#1 0x5462d0 in _ksba_oid_to_str
/home/gpg-user/gcrypt-2.0-sanitize/libksba-1.3.2/src/oid.c:75:16
#2 0x4bcce9 in main
/home/gpg-user/gcrypt-2.0-sanitize/libksba-1.3.2/tests/t-oid.c:164:7
#3 0x2b8edcf1aec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
Direct leak of 58 byte(s) in 2 object(s) allocated from:
#0 0x49f45b in __interceptor_malloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
#1 0x5570e4 in _ksba_strdup
/home/gpg-user/gcrypt-2.0-sanitize/libksba-1.3.2/src/util.c:162:13
#2 0x4bcce9 in main
/home/gpg-user/gcrypt-2.0-sanitize/libksba-1.3.2/tests/t-oid.c:164:7
#3 0x2b8edcf1aec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
SUMMARY: AddressSanitizer: 298 byte(s) leaked in 14 allocation(s).
FAIL: t-oid
1 of 4 tests failed
Please report to http://bugs.gnupg.org
Updated status to 'unread'. I'm not chatting.
Updated status to 'unread'. I'm not chatting.
Updated status to 'unread'. I'm not chatting.
Here's the updated output with line numbers.
51121==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 12 byte(s) in 1 object(s) allocated from:
#0 0x49f22b in __interceptor_malloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
#1 0x4dc25a in socketpair_connect
/home/gpg-user/gcrypt-2.0-sanitize/libassuan-2.2.0/src/assuan-pipe-connect.c:317:15
#2 0x4bdec1 in main
/home/gpg-user/gcrypt-2.0-sanitize/libassuan-2.2.0/tests/fdpassing.c:291:13
#3 0x2afdc8bddec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
Direct leak of 7 byte(s) in 1 object(s) allocated from:
#0 0x49f22b in __interceptor_malloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
#1 0x4bc978 in xmalloc
/home/gpg-user/gcrypt-2.0-sanitize/libassuan-2.2.0/tests/./common.h:62:13
#2 0x2afdc8bddec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
SUMMARY: AddressSanitizer: 19 byte(s) leaked in 2 allocation(s).
51122==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 3784 byte(s) in 1 object(s) allocated from:
#0 0x49f22b in __interceptor_malloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
#1 0x4bed76 in assuan_new_ext
/home/gpg-user/gcrypt-2.0-sanitize/libassuan-2.2.0/src/assuan.c:134:11
#2 0x4bde6f in main
/home/gpg-user/gcrypt-2.0-sanitize/libassuan-2.2.0/tests/fdpassing.c:287:13
#3 0x2afdc8bddec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
Direct leak of 7 byte(s) in 1 object(s) allocated from:
#0 0x49f22b in __interceptor_malloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
#1 0x4bc978 in xmalloc
/home/gpg-user/gcrypt-2.0-sanitize/libassuan-2.2.0/tests/./common.h:62:13
#2 0x2afdc8bddec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
SUMMARY: AddressSanitizer: 3791 byte(s) leaked in 2 allocation(s).
FAIL: fdpassing
577_gpg-sanitize-recipe.sh10 KBDownload
Attached is the script I am using to acceptance test the suite. It requires
Clang 3.5 (Clang 3.5 recipe was provided with Bug 1872).
Attached is the script I am using to acceptance test the suite. It requires
Clang 3.5 (Clang 3.5 recipe was provided with Bug 1872).
576_gpg-sanitize-recipe.sh10 KBDownload
Closing. My test script overwrote the symbols/optimization flags with the Clang
sanitziers.
575_gpg-sanitize-recipe.sh10 KBDownload
Attached is the script I am using to acceptance test the suite. It requires
Clang 3.5 (Clang 3.5 recipe was provided with Bug 1872).
574_gpg-sanitize-recipe.sh10 KBDownload
Attached is the script I am using to acceptance test the suite. It requires
Clang 3.5 (Clang 3.5 recipe was provided with Bug 1872).
Closing. My script overwrote the symbol/optimizations with the Clang flags.
Changed status to 'unread'. I am not chatting.
Attached is the script I am using to acceptance test the suite. It requires
Clang 3.5 (Clang 3.5 recipe was provided with Bug 1872)
573_gpg-sanitize-recipe.sh10 KBDownload
Attached is the script I am using to acceptance test the suite. It requires
Clang 3.5 (Clang 3.5 recipe was provided with Bug 1872).
27503==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x49f53b in malloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
#1 0x53a9ca in _gcry_private_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x53a9ca)
#2 0x4f2e00 in do_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4f2e00)
#3 0x4f289a in _gcry_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4f289a)
#4 0x4f5349 in _gcry_xmalloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4f5349)
#5 0xc7ade0 in _gcry_mpi_alloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0xc7ade0)
#6 0xc8c6ac in _gcry_mpi_set_ui
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0xc8c6ac)
#7 0x4c9d2b in gcry_mpi_set_ui
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4c9d2b)
#8 0x4bd295 in test_const_and_immutable
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4bd295)
#9 0x4bd0fb in main
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4bd0fb)
#10 0x2abeb5528ec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 8 byte(s) in 1 object(s) allocated from:
#0 0x49f53b in malloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
#1 0x53a9ca in _gcry_private_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x53a9ca)
#2 0x4f2e00 in do_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4f2e00)
#3 0x4f289a in _gcry_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4f289a)
#4 0x4f5349 in _gcry_xmalloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4f5349)
#5 0xc7b998 in _gcry_mpi_alloc_limb_space
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0xc7b998)
#6 0xc7aef4 in _gcry_mpi_alloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0xc7aef4)
#7 0xc8c6ac in _gcry_mpi_set_ui
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0xc8c6ac)
#8 0x4c9d2b in gcry_mpi_set_ui
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4c9d2b)
#9 0x4bd295 in test_const_and_immutable
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4bd295)
#10 0x4bd0fb in main
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/mpitests+0x4bd0fb)
#11 0x2abeb5528ec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
SUMMARY: AddressSanitizer: 32 byte(s) leaked in 2 allocation(s).
FAIL: mpitests
./tsexp: /lib/x86_64-linux-gnu/libgpg-error.so.0: no version information
available (required by ./tsexp)
27510==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 558 byte(s) in 1 object(s) allocated from:
#0 0x49f53b in malloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
#1 0x548dfa in _gcry_private_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x548dfa)
#2 0x501230 in do_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x501230)
#3 0x500cca in _gcry_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x500cca)
#4 0x50fffa in _gcry_sexp_find_token
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x50fffa)
#5 0x4d62cb in gcry_sexp_find_token
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x4d62cb)
#6 0x4cc1ad in bug_1594
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x4cc1ad)
#7 0x4bcf62 in main
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x4bcf62)
#8 0x2ad398718ec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
Direct leak of 523 byte(s) in 1 object(s) allocated from:
#0 0x49f53b in malloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
#1 0x548dfa in _gcry_private_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x548dfa)
#2 0x501230 in do_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x501230)
#3 0x500cca in _gcry_malloc
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x500cca)
#4 0x50fffa in _gcry_sexp_find_token
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x50fffa)
#5 0x4d62cb in gcry_sexp_find_token
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x4d62cb)
#6 0x4cc295 in bug_1594
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x4cc295)
#7 0x4bcf62 in main
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/tsexp+0x4bcf62)
#8 0x2ad398718ec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
SUMMARY: AddressSanitizer: 1081 byte(s) leaked in 2 allocation(s).
FAIL: tsexp
27657==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 144560 byte(s) in 278 object(s) allocated from:
#0 0x49f690 in calloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:56:3
#1 0x4c3020 in do_slope_benchmark
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4c3020)
#2 0x4d2030 in cipher_bench_one
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4d2030)
#3 0x4c6565 in _cipher_bench
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4c6565)
#4 0x4c5d96 in cipher_bench
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4c5d96)
#5 0x4cb103 in main
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4cb103)
#6 0x2b9df664dec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
Direct leak of 15080 byte(s) in 29 object(s) allocated from:
#0 0x49f690 in calloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:56:3
#1 0x4c3020 in do_slope_benchmark
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4c3020)
#2 0x4cc4ea in mac_bench_one
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4cc4ea)
#3 0x4c86db in _mac_bench
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4c86db)
#4 0x4c819a in mac_bench
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4c819a)
#5 0x4cb0ef in main
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4cb0ef)
#6 0x2b9df664dec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
Direct leak of 9360 byte(s) in 18 object(s) allocated from:
#0 0x49f690 in calloc
/home/gpg-user/Clang-3.5/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:56:3
#1 0x4c3020 in do_slope_benchmark
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4c3020)
#2 0x4cfd7a in hash_bench_one
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4cfd7a)
#3 0x4c773b in _hash_bench
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4c773b)
#4 0x4c6e0a in hash_bench
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4c6e0a)
#5 0x4cb0db in main
(/home/gpg-user/gcrypt-2.0-sanitize/libgcrypt-1.6.3/tests/bench-slope+0x4cb0db)
#6 0x2b9df664dec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
SUMMARY: AddressSanitizer: 169000 byte(s) leaked in 325 allocation(s).
FAIL: bench-slope
JW added projects to T1879: Memory leaks when running `make check` under Clang sanitizers: libgcrypt, Bug Report.
The following still harbors undefined behavior, but I did not want to touch it
due to fears of breaking the zeoizer:
cipher-gcm.c:1144:7: runtime error: store to misaligned address...
cipher-gcm.c:1145:7: runtime error: store to misaligned address...
cipher-gcm.c:1146:7: runtime error: store to misaligned address...
wipememory (c->u_mode.gcm.tagiv, GCRY_GCM_BLOCK_LEN); wipememory (c->u_mode.gcm.aadlen, sizeof (c->u_mode.gcm.aadlen)); wipememory (c->u_mode.gcm.datalen, sizeof (c->u_mode.gcm.datalen));
cipher-ccm.c:280:7: runtime error: store to misaligned address...
wipememory (c->u_mode.ccm.macbuf, 16);
572_bufhelp.h10 KBDownload
Updated bufhelp that corrects the undefined behavior.
571_gost28147.c19 KBDownload
Updated gost28147 that corrects the undefined behavior.
570_gost28147.c19 KBDownload
JW set Version to 1.6.3 on T1877: Undefined behavior when running `make check` under Clang sanitizers.
JW added projects to T1877: Undefined behavior when running `make check` under Clang sanitizers: libgcrypt, Bug Report.
569_gpg-sanitize-recipe.sh10 KBDownload
JW added projects to T1876: Memory leaks when running `make check` under Clang sanitizers: libksba, Bug Report.
568_gpg-sanitize-recipe.sh10 KBDownload
567_gpg-sanitize-recipe.sh10 KBDownload
566_gpg-sanitize-recipe.sh10 KBDownload
JW added projects to T1874: Memory leaks when running `make check` under Clang sanitizers: libassuan, Bug Report.
And:
$ addr2line -e libgcrypt-1.6.3/tests/version 0x51d8c6
hwf-x86.c:?
And:
$ gdb
(gdb) file libgcrypt-1.6.3/tests/version
Reading symbols from libgcrypt-1.6.3/tests/version...done.
(gdb) info symbol 0x51d8c6
get_xgetbv + 294 in section .text
(gdb) info *0x51d8c6
Undefined info command: "*0x51d8c6". Try "help info".
(gdb) info line *0x51d8c6
No line number information available for address 0x51d8c6 <get_xgetbv+294>
Related bug: "Test suite built without symbols",
T1873.
Mar 5 2015
Mar 5 2015
Attached is the recipe I am using to build Clang 3.5.
565_clang-3.5-recipe.sh2 KBDownload
564_gpg-sanitize-recipe.sh6 KBDownload
JW added projects to T1872: Memory errors when running `make check` under Clang sanitizers: libgcrypt, Bug Report.
563_gnupg-sanitizer-findings.txt323 KBDownload
JW added projects to T1871: Adding 'int' to a string does not append to the string: Feature Request, libgcrypt.
It appears --disable-static is the culprit.
JW added projects to T1864: Can't compile libgcrypt with some configure options: libgcrypt, Bug Report.
562_libgcrypt-failed-build.txt77 KBDownload
Mar 3 2015
Mar 3 2015
JW added a comment to T1860: Can't verify signatures from command line using signer's public key block.
561_gpg-recipe.sh4 KBDownload
JW set Version to 1.4.16 on T1860: Can't verify signatures from command line using signer's public key block.
JW set Version to 1.18 on T1859: libgpg-error-1.18: e: WARNING: 'missing' script is too old or missing.