RTCpp non-trivial copy
Originally reported on Google Code with ID 500 Owned by @ahmedvc
Inside the attached folder, run
make valgrind ./exe_assignment
I get some memory errors, starting with
==1691== Source and destination overlap in memcpy(0xfff000560, 0xfff000560, 8) ==1691== at 0x4C2BCC3: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1691== by 0x401C42: void copyObject<A>(A_, A_, unsigned int) (assignment_Model.h:132) ==1691== by 0x401B84: B::internalCopy(B&) (B.cpp:166) ==1691== by 0x4016C4: B::B(B&) (B.cpp:71) ==1691== by 0x401996: B::main(int, char**) (B.cpp:138) ==1691== by 0x401C64: main (assignment_Main.cpp:7)
I think this might be due to the memcpy used in internalCopy.
Reported by @Databean on 2014-02-07 22:00:23
- Attachment: cppAssignment.tar.gz
Reported by @umple on 2014-02-13 20:55:36
- Owner changed: @ahmedvc
- Labels added: Component-SemanticsAndGen, cpp, Diffic-Med