Advertisement
Guest User

Untitled

a guest
Jun 26th, 2011
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.40 KB | None | 0 0
  1. ==7149== Memcheck, a memory error detector.
  2. ==7149== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
  3. ==7149== Using LibVEX rev 1854, a library for dynamic binary translation.
  4. ==7149== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
  5. ==7149== Using valgrind-3.3.1, a dynamic binary instrumentation framework.
  6. ==7149== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
  7. ==7149==
  8. --7149-- Command line
  9. --7149-- a.out
  10. --7149-- Startup, with flags:
  11. --7149-- -v
  12. --7149-- --tool=memcheck
  13. --7149-- --leak-check=yes
  14. --7149-- --show-reachable=yes
  15. --7149-- --db-attach=yes
  16. --7149-- --db-command=gdb -nw %f %p
  17. --7149-- --num-callers=10
  18. --7149-- --track-fds=yes
  19. --7149-- Contents of /proc/version:
  20. --7149-- Linux version 2.4.31 (root@tree) (gcc version 3.3.5) #6 Sun Jun 5 19:04:47 PDT 2005
  21. --7149-- Arch and hwcaps: X86, x86-sse1-sse2
  22. --7149-- Page sizes: currently 4096, max supported 4096
  23. --7149-- Valgrind library directory: /usr/local/lib/valgrind
  24. --7149-- Reading syms from /lib/ld-2.3.5.so (0x4000000)
  25. --7149-- Reading syms from /home/p4r/a.out (0x8048000)
  26. --7149-- Reading syms from /usr/local/lib/valgrind/x86-linux/memcheck (0x38000000)
  27. --7149-- object doesn't have a dynamic symbol table
  28. --7149-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
  29. --7149-- REDIR: 0x4010620 (index) redirected to 0x38024c53 (vgPlain_x86_linux_REDIR_FOR_index)
  30. --7149-- Reading syms from /usr/local/lib/valgrind/x86-linux/vgpreload_core.so (0x4017000)
  31. --7149-- Reading syms from /usr/local/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x401A000)
  32. ==7149== WARNING: new redirection conflicts with existing -- ignoring it
  33. --7149-- new: 0x04010620 (index ) R-> 0x0401d710 index
  34. --7149-- REDIR: 0x40107d0 (strlen) redirected to 0x401d8e0 (strlen)
  35. --7149-- Reading syms from /lib/libc-2.3.5.so (0x4031000)
  36. --7149-- REDIR: 0x40985a0 (rindex) redirected to 0x401d5f0 (rindex)
  37. --7149-- REDIR: 0x4099100 (memset) redirected to 0x401dc10 (memset)
  38. ==7149== Invalid write of size 4
  39. ==7149== at 0x405CC33: initstate_r (in /lib/libc-2.3.5.so)
  40. ==7149== by 0x8048485: main (test.c:16)
  41. ==7149== Address 0xfffffffc is not stack'd, malloc'd or (recently) free'd
  42. ==7149==
  43. ==7149== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
  44. ==7149==
  45. ==7149== Process terminating with default action of signal 11 (SIGSEGV)
  46. ==7149== Access not within mapped region at address 0xFFFFFFFC
  47. ==7149== at 0x405CC33: initstate_r (in /lib/libc-2.3.5.so)
  48. ==7149== by 0x8048485: main (test.c:16)
  49. ==7149==
  50. ==7149== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
  51. Before initstate--7149-- REDIR: 0x4092660 (free) redirected to 0x401c440 (free)
  52. ==7149==
  53. ==7149== FILE DESCRIPTORS: 3 open at exit.
  54. ==7149== Open file descriptor 2: /dev/pts/14
  55. ==7149== <inherited from parent>
  56. ==7149==
  57. ==7149== Open file descriptor 1: /dev/pts/14
  58. ==7149== <inherited from parent>
  59. ==7149==
  60. ==7149== Open file descriptor 0: /dev/pts/14
  61. ==7149== <inherited from parent>
  62. ==7149==
  63. ==7149==
  64. ==7149== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 11 from 1)
  65. ==7149==
  66. ==7149== 1 errors in context 1 of 1:
  67. ==7149== Invalid write of size 4
  68. ==7149== at 0x405CC33: initstate_r (in /lib/libc-2.3.5.so)
  69. ==7149== by 0x8048485: main (test.c:16)
  70. ==7149== Address 0xfffffffc is not stack'd, malloc'd or (recently) free'd
  71. --7149--
  72. --7149-- supp: 11 Ubuntu-stripped-ld.so
  73. ==7149==
  74. ==7149== IN SUMMARY: 1 errors from 1 contexts (suppressed: 11 from 1)
  75. ==7149==
  76. ==7149== malloc/free: in use at exit: 0 bytes in 0 blocks.
  77. ==7149== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
  78. ==7149==
  79. ==7149== All heap blocks were freed -- no leaks are possible.
  80. --7149-- memcheck: sanity checks: 0 cheap, 1 expensive
  81. --7149-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
  82. --7149-- memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10
  83. --7149-- memcheck: auxmaps_L2: 0 searches, 0 nodes
  84. --7149-- memcheck: SMs: n_issued = 7 (112k, 0M)
  85. --7149-- memcheck: SMs: n_deissued = 0 (0k, 0M)
  86. --7149-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
  87. --7149-- memcheck: SMs: max_undefined = 0 (0k, 0M)
  88. --7149-- memcheck: SMs: max_defined = 17 (272k, 0M)
  89. --7149-- memcheck: SMs: max_non_DSM = 7 (112k, 0M)
  90. --7149-- memcheck: max sec V bit nodes: 0 (0k, 0M)
  91. --7149-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
  92. --7149-- memcheck: max shadow mem size: 416k, 0M
  93. --7149-- translate: fast SP updates identified: 1,423 ( 89.1%)
  94. --7149-- translate: generic_known SP updates identified: 79 ( 4.9%)
  95. --7149-- translate: generic_unknown SP updates identified: 95 ( 5.9%)
  96. --7149-- tt/tc: 3,179 tt lookups requiring 3,190 probes
  97. --7149-- tt/tc: 3,179 fast-cache updates, 3 flushes
  98. --7149-- transtab: new 1,488 (29,944 -> 449,089; ratio 149:10) [0 scs]
  99. --7149-- transtab: dumped 0 (0 -> ??)
  100. --7149-- transtab: discarded 6 (150 -> ??)
  101. --7149-- scheduler: 28,850 jumps (bb entries).
  102. --7149-- scheduler: 0/1,729 major/minor sched events.
  103. --7149-- sanity: 1 cheap, 1 expensive checks.
  104. --7149-- exectx: 769 lists, 10 contexts (avg 0 per list)
  105. --7149-- exectx: 16 searches, 6 full compares (375 per 1000)
  106. --7149-- exectx: 0 cmp2, 26 cmp4, 0 cmpAll
  107. --7149-- errormgr: 7 supplist searches, 117 comparisons during search
  108. --7149-- errormgr: 12 errlist searches, 32 comparisons during search
  109. Segmentation fault
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement