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