This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

valgrind output

By: a guest on Feb 13th, 2012  |  syntax: None  |  size: 3.48 KB  |  views: 64  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ==3292== Memcheck, a memory error detector
  2. ==3292== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
  3. ==3292== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
  4. ==3292== Command: ./foobar
  5. ==3292==
  6. ==3292== Invalid write of size 4
  7. ==3292==    at 0x8048893: MyClass::MyClass(std::string*, std::string*) (MyClass.cpp:21)
  8. ==3292==    by 0x8048785: main (test.cpp:11)
  9. ==3292==  Address 0x42b90b8 is 0 bytes inside a block of size 1 alloc'd
  10. ==3292==    at 0x402471C: operator new(unsigned int) (vg_replace_malloc.c:255)
  11. ==3292==    by 0x8048769: main (test.cpp:11)
  12. ==3292==
  13. ==3292== Invalid write of size 4
  14. ==3292==    at 0x804889B: MyClass::MyClass(std::string*, std::string*) (MyClass.cpp:21)
  15. ==3292==    by 0x8048785: main (test.cpp:11)
  16. ==3292==  Address 0x42b90bc is 3 bytes after a block of size 1 alloc'd
  17. ==3292==    at 0x402471C: operator new(unsigned int) (vg_replace_malloc.c:255)
  18. ==3292==    by 0x8048769: main (test.cpp:11)
  19. ==3292==
  20. ==3292== Invalid read of size 4
  21. ==3292==    at 0x80488A1: MyClass::MyClass(std::string*, std::string*) (MyClass.cpp:23)
  22. ==3292==    by 0x8048785: main (test.cpp:11)
  23. ==3292==  Address 0x42b90b8 is 0 bytes inside a block of size 1 alloc'd
  24. ==3292==    at 0x402471C: operator new(unsigned int) (vg_replace_malloc.c:255)
  25. ==3292==    by 0x8048769: main (test.cpp:11)
  26. ==3292==
  27. ==3292== Invalid write of size 4
  28. ==3292==    at 0x80488B0: MyClass::MyClass(std::string*, std::string*) (MyClass.cpp:23)
  29. ==3292==    by 0x8048785: main (test.cpp:11)
  30. ==3292==  Address 0x42b90c0 is 7 bytes after a block of size 1 alloc'd
  31. ==3292==    at 0x402471C: operator new(unsigned int) (vg_replace_malloc.c:255)
  32. ==3292==    by 0x8048769: main (test.cpp:11)
  33. ==3292==
  34. ==3292== Invalid read of size 4
  35. ==3292==    at 0x80488B6: MyClass::MyClass(std::string*, std::string*) (MyClass.cpp:28)
  36. ==3292==    by 0x8048785: main (test.cpp:11)
  37. ==3292==  Address 0x42b90bc is 3 bytes after a block of size 1 alloc'd
  38. ==3292==    at 0x402471C: operator new(unsigned int) (vg_replace_malloc.c:255)
  39. ==3292==    by 0x8048769: main (test.cpp:11)
  40. ==3292==
  41. ==3292== Invalid write of size 4
  42. ==3292==    at 0x80488C6: MyClass::MyClass(std::string*, std::string*) (MyClass.cpp:28)
  43. ==3292==    by 0x8048785: main (test.cpp:11)
  44. ==3292==  Address 0x42b90c4 is 11 bytes after a block of size 1 alloc'd
  45. ==3292==    at 0x402471C: operator new(unsigned int) (vg_replace_malloc.c:255)
  46. ==3292==    by 0x8048769: main (test.cpp:11)
  47. ==3292==
  48. ==3292== Invalid write of size 4
  49. ==3292==    at 0x8048900: MyClass::MyClass(std::string*, std::string*) (MyClass.cpp:30)
  50. ==3292==    by 0x8048785: main (test.cpp:11)
  51. ==3292==  Address 0x42b90c8 is 15 bytes after a block of size 1 alloc'd
  52. ==3292==    at 0x402471C: operator new(unsigned int) (vg_replace_malloc.c:255)
  53. ==3292==    by 0x8048769: main (test.cpp:11)
  54. ==3292==
  55. ==3292==
  56. ==3292== HEAP SUMMARY:
  57. ==3292==     in use at exit: 13 bytes in 2 blocks
  58. ==3292==   total heap usage: 4 allocs, 2 frees, 51 bytes allocated
  59. ==3292==
  60. ==3292== LEAK SUMMARY:
  61. ==3292==    definitely lost: 13 bytes in 2 blocks
  62. ==3292==    indirectly lost: 0 bytes in 0 blocks
  63. ==3292==      possibly lost: 0 bytes in 0 blocks
  64. ==3292==    still reachable: 0 bytes in 0 blocks
  65. ==3292==         suppressed: 0 bytes in 0 blocks
  66. ==3292== Rerun with --leak-check=full to see details of leaked memory
  67. ==3292==
  68. ==3292== For counts of detected and suppressed errors, rerun with: -v
  69. ==3292== ERROR SUMMARY: 7 errors from 7 contexts (suppressed: 19 from 8)
clone this paste RAW Paste Data