Advertisement
Pweebs

Untitled

Nov 16th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1. Press Enter To Continue with ModelBigIntegerTest Results
  2.  
  3.  
  4.  
  5. ==29494== Memcheck, a memory error detector
  6. ==29494== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  7. ==29494== Using Valgrind-3.14.0-353a3587bb-20181007X and LibVEX; rerun with -h for copyright info
  8. ==29494== Command: ./ModelBigIntegerTest -v
  9. ==29494==
  10. --29494-- Valgrind options:
  11. --29494-- --leak-check=full
  12. --29494-- -v
  13. --29494-- Contents of /proc/version:
  14. --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
  15. --29494--
  16. --29494-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3-avx
  17. --29494-- Page sizes: currently 4096, max supported 4096
  18. --29494-- Valgrind library directory: /opt/rh/devtoolset-8/root/usr/lib64/valgrind
  19. --29494-- Reading syms from /afs/cats.ucsc.edu/users/t/jolano/cse101/pa3/ModelBigIntegerTest
  20. --29494-- Reading syms from /usr/lib64/ld-2.17.so
  21. --29494-- Considering /usr/lib/debug/.build-id/5c/c1a53b747a7e4d21198723c2b633e54f3c06d9.debug ..
  22. --29494-- .. build-id is valid
  23. --29494-- Reading syms from /opt/rh/devtoolset-8/root/usr/lib64/valgrind/memcheck-amd64-linux
  24. --29494-- object doesn't have a symbol table
  25. --29494-- object doesn't have a dynamic symbol table
  26. --29494-- Scheduler: using generic scheduler lock implementation.
  27. --29494-- Reading suppressions file: /opt/rh/devtoolset-8/root/usr/lib64/valgrind/default.supp
  28. ==29494== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-29494-by-jolano-on-unix2.lt.ucsc.edu
  29. ==29494== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-29494-by-jolano-on-unix2.lt.ucsc.edu
  30. ==29494== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-29494-by-jolano-on-unix2.lt.ucsc.edu
  31. ==29494==
  32. ==29494== TO CONTROL THIS PROCESS USING vgdb (which you probably
  33. ==29494== don't want to do, unless you know exactly what you're doing,
  34. ==29494== or are doing some strange experiment):
  35. ==29494== /opt/rh/devtoolset-8/root/usr/lib64/valgrind/../../bin/vgdb --pid=29494 ...command...
  36. ==29494==
  37. ==29494== TO DEBUG THIS PROCESS USING GDB: start GDB like this
  38. ==29494== /path/to/gdb ./ModelBigIntegerTest
  39. ==29494== and then give GDB the following command
  40. ==29494== target remote | /opt/rh/devtoolset-8/root/usr/lib64/valgrind/../../bin/vgdb --pid=29494
  41. ==29494== --pid is optional if only one valgrind process is running
  42. ==29494==
  43. --29494-- REDIR: 0x4019df0 (ld-linux-x86-64.so.2:strlen) redirected to 0x580c66c5 (???)
  44. --29494-- REDIR: 0x4019bc0 (ld-linux-x86-64.so.2:index) redirected to 0x580c66df (???)
  45. --29494-- Reading syms from /opt/rh/devtoolset-8/root/usr/lib64/valgrind/vgpreload_core-amd64-linux.so
  46. --29494-- Reading syms from /opt/rh/devtoolset-8/root/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
  47. ==29494== WARNING: new redirection conflicts with existing -- ignoring it
  48. --29494-- old: 0x04019df0 (strlen ) R-> (0000.0) 0x580c66c5 ???
  49. --29494-- new: 0x04019df0 (strlen ) R-> (2007.0) 0x04c2d0a0 strlen
  50. --29494-- REDIR: 0x4019d70 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c2e1f0 (strcmp)
  51. --29494-- REDIR: 0x401aa30 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c31da0 (mempcpy)
  52. --29494-- Reading syms from /usr/lib64/libc-2.17.so
  53. --29494-- Considering /usr/lib/debug/.build-id/39/8944d32cf16a67af51067a326e6c0cc14f90ed.debug ..
  54. --29494-- .. build-id is valid
  55. --29494-- REDIR: 0x4ec70e0 (libc.so.6:strcasecmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  56. --29494-- REDIR: 0x4ec3e60 (libc.so.6:strnlen) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  57. --29494-- REDIR: 0x4ec93b0 (libc.so.6:strncasecmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  58. --29494-- REDIR: 0x4ec68c0 (libc.so.6:memset) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  59. --29494-- REDIR: 0x4ec6870 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  60. --29494-- REDIR: 0x4ec5850 (libc.so.6:__GI_strrchr) redirected to 0x4c2ca60 (__GI_strrchr)
  61. --29494-- REDIR: 0x4ec22e0 (libc.so.6:strcmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  62. --29494-- REDIR: 0x4f75d40 (libc.so.6:__strcmp_sse42) redirected to 0x4c2e1a0 (__strcmp_sse42)
  63.  
  64.  
  65. --29494-- REDIR: 0x4ecd370 (libc.so.6:strchrnul) redirected to 0x4c318c0 (strchrnul)
  66. --29494-- REDIR: 0x4ec6a90 (libc.so.6:__GI_mempcpy) redirected to 0x4c31ad0 (__GI_mempcpy)
  67. testing 0
  68. --29494-- REDIR: 0x4ebceb0 (libc.so.6:free) redirected to 0x4c2aed6 (free)
  69. --29494-- REDIR: 0x4ebca90 (libc.so.6:malloc) redirected to 0x4c29ddc (malloc)
  70. --29494-- REDIR: 0x4ec3d30 (libc.so.6:strlen) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  71. --29494-- REDIR: 0x4fa6630 (libc.so.6:__strlen_sse2_pminub) redirected to 0x4c2cfe0 (strlen)
  72. ==29494== Invalid read of size 8
  73. ==29494== at 0x401D91: makeZero (BigInteger.c:112)
  74. ==29494== by 0x401B08: freeBigInteger (BigInteger.c:32)
  75. ==29494== by 0x4018EC: main (ModelBigIntegerTest.c:356)
  76. ==29494== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  77. ==29494==
  78. ==29494== Warning: client switching stacks? SP change: 0x1ffeffeba8 --> 0x16856acb51a0e4cc
  79. ==29494== to suppress, use: --max-stackframe=1622820524795164964 or greater
  80. ==29494== Jump to the invalid address stated on the next line
  81. ==29494== at 0x16856ACB51A0E4CC: ???
  82. ==29494== Address 0x16856acb51a0e4cc is not stack'd, malloc'd or (recently) free'd
  83. ==29494==
  84. ==29494==
  85. ==29494== Process terminating with default action of signal 11 (SIGSEGV)
  86. ==29494== Bad permissions for mapped region at address 0x16856ACB51A0E4CC
  87. ==29494== at 0x16856ACB51A0E4CC: ???
  88. ==29494== Invalid write of size 8
  89. ==29494== at 0x4A246B0: _vgnU_freeres (vg_preloaded.c:59)
  90. ==29494== Address 0x16856acb51a0e4c4 is not stack'd, malloc'd or (recently) free'd
  91. ==29494==
  92. ==29494==
  93. ==29494== Process terminating with default action of signal 11 (SIGSEGV)
  94. ==29494== General Protection Fault
  95. ==29494== at 0x4A246B0: _vgnU_freeres (vg_preloaded.c:59)
  96. ==29494==
  97. ==29494== HEAP SUMMARY:
  98. ==29494== in use at exit: 0 bytes in 0 blocks
  99. ==29494== total heap usage: 10 allocs, 10 frees, 240 bytes allocated
  100. ==29494==
  101. ==29494== All heap blocks were freed -- no leaks are possible
  102. ==29494==
  103. ==29494== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
  104. ==29494==
  105. ==29494== 1 errors in context 1 of 3:
  106. ==29494== Invalid write of size 8
  107. ==29494== at 0x4A246B0: _vgnU_freeres (vg_preloaded.c:59)
  108. ==29494== Address 0x16856acb51a0e4c4 is not stack'd, malloc'd or (recently) free'd
  109. ==29494==
  110. ==29494==
  111. ==29494== 1 errors in context 2 of 3:
  112. ==29494== Jump to the invalid address stated on the next line
  113. ==29494== at 0x16856ACB51A0E4CC: ???
  114. ==29494== Address 0x16856acb51a0e4cc is not stack'd, malloc'd or (recently) free'd
  115. ==29494==
  116. ==29494==
  117. ==29494== 1 errors in context 3 of 3:
  118. ==29494== Invalid read of size 8
  119. ==29494== at 0x401D91: makeZero (BigInteger.c:112)
  120. ==29494== by 0x401B08: freeBigInteger (BigInteger.c:32)
  121. ==29494== by 0x4018EC: main (ModelBigIntegerTest.c:356)
  122. ==29494== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  123. ==29494==
  124. ==29494== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
  125. ./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