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.
Original issue reported on code.google.com by Astronomix@gmail.com on 7 Feb 2014 at 10:00
Original issue reported on code.google.com by
Astronomix@gmail.com
on 7 Feb 2014 at 10:00Attachments: