==13006== Memcheck, a memory error detector
==13006== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==13006== Using Valgrind-3.7.0.SVN and LibVEX; rerun with -h for copyright info
==13006== Command: ./ftrace
==13006==
==13006== Conditional jump or move depends on uninitialised value(s)
==13006== at 0x804EDD0: ViewPlane::set_sampler(Sampler*) (ViewPlane.cpp:33)
==13006== by 0x80495B4: main (main.cpp:7)
==13006== Uninitialised value was created by a stack allocation
==13006== at 0x8049574: main (main.cpp:5)
==13006==
==13006== Conditional jump or move depends on uninitialised value(s)
==13006== at 0x804EDDA: ViewPlane::set_sampler(Sampler*) (ViewPlane.cpp:34)
==13006== by 0x80495B4: main (main.cpp:7)
==13006== Uninitialised value was created by a stack allocation
==13006== at 0x8049574: main (main.cpp:5)
==13006==
==13006== Use of uninitialised value of size 4
==13006== at 0x804EDE2: ViewPlane::set_sampler(Sampler*) (ViewPlane.cpp:34)
==13006== by 0x80495B4: main (main.cpp:7)
==13006== Uninitialised value was created by a stack allocation
==13006== at 0x8049574: main (main.cpp:5)
==13006==
==13006== Invalid read of size 4
==13006== at 0x804EDE7: ViewPlane::set_sampler(Sampler*) (ViewPlane.cpp:34)
==13006== by 0x80495B4: main (main.cpp:7)
==13006== Address 0x4 is not stack'd, malloc'd or (recently) free'd
==13006==
==13006==
==13006== Process terminating with default action of signal 11 (SIGSEGV)
==13006== Access not within mapped region at address 0x4
==13006== at 0x804EDE7: ViewPlane::set_sampler(Sampler*) (ViewPlane.cpp:34)
==13006== by 0x80495B4: main (main.cpp:7)
==13006== If you believe this happened as a result of a stack
==13006== overflow in your program's main thread (unlikely but
==13006== possible), you can try to increase the size of the
==13006== main thread stack using the --main-stacksize= flag.
==13006== The main thread stack size used in this run was 8388608.
==13006==
==13006== HEAP SUMMARY:
==13006== in use at exit: 1,728 bytes in 3 blocks
==13006== total heap usage: 4 allocs, 1 frees, 1,732 bytes allocated
==13006==
==13006== 68 bytes in 1 blocks are still reachable in loss record 1 of 3
==13006== at 0x402745D: operator new(unsigned int) (vg_replace_malloc.c:255)
==13006== by 0x804958E: main (main.cpp:7)
==13006==
==13006== 332 bytes in 1 blocks are still reachable in loss record 2 of 3
==13006== at 0x402745D: operator new(unsigned int) (vg_replace_malloc.c:255)
==13006== by 0x804D153: __gnu_cxx::new_allocator<int>::allocate(unsigned int, void const*) (new_allocator.h:89)
==13006== by 0x804CC1B: std::_Vector_base<int, std::allocator<int> >::_M_allocate(unsigned int) (in /home/terry/Dev/FTrace-noGUI/ftrace)
==13006== by 0x804C1BC: int* std::vector<int, std::allocator<int> >::_M_allocate_and_copy<int*>(unsigned int, int*, int*) (stl_vector.h:967)
==13006== by 0x804B944: std::vector<int, std::allocator<int> >::reserve(unsigned int) (vector.tcc:74)
==13006== by 0x804AF6F: Sampler::setup_shuffled_indices() (Sampler.cpp:32)
==13006== by 0x804AD1A: Sampler::Sampler(int) (Sampler.cpp:18)
==13006== by 0x804A726: Regular::Regular(int) (Regular.cpp:11)
==13006== by 0x80495A2: main (main.cpp:7)
==13006==
==13006== 1,328 bytes in 1 blocks are still reachable in loss record 3 of 3
==13006== at 0x402745D: operator new(unsigned int) (vg_replace_malloc.c:255)
==13006== by 0x80493B1: __gnu_cxx::new_allocator<Point2D>::allocate(unsigned int, void const*) (new_allocator.h:89)
==13006== by 0x804923B: std::_Vector_base<Point2D, std::allocator<Point2D> >::_M_allocate(unsigned int) (in /home/terry/Dev/FTrace-noGUI/ftrace)
==13006== by 0x804BF0C: Point2D* std::vector<Point2D, std::allocator<Point2D> >::_M_allocate_and_copy<Point2D*>(unsigned int, Point2D*, Point2D*) (stl_vector.h:967)
==13006== by 0x804B6E4: std::vector<Point2D, std::allocator<Point2D> >::reserve(unsigned int) (vector.tcc:74)
==13006== by 0x804AD0F: Sampler::Sampler(int) (Sampler.cpp:17)
==13006== by 0x804A726: Regular::Regular(int) (Regular.cpp:11)
==13006== by 0x80495A2: main (main.cpp:7)
==13006==
==13006== LEAK SUMMARY:
==13006== definitely lost: 0 bytes in 0 blocks
==13006== indirectly lost: 0 bytes in 0 blocks
==13006== possibly lost: 0 bytes in 0 blocks
==13006== still reachable: 1,728 bytes in 3 blocks
==13006== suppressed: 0 bytes in 0 blocks
==13006==
==13006== For counts of detected and suppressed errors, rerun with: -v
==13006== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 17 from 6)
Segmentation fault
|