error 0 4d76b8688005833b361d800ff564f1f24a90a1b00af16d1599025416236ca611 640331426 97378038821 4300000000 crypto_kem/lotus256/ref ==19335== Memcheck, a memory error detector ==19335== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==19335== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info ==19335== Command: ./try ==19335== ==19335== Warning: client switching stacks? SP change: 0x1ffeffff38 --> 0x1ffedddf28 ==19335== to suppress, use: --max-stackframe=2236432 or greater ==19335== Invalid write of size 8 ==19335== at 0x10AA91: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x1FFF00006F: ??? ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffedddf28 is on thread 1's stack ==19335== in frame #0, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid write of size 8 ==19335== at 0x10CDE2: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffee45f30 is on thread 1's stack ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid write of size 8 ==19335== at 0x10CE09: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffee45f50 is on thread 1's stack ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid write of size 8 ==19335== at 0x10CE31: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffee45f70 is on thread 1's stack ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid write of size 8 ==19335== at 0x10CE5F: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffee45f90 is on thread 1's stack ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid write of size 8 ==19335== at 0x10CE90: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffee45fb0 is on thread 1's stack ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid write of size 8 ==19335== at 0x10CEC4: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffee45fd0 is on thread 1's stack ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid write of size 8 ==19335== at 0x10CF45: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffee45ff0 is on thread 1's stack ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid write of size 8 ==19335== at 0x10CFAB: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffee46010 is on thread 1's stack ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid write of size 8 ==19335== at 0x10D00E: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffee46020 is on thread 1's stack ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid write of size 2 ==19335== at 0x10F6EF: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F75A: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffedddf30 is on thread 1's stack ==19335== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid write of size 2 ==19335== at 0x10F6EF: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F767: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffef97f30 is on thread 1's stack ==19335== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid read of size 2 ==19335== at 0x10FB0D: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F775: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffedddf30 is on thread 1's stack ==19335== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid read of size 2 ==19335== at 0x10FB11: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F775: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffee45f30 is on thread 1's stack ==19335== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== Invalid read of size 2 ==19335== at 0x10FB16: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10F775: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19335== Address 0x1ffef97f30 is on thread 1's stack ==19335== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19335== ==19335== ==19335== More than 10000000 total errors detected. I'm not reporting any more. ==19335== Final error counts will be inaccurate. Go fix your program! ==19335== Rerun with --error-limit=no to disable this cutoff. Note ==19335== that errors may occur in your program without prior warning from ==19335== Valgrind, because errors are no longer being displayed. ==19335== ==19335== Warning: client switching stacks? SP change: 0x1ffedddf30 --> 0x1ffeffff38 ==19335== to suppress, use: --max-stackframe=2236424 or greater ==19335== Warning: client switching stacks? SP change: 0x1ffeffff00 --> 0x1ffeddcd00 ==19335== to suppress, use: --max-stackframe=2241024 or greater ==19335== further instances of this message will not be shown. ==19335== ==19335== HEAP SUMMARY: ==19335== in use at exit: 16,310,192 bytes in 12 blocks ==19335== total heap usage: 42 allocs, 30 frees, 16,329,320 bytes allocated ==19335== ==19335== LEAK SUMMARY: ==19335== definitely lost: 0 bytes in 0 blocks ==19335== indirectly lost: 0 bytes in 0 blocks ==19335== possibly lost: 16,309,760 bytes in 10 blocks ==19335== still reachable: 432 bytes in 2 blocks ==19335== suppressed: 0 bytes in 0 blocks ==19335== Rerun with --leak-check=full to see details of leaked memory ==19335== ==19335== For lists of detected and suppressed errors, rerun with: -s ==19335== ERROR SUMMARY: 10000000 errors from 15 contexts (suppressed: 0 from 0)