Advertisement
Guest User

Untitled

a guest
May 7th, 2012
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. matei@matei-Satellite-C660:~/Desktop/Tema 3/tests$ valgrind ./mycompbmp -d test7-ref.mcb
  2. ==7347== Memcheck, a memory error detector
  3. ==7347== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
  4. ==7347== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
  5. ==7347== Command: ./mycompbmp -d test7-ref.mcb
  6. ==7347==
  7. Decompressing...
  8. ==7347== Invalid read of size 4
  9. ==7347== at 0x8049BE8: bitmapDecompress(char*, char*) (MCBFile.cpp:102)
  10. ==7347== by 0x804ADC4: main (mycompbmp.cpp:47)
  11. ==7347== Address 0x4323d38 is not stack'd, malloc'd or (recently) free'd
  12. ==7347==
  13. ==7347== Invalid read of size 1
  14. ==7347== at 0x8049BEB: bitmapDecompress(char*, char*) (MCBFile.cpp:102)
  15. ==7347== by 0x804ADC4: main (mycompbmp.cpp:47)
  16. ==7347== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  17. ==7347==
  18. ==7347==
  19. ==7347== Process terminating with default action of signal 11 (SIGSEGV)
  20. ==7347== Access not within mapped region at address 0x0
  21. ==7347== at 0x8049BEB: bitmapDecompress(char*, char*) (MCBFile.cpp:102)
  22. ==7347== by 0x804ADC4: main (mycompbmp.cpp:47)
  23. ==7347== If you believe this happened as a result of a stack
  24. ==7347== overflow in your program's main thread (unlikely but
  25. ==7347== possible), you can try to increase the size of the
  26. ==7347== main thread stack using the --main-stacksize= flag.
  27. ==7347== The main thread stack size used in this run was 8388608.
  28. ==7347==
  29. ==7347== HEAP SUMMARY:
  30. ==7347== in use at exit: 790 bytes in 12 blocks
  31. ==7347== total heap usage: 12 allocs, 0 frees, 790 bytes allocated
  32. ==7347==
  33. ==7347== LEAK SUMMARY:
  34. ==7347== definitely lost: 32 bytes in 1 blocks
  35. ==7347== indirectly lost: 40 bytes in 8 blocks
  36. ==7347== possibly lost: 0 bytes in 0 blocks
  37. ==7347== still reachable: 718 bytes in 3 blocks
  38. ==7347== suppressed: 0 bytes in 0 blocks
  39. ==7347== Rerun with --leak-check=full to see details of leaked memory
  40. ==7347==
  41. ==7347== For counts of detected and suppressed errors, rerun with: -v
  42. ==7347== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
  43. Segmentation fault (core dumped)
  44. matei@matei-Satellite-C660:~/Desktop/Tema 3/tests$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement