Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Press Enter To Continue with ModelBigIntegerTest Results
- ==29494== Memcheck, a memory error detector
- ==29494== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
- ==29494== Using Valgrind-3.14.0-353a3587bb-20181007X and LibVEX; rerun with -h for copyright info
- ==29494== Command: ./ModelBigIntegerTest -v
- ==29494==
- --29494-- Valgrind options:
- --29494-- --leak-check=full
- --29494-- -v
- --29494-- Contents of /proc/version:
- --29494-- Linux version 3.10.0-1062.1.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Fri Sep 13 22:55:44 UTC 2019
- --29494--
- --29494-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3-avx
- --29494-- Page sizes: currently 4096, max supported 4096
- --29494-- Valgrind library directory: /opt/rh/devtoolset-8/root/usr/lib64/valgrind
- --29494-- Reading syms from /afs/cats.ucsc.edu/users/t/jolano/cse101/pa3/ModelBigIntegerTest
- --29494-- Reading syms from /usr/lib64/ld-2.17.so
- --29494-- Considering /usr/lib/debug/.build-id/5c/c1a53b747a7e4d21198723c2b633e54f3c06d9.debug ..
- --29494-- .. build-id is valid
- --29494-- Reading syms from /opt/rh/devtoolset-8/root/usr/lib64/valgrind/memcheck-amd64-linux
- --29494-- object doesn't have a symbol table
- --29494-- object doesn't have a dynamic symbol table
- --29494-- Scheduler: using generic scheduler lock implementation.
- --29494-- Reading suppressions file: /opt/rh/devtoolset-8/root/usr/lib64/valgrind/default.supp
- ==29494== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-29494-by-jolano-on-unix2.lt.ucsc.edu
- ==29494== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-29494-by-jolano-on-unix2.lt.ucsc.edu
- ==29494== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-29494-by-jolano-on-unix2.lt.ucsc.edu
- ==29494==
- ==29494== TO CONTROL THIS PROCESS USING vgdb (which you probably
- ==29494== don't want to do, unless you know exactly what you're doing,
- ==29494== or are doing some strange experiment):
- ==29494== /opt/rh/devtoolset-8/root/usr/lib64/valgrind/../../bin/vgdb --pid=29494 ...command...
- ==29494==
- ==29494== TO DEBUG THIS PROCESS USING GDB: start GDB like this
- ==29494== /path/to/gdb ./ModelBigIntegerTest
- ==29494== and then give GDB the following command
- ==29494== target remote | /opt/rh/devtoolset-8/root/usr/lib64/valgrind/../../bin/vgdb --pid=29494
- ==29494== --pid is optional if only one valgrind process is running
- ==29494==
- --29494-- REDIR: 0x4019df0 (ld-linux-x86-64.so.2:strlen) redirected to 0x580c66c5 (???)
- --29494-- REDIR: 0x4019bc0 (ld-linux-x86-64.so.2:index) redirected to 0x580c66df (???)
- --29494-- Reading syms from /opt/rh/devtoolset-8/root/usr/lib64/valgrind/vgpreload_core-amd64-linux.so
- --29494-- Reading syms from /opt/rh/devtoolset-8/root/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
- ==29494== WARNING: new redirection conflicts with existing -- ignoring it
- --29494-- old: 0x04019df0 (strlen ) R-> (0000.0) 0x580c66c5 ???
- --29494-- new: 0x04019df0 (strlen ) R-> (2007.0) 0x04c2d0a0 strlen
- --29494-- REDIR: 0x4019d70 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c2e1f0 (strcmp)
- --29494-- REDIR: 0x401aa30 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c31da0 (mempcpy)
- --29494-- Reading syms from /usr/lib64/libc-2.17.so
- --29494-- Considering /usr/lib/debug/.build-id/39/8944d32cf16a67af51067a326e6c0cc14f90ed.debug ..
- --29494-- .. build-id is valid
- --29494-- REDIR: 0x4ec70e0 (libc.so.6:strcasecmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
- --29494-- REDIR: 0x4ec3e60 (libc.so.6:strnlen) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
- --29494-- REDIR: 0x4ec93b0 (libc.so.6:strncasecmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
- --29494-- REDIR: 0x4ec68c0 (libc.so.6:memset) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
- --29494-- REDIR: 0x4ec6870 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
- --29494-- REDIR: 0x4ec5850 (libc.so.6:__GI_strrchr) redirected to 0x4c2ca60 (__GI_strrchr)
- --29494-- REDIR: 0x4ec22e0 (libc.so.6:strcmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
- --29494-- REDIR: 0x4f75d40 (libc.so.6:__strcmp_sse42) redirected to 0x4c2e1a0 (__strcmp_sse42)
- --29494-- REDIR: 0x4ecd370 (libc.so.6:strchrnul) redirected to 0x4c318c0 (strchrnul)
- --29494-- REDIR: 0x4ec6a90 (libc.so.6:__GI_mempcpy) redirected to 0x4c31ad0 (__GI_mempcpy)
- testing 0
- --29494-- REDIR: 0x4ebceb0 (libc.so.6:free) redirected to 0x4c2aed6 (free)
- --29494-- REDIR: 0x4ebca90 (libc.so.6:malloc) redirected to 0x4c29ddc (malloc)
- --29494-- REDIR: 0x4ec3d30 (libc.so.6:strlen) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
- --29494-- REDIR: 0x4fa6630 (libc.so.6:__strlen_sse2_pminub) redirected to 0x4c2cfe0 (strlen)
- ==29494== Invalid read of size 8
- ==29494== at 0x401D91: makeZero (BigInteger.c:112)
- ==29494== by 0x401B08: freeBigInteger (BigInteger.c:32)
- ==29494== by 0x4018EC: main (ModelBigIntegerTest.c:356)
- ==29494== Address 0x0 is not stack'd, malloc'd or (recently) free'd
- ==29494==
- ==29494== Warning: client switching stacks? SP change: 0x1ffeffeba8 --> 0x16856acb51a0e4cc
- ==29494== to suppress, use: --max-stackframe=1622820524795164964 or greater
- ==29494== Jump to the invalid address stated on the next line
- ==29494== at 0x16856ACB51A0E4CC: ???
- ==29494== Address 0x16856acb51a0e4cc is not stack'd, malloc'd or (recently) free'd
- ==29494==
- ==29494==
- ==29494== Process terminating with default action of signal 11 (SIGSEGV)
- ==29494== Bad permissions for mapped region at address 0x16856ACB51A0E4CC
- ==29494== at 0x16856ACB51A0E4CC: ???
- ==29494== Invalid write of size 8
- ==29494== at 0x4A246B0: _vgnU_freeres (vg_preloaded.c:59)
- ==29494== Address 0x16856acb51a0e4c4 is not stack'd, malloc'd or (recently) free'd
- ==29494==
- ==29494==
- ==29494== Process terminating with default action of signal 11 (SIGSEGV)
- ==29494== General Protection Fault
- ==29494== at 0x4A246B0: _vgnU_freeres (vg_preloaded.c:59)
- ==29494==
- ==29494== HEAP SUMMARY:
- ==29494== in use at exit: 0 bytes in 0 blocks
- ==29494== total heap usage: 10 allocs, 10 frees, 240 bytes allocated
- ==29494==
- ==29494== All heap blocks were freed -- no leaks are possible
- ==29494==
- ==29494== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
- ==29494==
- ==29494== 1 errors in context 1 of 3:
- ==29494== Invalid write of size 8
- ==29494== at 0x4A246B0: _vgnU_freeres (vg_preloaded.c:59)
- ==29494== Address 0x16856acb51a0e4c4 is not stack'd, malloc'd or (recently) free'd
- ==29494==
- ==29494==
- ==29494== 1 errors in context 2 of 3:
- ==29494== Jump to the invalid address stated on the next line
- ==29494== at 0x16856ACB51A0E4CC: ???
- ==29494== Address 0x16856acb51a0e4cc is not stack'd, malloc'd or (recently) free'd
- ==29494==
- ==29494==
- ==29494== 1 errors in context 3 of 3:
- ==29494== Invalid read of size 8
- ==29494== at 0x401D91: makeZero (BigInteger.c:112)
- ==29494== by 0x401B08: freeBigInteger (BigInteger.c:32)
- ==29494== by 0x4018EC: main (ModelBigIntegerTest.c:356)
- ==29494== Address 0x0 is not stack'd, malloc'd or (recently) free'd
- ==29494==
- ==29494== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
- ./pa3-bunit-check.sh: line 28: 29493 Segmentation fault timeout $TIME valgrind --leak-check=full -v ./ModelBigIntegerTest -v
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement