Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.51 KB | None | 0 0
  1. dogbert@dogbert-VirtualBox ~/repos/rakudo $ ./perl6-valgrind-m ~/test.pl6
  2. ================================================================================================
  3. This is Rakudo Perl 6 running in valgrind, a tool for debugging and profiling programs.
  4. Running a program in valgrind usually takes *a lot* more time than running it directly,
  5. so please be patient.
  6. This Rakudo version is 2016.11.161.g.08.ccbbbd.7 built on MoarVM version 2016.11.41.gd.2139.b.52,
  7. running on ubuntu (14.04.3.LTS.Trusty.Tahr) / linux (3.19.0.32.generic)
  8. ------------------------------------------------------------------------------------------------
  9. ==15968== Memcheck, a memory error detector
  10. ==15968== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
  11. ==15968== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
  12. ==15968== Command: /home/dogbert/repos/rakudo/install/bin/moar --full-cleanup --execname=./perl6-valgrind-m --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=. /home/dogbert/repos/rakudo/perl6.moarvm --nqp-lib=blib /home/dogbert/test.pl6
  13. ==15968==
  14. ==15968== Invalid write of size 4
  15. ==15968== at 0x403087D: memset (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  16. ==15968== by 0x40EC981: allocate_frame (frame.c:218)
  17. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  18. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  19. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  20. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  21. ==15968== by 0x8048EA5: main (main.c:192)
  22. ==15968== Address 0x99a4a70 is 0 bytes after a block of size 131,072 alloc'd
  23. ==15968== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  24. ==15968== by 0x40F1D76: MVM_malloc (alloc.h:2)
  25. ==15968== by 0x40F1DC8: create_region (callstack.c:6)
  26. ==15968== by 0x40F1E3A: MVM_callstack_region_next (callstack.c:24)
  27. ==15968== by 0x40EC948: allocate_frame (frame.c:215)
  28. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  29. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  30. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  31. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  32. ==15968== by 0x8048EA5: main (main.c:192)
  33. ==15968==
  34. ==15968== Invalid write of size 4
  35. ==15968== at 0x40ECA55: allocate_frame (frame.c:236)
  36. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  37. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  38. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  39. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  40. ==15968== by 0x8048EA5: main (main.c:192)
  41. ==15968== Address 0x99a4a74 is 4 bytes after a block of size 131,072 alloc'd
  42. ==15968== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  43. ==15968== by 0x40F1D76: MVM_malloc (alloc.h:2)
  44. ==15968== by 0x40F1DC8: create_region (callstack.c:6)
  45. ==15968== by 0x40F1E3A: MVM_callstack_region_next (callstack.c:24)
  46. ==15968== by 0x40EC948: allocate_frame (frame.c:215)
  47. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  48. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  49. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  50. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  51. ==15968== by 0x8048EA5: main (main.c:192)
  52. ==15968==
  53. ==15968== Invalid read of size 4
  54. ==15968== at 0x40ECA6E: allocate_frame (frame.c:237)
  55. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  56. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  57. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  58. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  59. ==15968== by 0x8048EA5: main (main.c:192)
  60. ==15968== Address 0x99a4a74 is 4 bytes after a block of size 131,072 alloc'd
  61. ==15968== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  62. ==15968== by 0x40F1D76: MVM_malloc (alloc.h:2)
  63. ==15968== by 0x40F1DC8: create_region (callstack.c:6)
  64. ==15968== by 0x40F1E3A: MVM_callstack_region_next (callstack.c:24)
  65. ==15968== by 0x40EC948: allocate_frame (frame.c:215)
  66. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  67. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  68. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  69. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  70. ==15968== by 0x8048EA5: main (main.c:192)
  71. ==15968==
  72. ==15968== Invalid write of size 2
  73. ==15968== at 0x40ECA89: allocate_frame (frame.c:240)
  74. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  75. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  76. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  77. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  78. ==15968== by 0x8048EA5: main (main.c:192)
  79. ==15968== Address 0x99a4aea is 6 bytes before a block of size 12 free'd
  80. ==15968== at 0x402B3D8: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  81. ==15968== by 0x415B486: MVM_free (alloc.h:29)
  82. ==15968== by 0x415B798: late_bound_find_method_return (6model.c:67)
  83. ==15968== by 0x40EE12D: remove_one_frame (frame.c:842)
  84. ==15968== by 0x40EE3A2: MVM_frame_try_return (frame.c:906)
  85. ==15968== by 0x40C4274: MVM_interp_run (interp.c:462)
  86. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  87. ==15968== by 0x8048EA5: main (main.c:192)
  88. ==15968==
  89. ==15968== Invalid read of size 4
  90. ==15968== at 0x40ECA93: allocate_frame (frame.c:243)
  91. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  92. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  93. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  94. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  95. ==15968== by 0x8048EA5: main (main.c:192)
  96. ==15968== Address 0x99a4a74 is 4 bytes after a block of size 131,072 alloc'd
  97. ==15968== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  98. ==15968== by 0x40F1D76: MVM_malloc (alloc.h:2)
  99. ==15968== by 0x40F1DC8: create_region (callstack.c:6)
  100. ==15968== by 0x40F1E3A: MVM_callstack_region_next (callstack.c:24)
  101. ==15968== by 0x40EC948: allocate_frame (frame.c:215)
  102. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  103. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  104. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  105. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  106. ==15968== by 0x8048EA5: main (main.c:192)
  107. ==15968==
  108. ==15968== Invalid write of size 4
  109. ==15968== at 0x40ECAB9: allocate_frame (frame.c:243)
  110. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  111. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  112. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  113. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  114. ==15968== by 0x8048EA5: main (main.c:192)
  115. ==15968== Address 0x99a4a78 is 8 bytes after a block of size 131,072 alloc'd
  116. ==15968== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  117. ==15968== by 0x40F1D76: MVM_malloc (alloc.h:2)
  118. ==15968== by 0x40F1DC8: create_region (callstack.c:6)
  119. ==15968== by 0x40F1E3A: MVM_callstack_region_next (callstack.c:24)
  120. ==15968== by 0x40EC948: allocate_frame (frame.c:215)
  121. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  122. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  123. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  124. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  125. ==15968== by 0x8048EA5: main (main.c:192)
  126. ==15968==
  127. ==15968== Invalid write of size 4
  128. ==15968== at 0x40ECAD4: allocate_frame (frame.c:249)
  129. ==15968== by 0x40ED848: MVM_frame_invoke (frame.c:556)
  130. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  131. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  132. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  133. ==15968== by 0x8048EA5: main (main.c:192)
  134. ==15968== Address 0x99a4af4 is 4 bytes inside a block of size 12 free'd
  135. ==15968== at 0x402B3D8: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  136. ==15968== by 0x415B486: MVM_free (alloc.h:29)
  137. ==15968== by 0x415B798: late_bound_find_method_return (6model.c:67)
  138. ==15968== by 0x40EE12D: remove_one_frame (frame.c:842)
  139. ==15968== by 0x40EE3A2: MVM_frame_try_return (frame.c:906)
  140. ==15968== by 0x40C4274: MVM_interp_run (interp.c:462)
  141. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  142. ==15968== by 0x8048EA5: main (main.c:192)
  143. ==15968==
  144. ==15968== Invalid write of size 4
  145. ==15968== at 0x40ED87C: MVM_frame_invoke (frame.c:563)
  146. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  147. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  148. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  149. ==15968== by 0x8048EA5: main (main.c:192)
  150. ==15968== Address 0x99a4aa8 is 8 bytes inside a block of size 32 free'd
  151. ==15968== at 0x402B3D8: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  152. ==15968== by 0x412E4A6: MVM_free (alloc.h:29)
  153. ==15968== by 0x412E91F: gc_free (MVMArray.c:81)
  154. ==15968== by 0x41131E9: MVM_gc_collect_free_nursery_uncopied (collect.c:580)
  155. ==15968== by 0x410DC62: run_gc (orchestrate.c:342)
  156. ==15968== by 0x410E000: MVM_gc_enter_from_allocator (orchestrate.c:452)
  157. ==15968== by 0x410E31D: MVM_gc_allocate_nursery (allocation.c:32)
  158. ==15968== by 0x410E232: MVM_gc_allocate (allocation.h:13)
  159. ==15968== by 0x410E381: MVM_gc_allocate_zeroed (allocation.c:49)
  160. ==15968== by 0x410E52B: MVM_gc_allocate_object (allocation.c:86)
  161. ==15968== by 0x413514F: allocate (P6opaque.c:60)
  162. ==15968== by 0x4128C2E: MVM_repr_alloc_init (reprconv.c:13)
  163. ==15968==
  164. ==15968== Invalid write of size 4
  165. ==15968== at 0x40ED88B: MVM_frame_invoke (frame.c:564)
  166. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  167. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  168. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  169. ==15968== by 0x8048EA5: main (main.c:192)
  170. ==15968== Address 0x99a4aac is 12 bytes inside a block of size 32 free'd
  171. ==15968== at 0x402B3D8: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  172. ==15968== by 0x412E4A6: MVM_free (alloc.h:29)
  173. ==15968== by 0x412E91F: gc_free (MVMArray.c:81)
  174. ==15968== by 0x41131E9: MVM_gc_collect_free_nursery_uncopied (collect.c:580)
  175. ==15968== by 0x410DC62: run_gc (orchestrate.c:342)
  176. ==15968== by 0x410E000: MVM_gc_enter_from_allocator (orchestrate.c:452)
  177. ==15968== by 0x410E31D: MVM_gc_allocate_nursery (allocation.c:32)
  178. ==15968== by 0x410E232: MVM_gc_allocate (allocation.h:13)
  179. ==15968== by 0x410E381: MVM_gc_allocate_zeroed (allocation.c:49)
  180. ==15968== by 0x410E52B: MVM_gc_allocate_object (allocation.c:86)
  181. ==15968== by 0x413514F: allocate (P6opaque.c:60)
  182. ==15968== by 0x4128C2E: MVM_repr_alloc_init (reprconv.c:13)
  183. ==15968==
  184.  
  185. valgrind: m_mallocfree.c:304 (get_bszB_as_is): Assertion 'bszB_lo == bszB_hi' failed.
  186. valgrind: Heap block lo/hi size mismatch: lo = 131120, hi = 0.
  187. This is probably caused by your program erroneously writing past the
  188. end of a heap block and corrupting heap metadata. If you fix any
  189. invalid writes reported by Memcheck, this assertion failure will
  190. probably go away. Please try that before reporting this as a bug.
  191.  
  192.  
  193. host stacktrace:
  194. ==15968== at 0x3805A504: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
  195. ==15968== by 0x3805A656: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
  196. ==15968== by 0x3805A7B9: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
  197. ==15968== by 0x38068EF2: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
  198. ==15968== by 0x380533A6: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
  199. ==15968== by 0x380502DF: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
  200. ==15968== by 0x38051CD7: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
  201. ==15968== by 0x38056101: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
  202. ==15968== by 0x38050F4D: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
  203. ==15968== by 0x380002C3: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
  204. ==15968== by 0x38032ED0: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
  205. ==15968== by 0x62D721CB: ???
  206. sched status:
  207. running_tid=1
  208.  
  209. Thread 1: status = VgTs_Runnable
  210. ==15968== at 0x40ED8A3: MVM_frame_invoke (frame.c:571)
  211. ==15968== by 0x413AF2F: invoke_handler (MVMCode.c:10)
  212. ==15968== by 0x40C7C25: MVM_interp_run (interp.c:925)
  213. ==15968== by 0x41BCD75: MVM_vm_run_file (moar.c:309)
  214. ==15968== by 0x8048EA5: main (main.c:192)
  215.  
  216.  
  217. Note: see also the FAQ in the source distribution.
  218. It contains workarounds to several common problems.
  219. In particular, if Valgrind aborted or crashed after
  220. identifying problems in your program, there's a good chance
  221. that fixing those problems will prevent Valgrind aborting or
  222. crashing, especially if it happened in m_mallocfree.c.
  223.  
  224. If that doesn't help, please report this bug to: www.valgrind.org
  225.  
  226. In the bug report, send all the above text, the valgrind
  227. version, and what OS and version you are using. Thanks.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement