==25918== Memcheck, a memory error detector. ==25918== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==25918== Using LibVEX rev 1854, a library for dynamic binary translation. ==25918== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==25918== Using valgrind-3.3.1, a dynamic binary instrumentation framework. ==25918== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==25918== For more details, rerun with: -v ==25918== ==25918== Invalid write of size 8 ==25918== at 0x4E5F90E: __gmpn_set_str (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x4E324DB: __gmpf_set_str (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x1A4EA1E7C436CF5A: ??? ==25918== by 0x35D5A62422433369: ??? ==25918== by 0xDB0167527AA8558B: ??? ==25918== by 0x42EF81FA0E5DEA0E: ??? ==25918== by 0xAD22BEFDEE49D266: ??? ==25918== by 0x55AA3888336737D0: ??? ==25918== by 0x80E75D1878AC2D41: ??? ==25918== by 0xD029C248B03A8B0: ??? ==25918== by 0x5A9337E7678FDB2B: ??? ==25918== by 0xB5E8BDC48F2537A0: ??? ==25918== Address 0x7ff001000 is not stack'd, malloc'd or (recently) free'd ==25918== ==25918== Process terminating with default action of signal 11 (SIGSEGV) ==25918== Access not within mapped region at address 0x7FF001000 ==25918== at 0x4E5F90E: __gmpn_set_str (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x4E324DB: __gmpf_set_str (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x1A4EA1E7C436CF5A: ??? ==25918== by 0x35D5A62422433369: ??? ==25918== by 0xDB0167527AA8558B: ??? ==25918== by 0x42EF81FA0E5DEA0E: ??? ==25918== by 0xAD22BEFDEE49D266: ??? ==25918== by 0x55AA3888336737D0: ??? ==25918== by 0x80E75D1878AC2D41: ??? ==25918== by 0xD029C248B03A8B0: ??? ==25918== by 0x5A9337E7678FDB2B: ??? ==25918== by 0xB5E8BDC48F2537A0: ??? ==25918== ==25918== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 1) ==25918== malloc/free: in use at exit: 5,059,835 bytes in 7 blocks. ==25918== malloc/free: 183 allocs, 176 frees, 50,610,874 bytes allocated. ==25918== For counts of detected errors, rerun with: -v ==25918== searching for pointers to 7 not-freed blocks. ==25918== checked 2,171,520 bytes. ==25918== ==25918== ==25918== 568 bytes in 1 blocks are still reachable in loss record 1 of 5 ==25918== at 0x4C2267E: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so) ==25918== by 0x50D3CA9: (within /lib64/libc-2.8.so) ==25918== by 0x40090C: main (bug-report.c:22) ==25918== ==25918== ==25918== 415,288 bytes in 2 blocks are definitely lost in loss record 2 of 5 ==25918== at 0x4C2267E: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so) ==25918== by 0x4E30AB8: __gmp_default_allocate (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x4E320BA: __gmpf_init2 (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x4008A1: main (bug-report.c:9) ==25918== ==25918== ==25918== 1,000,037 bytes in 1 blocks are possibly lost in loss record 3 of 5 ==25918== at 0x4C2267E: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so) ==25918== by 0x4E30AB8: __gmp_default_allocate (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x4E31FD0: __gmp_tmp_reentrant_alloc (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x4E32BB5: __gmpf_set_str (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x4E34533: __gmpf_inp_str (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x400922: main (bug-report.c:23) ==25918== ==25918== ==25918== 1,117,558 bytes in 1 blocks are definitely lost in loss record 4 of 5 ==25918== at 0x4C227B1: realloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so) ==25918== by 0x4E30A6B: __gmp_default_reallocate (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x4E344E7: __gmpf_inp_str (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x400922: main (bug-report.c:23) ==25918== ==25918== ==25918== 2,526,384 bytes in 2 blocks are still reachable in loss record 5 of 5 ==25918== at 0x4C2267E: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so) ==25918== by 0x4E30AB8: __gmp_default_allocate (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x4E5F175: __gmpn_set_str (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x4E324DB: __gmpf_set_str (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x4E34533: __gmpf_inp_str (in /usr/lib64/libgmp.so.3.4.2) ==25918== by 0x400922: main (bug-report.c:23) ==25918== ==25918== LEAK SUMMARY: ==25918== definitely lost: 1,532,846 bytes in 3 blocks. ==25918== possibly lost: 1,000,037 bytes in 1 blocks. ==25918== still reachable: 2,526,952 bytes in 3 blocks. ==25918== suppressed: 0 bytes in 0 blocks. Segmentation fault (SIGSEGV)