Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. ==27922== Memcheck, a memory error detector
  2. ==27922== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
  3. ==27922== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
  4. ==27922== Command: ./a /home/matheushsouza/workplace/tp1/tests/official/entrada01.txt
  5. ==27922==
  6. ==27922== Invalid read of size 4
  7. ==27922== at 0x4E9BB64: fclose@@GLIBC_2.2.5 (in /usr/lib/libc-2.24.so)
  8. ==27922== by 0x40180A: exibirTimeline (in /home/matheushsouza/temp/a)
  9. ==27922== by 0x402056: readFile (in /home/matheushsouza/temp/a)
  10. ==27922== by 0x400B8A: main (in /home/matheushsouza/temp/a)
  11. ==27922== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  12. ==27922==
  13. ==27922==
  14. ==27922== Process terminating with default action of signal 11 (SIGSEGV): dumping core
  15. ==27922== Access not within mapped region at address 0x0
  16. ==27922== at 0x4E9BB64: fclose@@GLIBC_2.2.5 (in /usr/lib/libc-2.24.so)
  17. ==27922== by 0x40180A: exibirTimeline (in /home/matheushsouza/temp/a)
  18. ==27922== by 0x402056: readFile (in /home/matheushsouza/temp/a)
  19. ==27922== by 0x400B8A: main (in /home/matheushsouza/temp/a)
  20. ==27922== If you believe this happened as a result of a stack
  21. ==27922== overflow in your program's main thread (unlikely but
  22. ==27922== possible), you can try to increase the size of the
  23. ==27922== main thread stack using the --main-stacksize= flag.
  24. ==27922== The main thread stack size used in this run was 8388608.
  25. Nao foi possivel abrir o arquivo de saida==27922==
  26. ==27922== HEAP SUMMARY:
  27. ==27922== in use at exit: 1,640 bytes in 13 blocks
  28. ==27922== total heap usage: 16 allocs, 3 frees, 7,312 bytes allocated
  29. ==27922==
  30. ==27922== LEAK SUMMARY:
  31. ==27922== definitely lost: 0 bytes in 0 blocks
  32. ==27922== indirectly lost: 0 bytes in 0 blocks
  33. ==27922== possibly lost: 0 bytes in 0 blocks
  34. ==27922== still reachable: 1,640 bytes in 13 blocks
  35. ==27922== suppressed: 0 bytes in 0 blocks
  36. ==27922== Rerun with --leak-check=full to see details of leaked memory
  37. ==27922==
  38. ==27922== For counts of detected and suppressed errors, rerun with: -v
  39. ==27922== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
  40. fish: “valgrind ./a /home/matheushsouz…” terminated by signal SIGSEGV (Address boundary error)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement