==904== Memcheck, a memory error detector ==904== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==904== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info ==904== Command: ./gmp-test ==904== Parent PID: 899 ==904== ==904== Invalid write of size 4 ==904== at 0x10026F18: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x10004EE3: __gmpn_sqr_basecase (in /shared/port/gmp-test) ==904== by 0x100049D3: __gmpn_sqr (in /shared/port/gmp-test) ==904== by 0x10024D2B: __gmpn_powm (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effe730 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== Invalid read of size 4 ==904== at 0x10026FEC: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x10004EE3: __gmpn_sqr_basecase (in /shared/port/gmp-test) ==904== by 0x100049D3: __gmpn_sqr (in /shared/port/gmp-test) ==904== by 0x10024D2B: __gmpn_powm (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effe730 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== Invalid write of size 4 ==904== at 0x10026F18: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x1002DDD3: __gmpn_redc_1 (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effebd0 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== Invalid read of size 4 ==904== at 0x10026FEC: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x1002DDD3: __gmpn_redc_1 (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effebd0 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== Invalid write of size 4 ==904== at 0x10026F18: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x10004D43: __gmpn_mul_basecase (in /shared/port/gmp-test) ==904== by 0x1000469B: __gmpn_mul_n (in /shared/port/gmp-test) ==904== by 0x10024DCB: __gmpn_powm (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effe7c0 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== Invalid read of size 4 ==904== at 0x10026FEC: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x10004D43: __gmpn_mul_basecase (in /shared/port/gmp-test) ==904== by 0x1000469B: __gmpn_mul_n (in /shared/port/gmp-test) ==904== by 0x10024DCB: __gmpn_powm (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effe7c0 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== Invalid write of size 4 ==904== at 0x10026F18: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x10004EE3: __gmpn_sqr_basecase (in /shared/port/gmp-test) ==904== by 0x100049D3: __gmpn_sqr (in /shared/port/gmp-test) ==904== by 0x100253CB: __gmpn_powm (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effe730 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== Invalid read of size 4 ==904== at 0x10026FEC: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x10004EE3: __gmpn_sqr_basecase (in /shared/port/gmp-test) ==904== by 0x100049D3: __gmpn_sqr (in /shared/port/gmp-test) ==904== by 0x100253CB: __gmpn_powm (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effe730 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== Invalid write of size 4 ==904== at 0x10026F18: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x10004D43: __gmpn_mul_basecase (in /shared/port/gmp-test) ==904== by 0x1000469B: __gmpn_mul_n (in /shared/port/gmp-test) ==904== by 0x1002545F: __gmpn_powm (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effe7c0 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== Invalid read of size 4 ==904== at 0x10026FEC: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x10004D43: __gmpn_mul_basecase (in /shared/port/gmp-test) ==904== by 0x1000469B: __gmpn_mul_n (in /shared/port/gmp-test) ==904== by 0x1002545F: __gmpn_powm (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effe7c0 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== Invalid write of size 4 ==904== at 0x10026F18: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x10004EE3: __gmpn_sqr_basecase (in /shared/port/gmp-test) ==904== by 0x100049D3: __gmpn_sqr (in /shared/port/gmp-test) ==904== by 0x1002525F: __gmpn_powm (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effe730 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== Invalid read of size 4 ==904== at 0x10026FEC: __gmpn_addmul_1 (in /shared/port/gmp-test) ==904== by 0x10004EE3: __gmpn_sqr_basecase (in /shared/port/gmp-test) ==904== by 0x100049D3: __gmpn_sqr (in /shared/port/gmp-test) ==904== by 0x1002525F: __gmpn_powm (in /shared/port/gmp-test) ==904== by 0x10001CCB: __gmpz_powm (in /shared/port/gmp-test) ==904== by 0x1000070F: main (in /shared/port/gmp-test) ==904== Address 0x7effe730 is on thread 1's stack ==904== 32 bytes below stack pointer ==904== ==904== ==904== HEAP SUMMARY: ==904== in use at exit: 202 bytes in 5 blocks ==904== total heap usage: 7 allocs, 2 frees, 210 bytes allocated ==904== ==904== LEAK SUMMARY: ==904== definitely lost: 202 bytes in 5 blocks ==904== indirectly lost: 0 bytes in 0 blocks ==904== possibly lost: 0 bytes in 0 blocks ==904== still reachable: 0 bytes in 0 blocks ==904== suppressed: 0 bytes in 0 blocks ==904== Rerun with --leak-check=full to see details of leaked memory ==904== ==904== For counts of detected and suppressed errors, rerun with: -v ==904== ERROR SUMMARY: 114876 errors from 12 contexts (suppressed: 6 from 4)