Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 14:17 $ valgrind --tool=memcheck ./main
- ==37504== Memcheck, a memory error detector
- ==37504== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
- ==37504== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
- ==37504== Command: ./main
- ==37504==
- Server or Client? (0 = server, 1 = client): 1
- Trying to Malloc
- socket: 6
- ==37504== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
- ==37504== at 0x560496A: send (send.c:28)
- ==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)
- ==37504== by 0x1186EA: Node::connectClientSocket(unsigned short) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x10CC43: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== Address 0x1ffefffe66 is on thread 1's stack
- ==37504== in frame #2, created by Node::connectClientSocket(unsigned short) (???:)
- ==37504==
- connecting queuepairs, socket: 6
- REGISTERING: 0x1ffefffea0, 28, 0
- REGISTERING: 0x66c1930, 28, 3
- ==37504== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
- ==37504== at 0x560496A: send (send.c:28)
- ==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)
- ==37504== by 0x118B9C: Node::sendAddress(defs::SendGlobalAddr, defs::IMMDATA, Connection&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x10CCB2: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== Address 0x1ffefffd6c is on thread 1's stack
- ==37504== in frame #2, created by Node::sendAddress(defs::SendGlobalAddr, defs::IMMDATA, Connection&) (???:)
- ==37504==
- closing socket: 6
- REGISTERING: 0x1ffefffe70, 6, 0
- REGISTERING: 0x66c1a70, 6, 3
- ==37504== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
- ==37504== at 0x560496A: send (send.c:28)
- ==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)
- ==37504== by 0x1192EA: Node::sendLock(defs::Lock, defs::IMMDATA, Connection&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x1189C1: Node::closeClientSocket(Connection&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x10CCD6: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== Address 0x1ffefffd3c is on thread 1's stack
- ==37504== in frame #2, created by Node::sendLock(defs::Lock, defs::IMMDATA, Connection&) (???:)
- ==37504==
- Trying to send File
- socket: 7
- ==37504== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
- ==37504== at 0x560496A: send (send.c:28)
- ==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)
- ==37504== by 0x1186EA: Node::connectClientSocket(unsigned short) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x11B948: Node::FprintF(MaFile) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x10CD52: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== Address 0x1ffefffdf6 is on thread 1's stack
- ==37504== in frame #2, created by Node::connectClientSocket(unsigned short) (???:)
- ==37504==
- connecting queuepairs, socket: 7
- filesize: 18912
- REGISTERING: 0x1ffefffcd0, 900, 3
- REGISTERING: 0x66e1ee0, 20, 3
- ==37504== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
- ==37504== at 0x560496A: send (send.c:28)
- ==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)
- ==37504== by 0x119A99: Node::sendFile(Connection&, MaFile&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x11B95F: Node::FprintF(MaFile) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x10CD52: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== Address 0x1ffefffcec is on thread 1's stack
- ==37504== in frame #2, created by Node::sendFile(Connection&, MaFile&) (???:)
- ==37504==
- REGISTERING: 0x1ffefffd10, 900, 3
- ==37504== Syscall param pread64(buf) points to unaddressable byte(s)
- ==37504== at 0x5604F64: pread (pread64.c:29)
- ==37504== by 0x10F617: MaFile::read_block(unsigned long, unsigned long, char*) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x119C5A: Node::sendFile(Connection&, MaFile&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x11B95F: Node::FprintF(MaFile) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x10CD52: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== Address 0x66e1fa1 is 0 bytes after a block of size 1 alloc'd
- ==37504== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==37504== by 0x119B8D: Node::sendFile(Connection&, MaFile&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x11B95F: Node::FprintF(MaFile) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x10CD52: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504==
- size: 900, total bytes: 900
- --37504-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
- --37504-- si_code=128; Faulting address: 0x0; sp: 0x1002cade30
- valgrind: the 'impossible' happened:
- Killed by fatal signal
- host stacktrace:
- ==37504== at 0x58053139: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
- ==37504== by 0x5800BA84: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
- ==37504== by 0x5800BC66: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
- ==37504== by 0x5809F785: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
- ==37504== by 0x580AED50: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
- sched status:
- running_tid=1
- Thread 1: status = VgTs_Runnable (lwpid 37504)
- ==37504== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==37504== by 0x50E38EF: __cxa_allocate_exception (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25)
- ==37504== by 0x111178: ibv::internal::checkStatus(char const*, int) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x122C48: ibv::queuepair::QueuePair::postSend(ibv::workrequest::SendWr&, ibv::workrequest::SendWr*&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x1210B2: rdma::QueuePair::postWorkRequest(ibv::workrequest::SendWr&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x119DC2: Node::sendFile(Connection&, MaFile&) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x11B95F: Node::FprintF(MaFile) (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- ==37504== by 0x10CD52: main (in /home/proebstl/masterthesis-efficient-distributed-memory-management/build/main)
- Note: see also the FAQ in the source distribution.
- It contains workarounds to several common problems.
- In particular, if Valgrind aborted or crashed after
- identifying problems in your program, there's a good chance
- that fixing those problems will prevent Valgrind aborting or
- crashing, especially if it happened in m_mallocfree.c.
- If that doesn't help, please report this bug to: www.valgrind.org
- In the bug report, send all the above text, the valgrind
- version, and what OS and version you are using. Thanks.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement