Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==2207== Invalid write of size 4
- ==2207== at 0x4F40E31: std::istreambuf_iterator<char, std::char_traits<char> > std::num_get<char, std::istreambuf_iterator<char, std::char_traits<char> > >::_M_extract_int<unsigned int>(std::istreambuf_iterator<char, std::char_traits<char> >, std::istreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, unsigned int&) const (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
- ==2207== by 0x4F41250: std::num_get<char, std::istreambuf_iterator<char, std::char_traits<char> > >::do_get(std::istreambuf_iterator<char, std::char_traits<char> >, std::istreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, unsigned int&) const (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
- ==2207== by 0x4F3279E: std::istream& std::istream::_M_extract<unsigned int>(unsigned int&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
- ==2207== by 0x4020AE: main (in /home/fernando/Documents/Projetos/Cpp/manipulacao_basica_de_arquivos/projeto)
- ==2207== Address 0x0 is not stack'd, malloc'd or (recently) free'd
- ==2207==
- ==2207==
- ==2207== Process terminating with default action of signal 11 (SIGSEGV)
- ==2207== Access not within mapped region at address 0x0
- ==2207== at 0x4F40E31: std::istreambuf_iterator<char, std::char_traits<char> > std::num_get<char, std::istreambuf_iterator<char, std::char_traits<char> > >::_M_extract_int<unsigned int>(std::istreambuf_iterator<char, std::char_traits<char> >, std::istreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, unsigned int&) const (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
- ==2207== by 0x4F41250: std::num_get<char, std::istreambuf_iterator<char, std::char_traits<char> > >::do_get(std::istreambuf_iterator<char, std::char_traits<char> >, std::istreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, unsigned int&) const (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
- ==2207== by 0x4F3279E: std::istream& std::istream::_M_extract<unsigned int>(unsigned int&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
- ==2207== by 0x4020AE: main (in /home/fernando/Documents/Projetos/Cpp/manipulacao_basica_de_arquivos/projeto)
- ==2207== If you believe this happened as a result of a stack
- ==2207== overflow in your program's main thread (unlikely but
- ==2207== possible), you can try to increase the size of the
- ==2207== main thread stack using the --main-stacksize= flag.
- ==2207== The main thread stack size used in this run was 8388608.
- ==2207==
- ==2207== HEAP SUMMARY:
- ==2207== in use at exit: 81,480 bytes in 4 blocks
- ==2207== total heap usage: 6 allocs, 2 frees, 83,528 bytes allocated
- ==2207==
- ==2207== LEAK SUMMARY:
- ==2207== definitely lost: 0 bytes in 0 blocks
- ==2207== indirectly lost: 0 bytes in 0 blocks
- ==2207== possibly lost: 0 bytes in 0 blocks
- ==2207== still reachable: 81,480 bytes in 4 blocks
- ==2207== suppressed: 0 bytes in 0 blocks
- ==2207== Reachable blocks (those to which a pointer was found) are not shown.
- ==2207== To see them, rerun with: --leak-check=full --show-leak-kinds=all
- ==2207==
- ==2207== For counts of detected and suppressed errors, rerun with: -v
- ==2207== Use --track-origins=yes to see where uninitialised values come from
- ==2207== ERROR SUMMARY: 188 errors from 11 contexts (suppressed: 0 from 0)
- Segmentation fault (imagem do núcleo gravada)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement