Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.61 KB | None | 0 0
  1. dogbert@dogbert-VirtualBox ~/repos/rakudo $ ./perl6-m -v
  2. This is Rakudo version 2017.07-194-ga30ce6bca built on MoarVM version 2017.07-453-gc4ee23b4
  3. implementing Perl 6.c
  4. dogbert@dogbert-VirtualBox ~/repos/rakudo $ ./perl6-m t/spec/S17-lowlevel/lock.t
  5. 1..23
  6. ok 1 - Running code under lock
  7. ok 2 - Running another piece of code under lock
  8. ok 3 - code that dies under lock throws
  9. ok 4 - Code that dies in run does release the lock
  10. ok 5 - Even from another thread
  11. ok 6 - Lock is at least somewhat effective
  12. ok 7 - Condition variable worked
  13. =================================================================
  14. ==19088== ERROR: AddressSanitizer: heap-use-after-free on address 0xb4f30514 at pc 0xb57f4ee4 bp 0xb1175a18 sp 0xb1175a0c
  15. READ of size 4 at 0xb4f30514 thread T1
  16. #0 0xb57f4ee3 in push /home/dogbert/repos/rakudo/nqp/MoarVM/src/6model/reprs/VMArray.c:461
  17. #1 0xb57ddffa in MVM_repr_push_o /home/dogbert/repos/rakudo/nqp/MoarVM/src/6model/reprconv.c:342
  18. #2 0xb59699d6 in worker /home/dogbert/repos/rakudo/nqp/MoarVM/src/spesh/worker.c:13
  19. #3 0xb5809fa4 in invoke_handler /home/dogbert/repos/rakudo/nqp/MoarVM/src/6model/reprs/MVMCFunction.c:9
  20. #4 0xb571dc0f in thread_initial_invoke /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threads.c:59
  21. #5 0xb565e003 in MVM_interp_run /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/interp.c:88
  22. #6 0xb571ddfa in start_thread /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threads.c:83
  23. #7 0xb5a4dd16 in uv__thread_start (//home/dogbert/repos/rakudo/nqp/MoarVM/../../install/lib/libmoar.so+0x54ed16)
  24. #8 0xb61c29c6 (/usr/lib/i386-linux-gnu/libasan.so.0+0x1a9c6)
  25. #9 0xb61b22ac (/usr/lib/i386-linux-gnu/libasan.so.0+0xa2ac)
  26. #10 0xb5337f71 in start_thread (/lib/i386-linux-gnu/libpthread.so.0+0x6f71)
  27. #11 0xb543b3ed (/lib/i386-linux-gnu/libc.so.6+0xee3ed)
  28. 0xb4f30514 is located 20 bytes inside of 480-byte region [0xb4f30500,0xb4f306e0)
  29. freed by thread T0 here:
  30. #0 0xb61be774 (/usr/lib/i386-linux-gnu/libasan.so.0+0x16774)
  31. #1 0xb56e4a81 in MVM_free /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/alloc.h:40
  32. #2 0xb56e56ac in MVM_tc_destroy /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threadcontext.c:112
  33. #3 0xb576f050 in finish_gc /home/dogbert/repos/rakudo/nqp/MoarVM/src/gc/orchestrate.c:210
  34. #4 0xb576f9dd in run_gc /home/dogbert/repos/rakudo/nqp/MoarVM/src/gc/orchestrate.c:358
  35. #5 0xb577057f in MVM_gc_enter_from_allocator /home/dogbert/repos/rakudo/nqp/MoarVM/src/gc/orchestrate.c:466
  36. #6 0xb571e7ff in try_join /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threads.c:188
  37. #7 0xb571e8f2 in MVM_thread_join /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threads.c:194
  38. #8 0xb56b2d65 in MVM_interp_run /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/interp.c:3736
  39. #9 0xb5a2d160 in MVM_vm_run_file /home/dogbert/repos/rakudo/nqp/MoarVM/src/moar.c:356
  40. #10 0x8049461 in main /home/dogbert/repos/rakudo/nqp/MoarVM/src/main.c:255
  41. #11 0xb5366af2 (/lib/i386-linux-gnu/libc.so.6+0x19af2)
  42. previously allocated by thread T0 here:
  43. #0 0xb61be905 (/usr/lib/i386-linux-gnu/libasan.so.0+0x16905)
  44. #1 0xb56e4a3b in MVM_calloc /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/alloc.h:11
  45. #2 0xb56e4aaf in MVM_tc_create /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threadcontext.c:8
  46. #3 0xb571d8c2 in MVM_thread_new /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threads.c:29
  47. #4 0xb56b2bda in MVM_interp_run /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/interp.c:3731
  48. #5 0xb5a2d160 in MVM_vm_run_file /home/dogbert/repos/rakudo/nqp/MoarVM/src/moar.c:356
  49. #6 0x8049461 in main /home/dogbert/repos/rakudo/nqp/MoarVM/src/main.c:255
  50. #7 0xb5366af2 (/lib/i386-linux-gnu/libc.so.6+0x19af2)
  51. Thread T1 created by T0 here:
  52. #0 0xb61b21d0 (/usr/lib/i386-linux-gnu/libasan.so.0+0xa1d0)
  53. #1 0xb5a4dd70 in uv_thread_create (//home/dogbert/repos/rakudo/nqp/MoarVM/../../install/lib/libmoar.so+0x54ed70)
  54. #2 0xb596a0ef in MVM_spesh_worker_setup /home/dogbert/repos/rakudo/nqp/MoarVM/src/spesh/worker.c:149
  55. #3 0xb5a2c93d in MVM_vm_create_instance /home/dogbert/repos/rakudo/nqp/MoarVM/src/moar.c:301
  56. #4 0x8049356 in main /home/dogbert/repos/rakudo/nqp/MoarVM/src/main.c:238
  57. #5 0xb5366af2 (/lib/i386-linux-gnu/libc.so.6+0x19af2)
  58. SUMMARY: AddressSanitizer: heap-use-after-free /home/dogbert/repos/rakudo/nqp/MoarVM/src/6model/reprs/VMArray.c:461 push
  59. Shadow bytes around the buggy address:
  60. 0x369e6050: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  61. 0x369e6060: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  62. 0x369e6070: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  63. 0x369e6080: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa
  64. 0x369e6090: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  65. =>0x369e60a0: fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd
  66. 0x369e60b0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  67. 0x369e60c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  68. 0x369e60d0: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa
  69. 0x369e60e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  70. 0x369e60f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  71. Shadow byte legend (one shadow byte represents 8 application bytes):
  72. Addressable: 00
  73. Partially addressable: 01 02 03 04 05 06 07
  74. Heap left redzone: fa
  75. Heap righ redzone: fb
  76. Freed Heap region: fd
  77. Stack left redzone: f1
  78. Stack mid redzone: f2
  79. Stack right redzone: f3
  80. Stack partial redzone: f4
  81. Stack after return: f5
  82. Stack use after scope: f8
  83. Global redzone: f9
  84. Global init order: f6
  85. Poisoned by user: f7
  86. ASan internal: fe
  87. ==19088== ABORTING
  88.  
  89. Another run:
  90.  
  91. dogbert@dogbert-VirtualBox ~/repos/rakudo $ MVM_SPESH_DISABLE=1 ./perl6-m t/spec/S17-lowlevel/lock.t
  92. 1..23
  93. ok 1 - Running code under lock
  94. ok 2 - Running another piece of code under lock
  95. ok 3 - code that dies under lock throws
  96. ok 4 - Code that dies in run does release the lock
  97. ok 5 - Even from another thread
  98. =================================================================
  99. ==24196== ERROR: AddressSanitizer: heap-use-after-free on address 0xb4e3b414 at pc 0xb56e4bf3 bp 0xa1febb88 sp 0xa1febb7c
  100. READ of size 4 at 0xb4e3b414 thread T3
  101. #0 0xb56e4bf2 in MVM_gc_allocate_object /home/dogbert/repos/rakudo/nqp/MoarVM/src/gc/allocation.c:86
  102. #1 0xb5784274 in allocate /home/dogbert/repos/rakudo/nqp/MoarVM/src/6model/reprs/P6opaque.c:60
  103. #2 0xb55b5e59 in MVM_args_get_pos_obj /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/args.c:289
  104. #3 0xb55e52ed in MVM_interp_run /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/interp.c:1057
  105. #4 0xb5690dfa in start_thread /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threads.c:83
  106. #5 0xb59c0d16 in uv__thread_start (//home/dogbert/repos/rakudo/nqp/MoarVM/../../install/lib/libmoar.so+0x54ed16)
  107. #6 0xb61359c6 (/usr/lib/i386-linux-gnu/libasan.so.0+0x1a9c6)
  108. #7 0xb61252ac (/usr/lib/i386-linux-gnu/libasan.so.0+0xa2ac)
  109. #8 0xb52aaf71 in start_thread (/lib/i386-linux-gnu/libpthread.so.0+0x6f71)
  110. #9 0xb53ae3ed (/lib/i386-linux-gnu/libc.so.6+0xee3ed)
  111. 0xb4e3b414 is located 20 bytes inside of 480-byte region [0xb4e3b400,0xb4e3b5e0)
  112. freed by thread T0 here:
  113. #0 0xb6131774 (/usr/lib/i386-linux-gnu/libasan.so.0+0x16774)
  114. #1 0xb5657a81 in MVM_free /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/alloc.h:40
  115. #2 0xb56586ac in MVM_tc_destroy /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threadcontext.c:112
  116. #3 0xb56e2050 in finish_gc /home/dogbert/repos/rakudo/nqp/MoarVM/src/gc/orchestrate.c:210
  117. #4 0xb56e29dd in run_gc /home/dogbert/repos/rakudo/nqp/MoarVM/src/gc/orchestrate.c:358
  118. #5 0xb56e357f in MVM_gc_enter_from_allocator /home/dogbert/repos/rakudo/nqp/MoarVM/src/gc/orchestrate.c:466
  119. #6 0xb56917ff in try_join /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threads.c:188
  120. #7 0xb56918f2 in MVM_thread_join /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threads.c:194
  121. #8 0xb5625d65 in MVM_interp_run /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/interp.c:3736
  122. #9 0xb59a0160 in MVM_vm_run_file /home/dogbert/repos/rakudo/nqp/MoarVM/src/moar.c:356
  123. #10 0x8049461 in main /home/dogbert/repos/rakudo/nqp/MoarVM/src/main.c:255
  124. #11 0xb52d9af2 (/lib/i386-linux-gnu/libc.so.6+0x19af2)
  125. previously allocated by thread T0 here:
  126. #0 0xb6131905 (/usr/lib/i386-linux-gnu/libasan.so.0+0x16905)
  127. #1 0xb5657a3b in MVM_calloc /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/alloc.h:11
  128. #2 0xb5657aaf in MVM_tc_create /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threadcontext.c:8
  129. #3 0xb56908c2 in MVM_thread_new /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/threads.c:29
  130. #4 0xb5625bda in MVM_interp_run /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/interp.c:3731
  131. #5 0xb59a0160 in MVM_vm_run_file /home/dogbert/repos/rakudo/nqp/MoarVM/src/moar.c:356
  132. #6 0x8049461 in main /home/dogbert/repos/rakudo/nqp/MoarVM/src/main.c:255
  133. #7 0xb52d9af2 (/lib/i386-linux-gnu/libc.so.6+0x19af2)
  134. Thread T3 created by T0 here:
  135. #0 0xb61251d0 (/usr/lib/i386-linux-gnu/libasan.so.0+0xa1d0)
  136. #1 0xb59c0d70 in uv_thread_create (//home/dogbert/repos/rakudo/nqp/MoarVM/../../install/lib/libmoar.so+0x54ed70)
  137. #2 0xb562d7eb in MVM_interp_run /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/interp.c:4051
  138. #3 0xb59a0160 in MVM_vm_run_file /home/dogbert/repos/rakudo/nqp/MoarVM/src/moar.c:356
  139. #4 0x8049461 in main /home/dogbert/repos/rakudo/nqp/MoarVM/src/main.c:255
  140. #5 0xb52d9af2 (/lib/i386-linux-gnu/libc.so.6+0x19af2)
  141. SUMMARY: AddressSanitizer: heap-use-after-free /home/dogbert/repos/rakudo/nqp/MoarVM/src/gc/allocation.c:86 MVM_gc_allocate_object
  142. Shadow bytes around the buggy address:
  143. 0x369c7630: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  144. 0x369c7640: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  145. 0x369c7650: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  146. 0x369c7660: fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa
  147. 0x369c7670: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  148. =>0x369c7680: fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd
  149. 0x369c7690: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  150. 0x369c76a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  151. 0x369c76b0: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa
  152. 0x369c76c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  153. 0x369c76d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  154. Shadow byte legend (one shadow byte represents 8 application bytes):
  155. Addressable: 00
  156. Partially addressable: 01 02 03 04 05 06 07
  157. Heap left redzone: fa
  158. Heap righ redzone: fb
  159. Freed Heap region: fd
  160. Stack left redzone: f1
  161. Stack mid redzone: f2
  162. Stack right redzone: f3
  163. Stack partial redzone: f4
  164. Stack after return: f5
  165. Stack use after scope: f8
  166. Global redzone: f9
  167. Global init order: f6
  168. Poisoned by user: f7
  169. ASan internal: fe
  170. ==24196== ABORTING
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement