error 0 4d76b8688005833b361d800ff564f1f24a90a1b00af16d1599025416236ca611 859821262 121500700336 4300000000 crypto_kem/lotus256/ref ==19395== Memcheck, a memory error detector ==19395== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==19395== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info ==19395== Command: ./try ==19395== ==19395== Warning: client switching stacks? SP change: 0x1ffeffff48 --> 0x1ffedddf38 ==19395== to suppress, use: --max-stackframe=2236432 or greater ==19395== Invalid write of size 8 ==19395== at 0x109E75: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x1FFF00006F: ??? ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffedddf38 is on thread 1's stack ==19395== in frame #0, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid write of size 2 ==19395== at 0x10A4A8: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10ACCE: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD67: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffee45f40 is on thread 1's stack ==19395== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid write of size 2 ==19395== at 0x10A4BF: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10ACCE: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD67: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffee45f60 is on thread 1's stack ==19395== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid write of size 2 ==19395== at 0x10A4D6: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10ACCE: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD67: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffee45f80 is on thread 1's stack ==19395== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid write of size 2 ==19395== at 0x10A4ED: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10ACCE: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD67: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffee45fa0 is on thread 1's stack ==19395== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid write of size 2 ==19395== at 0x10A506: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10ACCE: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD67: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffee45fc0 is on thread 1's stack ==19395== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid write of size 2 ==19395== at 0x10A51F: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10ACCE: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD67: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffee45fe0 is on thread 1's stack ==19395== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid write of size 2 ==19395== at 0x10A573: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10ACCE: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD67: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffee46000 is on thread 1's stack ==19395== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid write of size 2 ==19395== at 0x10A5B2: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10ACCE: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD67: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffee46020 is on thread 1's stack ==19395== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid write of size 2 ==19395== at 0x10A5F1: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10ACCE: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD67: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffee46030 is on thread 1's stack ==19395== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid write of size 2 ==19395== at 0x10AD17: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD7B: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffedddf40 is on thread 1's stack ==19395== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid write of size 2 ==19395== at 0x10AD17: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD88: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffef97f40 is on thread 1's stack ==19395== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid read of size 2 ==19395== at 0x10AF97: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD96: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffedddf40 is on thread 1's stack ==19395== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid read of size 2 ==19395== at 0x10AF9C: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD96: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffee45f40 is on thread 1's stack ==19395== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== Invalid read of size 2 ==19395== at 0x10AFA1: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x10AD96: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109E79: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x109386: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== by 0x108E84: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19395== Address 0x1ffef97f40 is on thread 1's stack ==19395== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19395== ==19395== ==19395== More than 10000000 total errors detected. I'm not reporting any more. ==19395== Final error counts will be inaccurate. Go fix your program! ==19395== Rerun with --error-limit=no to disable this cutoff. Note ==19395== that errors may occur in your program without prior warning from ==19395== Valgrind, because errors are no longer being displayed. ==19395== ==19395== Warning: client switching stacks? SP change: 0x1ffedddf40 --> 0x1ffeffff48 ==19395== to suppress, use: --max-stackframe=2236424 or greater ==19395== Warning: client switching stacks? SP change: 0x1ffeffff38 --> 0x1ffeddcd50 ==19395== to suppress, use: --max-stackframe=2241000 or greater ==19395== further instances of this message will not be shown. ==19395== ==19395== HEAP SUMMARY: ==19395== in use at exit: 16,310,192 bytes in 12 blocks ==19395== total heap usage: 42 allocs, 30 frees, 16,329,320 bytes allocated ==19395== ==19395== LEAK SUMMARY: ==19395== definitely lost: 0 bytes in 0 blocks ==19395== indirectly lost: 0 bytes in 0 blocks ==19395== possibly lost: 16,309,760 bytes in 10 blocks ==19395== still reachable: 432 bytes in 2 blocks ==19395== suppressed: 0 bytes in 0 blocks ==19395== Rerun with --leak-check=full to see details of leaked memory ==19395== ==19395== For lists of detected and suppressed errors, rerun with: -s ==19395== ERROR SUMMARY: 10000000 errors from 15 contexts (suppressed: 0 from 0)