V0idk / dioSTL

clear inplementation
1 stars 0 forks source link

[未知原因] Conditional jump or move depends on uninitialised value #2

Closed V0idk closed 5 years ago

V0idk commented 5 years ago

==13609== Conditional jump or move depends on uninitialised value(s) ==13609== at 0x410A42: mmm::deque<int, mmm::allocator >::push_back(int const&) (deque.h:319) ==13609== by 0x41C166: mmm::deque<int, mmm::allocator >::deque_aux(unsigned long, int const&, mmm::integral_constant<bool, true>) (deque.h:334) ==13609== by 0x40F87F: mmm::deque<int, mmm::allocator >::deque(int, int) (deque.h:178) ==13609== by 0x40DA57: main (test.cc:1074) ==13609== Uninitialised value was created by a heap allocation ==13609== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==13609== by 0x42DFC5: mmm::alloc::chunk_alloc(unsigned long, unsigned long&) (alloc.cc:105) ==13609== by 0x42DCD0: mmm::alloc::refill(unsigned long) (alloc.cc:50) ==13609== by 0x42DC94: mmm::alloc::allocate(unsigned long) (alloc.cc:27) ==13609== by 0x417453: mmm::allocator::allocate(unsigned long) (allocator.h:35) ==13609== by 0x41C1CF: mmm::deque<int, mmm::allocator >::get_new_map(unsigned long) (deque.h:246) ==13609== by 0x41035A: mmm::deque<int, mmm::allocator >::deque() (deque.h:254) ==13609== by 0x40F86E: mmm::deque<int, mmm::allocator >::deque(int, int) (deque.h:177) ==13609== by 0x40DA57: main (test.cc:1074)