Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.32 KB | None | 0 0
  1. 14:17 $ valgrind --tool=memcheck ./main
  2. ==37504== Memcheck, a memory error detector
  3. ==37504== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  4. ==37504== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
  5. ==37504== Command: ./main
  6. ==37504==
  7. Server or Client? (0 = server, 1 = client): 1
  8. Trying to Malloc
  9. socket: 6
  10. ==37504== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
  11. ==37504==    at 0x560496A: send (send.c:28)
  12. ==37504==    by 0x11D914: l5::util::tcp::write(l5::util::Socket const&, void const*, unsigned long) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  13. ==37504==    by 0x1186EA: Node::connectClientSocket(unsigned short) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  14. ==37504==    by 0x10CC43: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  15. ==37504==  Address 0x1ffefffe66 is on thread 1's stack
  16. ==37504==  in frame #2, created by Node::connectClientSocket(unsigned short) (???:)
  17. ==37504==
  18. connecting queuepairs, socket: 6
  19. REGISTERING: 0x1ffefffea0, 28, 0
  20. REGISTERING: 0x66c1930, 28, 3
  21. ==37504== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
  22. ==37504==    at 0x560496A: send (send.c:28)
  23. ==37504==    by 0x11D914: l5::util::tcp::write(l5::util::Socket const&, void const*, unsigned long) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  24. ==37504==    by 0x118B9C: Node::sendAddress(defs::SendGlobalAddr, defs::IMMDATA, Connection&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  25. ==37504==    by 0x10CCB2: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  26. ==37504==  Address 0x1ffefffd6c is on thread 1's stack
  27. ==37504==  in frame #2, created by Node::sendAddress(defs::SendGlobalAddr, defs::IMMDATA, Connection&) (???:)
  28. ==37504==
  29. closing socket: 6
  30. REGISTERING: 0x1ffefffe70, 6, 0
  31. REGISTERING: 0x66c1a70, 6, 3
  32. ==37504== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
  33. ==37504==    at 0x560496A: send (send.c:28)
  34. ==37504==    by 0x11D914: l5::util::tcp::write(l5::util::Socket const&, void const*, unsigned long) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  35. ==37504==    by 0x1192EA: Node::sendLock(defs::Lock, defs::IMMDATA, Connection&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  36. ==37504==    by 0x1189C1: Node::closeClientSocket(Connection&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  37. ==37504==    by 0x10CCD6: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  38. ==37504==  Address 0x1ffefffd3c is on thread 1's stack
  39. ==37504==  in frame #2, created by Node::sendLock(defs::Lock, defs::IMMDATA, Connection&) (???:)
  40. ==37504==
  41. Trying to send File
  42. socket: 7
  43. ==37504== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
  44. ==37504==    at 0x560496A: send (send.c:28)
  45. ==37504==    by 0x11D914: l5::util::tcp::write(l5::util::Socket const&, void const*, unsigned long) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  46. ==37504==    by 0x1186EA: Node::connectClientSocket(unsigned short) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  47. ==37504==    by 0x11B948: Node::FprintF(MaFile) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  48. ==37504==    by 0x10CD52: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  49. ==37504==  Address 0x1ffefffdf6 is on thread 1's stack
  50. ==37504==  in frame #2, created by Node::connectClientSocket(unsigned short) (???:)
  51. ==37504==
  52. connecting queuepairs, socket: 7
  53. filesize: 18912
  54. REGISTERING: 0x1ffefffcd0, 900, 3
  55. REGISTERING: 0x66e1ee0, 20, 3
  56. ==37504== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
  57. ==37504==    at 0x560496A: send (send.c:28)
  58. ==37504==    by 0x11D914: l5::util::tcp::write(l5::util::Socket const&, void const*, unsigned long) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  59. ==37504==    by 0x119A99: Node::sendFile(Connection&, MaFile&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  60. ==37504==    by 0x11B95F: Node::FprintF(MaFile) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  61. ==37504==    by 0x10CD52: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  62. ==37504==  Address 0x1ffefffcec is on thread 1's stack
  63. ==37504==  in frame #2, created by Node::sendFile(Connection&, MaFile&) (???:)
  64. ==37504==
  65. REGISTERING: 0x1ffefffd10, 900, 3
  66. ==37504== Syscall param pread64(buf) points to unaddressable byte(s)
  67. ==37504==    at 0x5604F64: pread (pread64.c:29)
  68. ==37504==    by 0x10F617: MaFile::read_block(unsigned long, unsigned long, char*) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  69. ==37504==    by 0x119C5A: Node::sendFile(Connection&, MaFile&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  70. ==37504==    by 0x11B95F: Node::FprintF(MaFile) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  71. ==37504==    by 0x10CD52: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  72. ==37504==  Address 0x66e1fa1 is 0 bytes after a block of size 1 alloc'd
  73. ==37504==    at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  74. ==37504==    by 0x119B8D: Node::sendFile(Connection&, MaFile&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  75. ==37504==    by 0x11B95F: Node::FprintF(MaFile) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  76. ==37504==    by 0x10CD52: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  77. ==37504==
  78. size: 900, total bytes: 900
  79. --37504-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
  80. --37504-- si_code=128;  Faulting address: 0x0;  sp: 0x1002cade30
  81.  
  82. valgrind: the 'impossible' happened:
  83.   Killed by fatal signal
  84.  
  85. host stacktrace:
  86. ==37504==    at 0x58053139: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
  87. ==37504==    by 0x5800BA84: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
  88. ==37504==    by 0x5800BC66: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
  89. ==37504==    by 0x5809F785: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
  90. ==37504==    by 0x580AED50: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
  91.  
  92. sched status:
  93.  running_tid=1
  94.  
  95. Thread 1: status = VgTs_Runnable (lwpid 37504)
  96. ==37504==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  97. ==37504==    by 0x50E38EF: __cxa_allocate_exception (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25)
  98. ==37504==    by 0x111178: ibv::internal::checkStatus(char const*, int) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  99. ==37504==    by 0x122C48: ibv::queuepair::QueuePair::postSend(ibv::workrequest::SendWr&, ibv::workrequest::SendWr*&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  100. ==37504==    by 0x1210B2: rdma::QueuePair::postWorkRequest(ibv::workrequest::SendWr&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  101. ==37504==    by 0x119DC2: Node::sendFile(Connection&, MaFile&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  102. ==37504==    by 0x11B95F: Node::FprintF(MaFile) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  103. ==37504==    by 0x10CD52: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
  104.  
  105.  
  106. Note: see also the FAQ in the source distribution.
  107. It contains workarounds to several common problems.
  108. In particular, if Valgrind aborted or crashed after
  109. identifying problems in your program, there's a good chance
  110. that fixing those problems will prevent Valgrind aborting or
  111. crashing, especially if it happened in m_mallocfree.c.
  112.  
  113. If that doesn't help, please report this bug to: www.valgrind.org
  114.  
  115. In the bug report, send all the above text, the valgrind
  116. version, and what OS and version you are using.  Thanks.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement