Advertisement
Skytrias

valgrind odin thread #1

Oct 12th, 2022 (edited)
669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.61 KB | None | 0 0
  1. ==20481== Memcheck, a memory error detector
  2. ==20481== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  3. ==20481== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
  4. ==20481== Command: ./todool
  5. ==20481==
  6. yup
  7. done==20481== Thread 2:
  8. ==20481== Invalid read of size 1
  9. ==20481==    at 0x45F82B: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:62)
  10. ==20481==    by 0x4BB1608: start_thread (pthread_create.c:477)
  11. ==20481==    by 0x4987132: clone (clone.S:95)
  12. ==20481==  Address 0x4bce060 is 32 bytes inside a block of size 279 free'd
  13. ==20481==    at 0x483CA3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  14. ==20481==    by 0x41123F: os.heap_free (os_linux.odin:770)
  15. ==20481==    by 0x45CCD1: os.heap_allocator_proc.aligned_free-1 (os.odin:209)
  16. ==20481==    by 0x410A07: os.heap_allocator_proc (os.odin:233)
  17. ==20481==    by 0x40B81E: runtime.mem_free (internal.odin:152)
  18. ==20481==    by 0x442FBF: thread._destroy-9801 (thread_unix.odin:153)
  19. ==20481==    by 0x4425E1: thread.destroy (thread.odin:39)
  20. ==20481==    by 0x45F11A: thread.run-9764.thread_proc-0 (thread.odin:74)
  21. ==20481==    by 0x45F822: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:60)
  22. ==20481==    by 0x4BB1608: start_thread (pthread_create.c:477)
  23. ==20481==    by 0x4987132: clone (clone.S:95)
  24. ==20481==  Block was alloc'd at
  25. ==20481==    at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  26. ==20481==    by 0x4111F1: os.heap_alloc (os_linux.odin:760)
  27. ==20481==    by 0x45CBB4: os.heap_allocator_proc.aligned_alloc-0 (os.odin:190)
  28. ==20481==    by 0x4109BD: os.heap_allocator_proc (os.odin:230)
  29. ==20481==    by 0x40B65E: runtime.mem_alloc_bytes (internal.odin:138)
  30. ==20481==    by 0x45B982: runtime.new_aligned-89019 (core_builtin.odin:196)
  31. ==20481==    by 0x45849D: runtime.new-77900 (core_builtin.odin:193)
  32. ==20481==    by 0x442966: thread._create-9796 (thread_unix.odin:83)
  33. ==20481==    by 0x4425B9: thread.create (thread.odin:36)
  34. ==20481==    by 0x442662: thread.run-9764 (thread.odin:76)
  35. ==20481==    by 0x410818: src.main (main.odin:450)
  36. ==20481==    by 0x445174: main (entry_unix.odin:29)
  37. ==20481==
  38. ==20481== Invalid read of size 1
  39. ==20481==    at 0x45F831: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:62)
  40. ==20481==    by 0x4BB1608: start_thread (pthread_create.c:477)
  41. ==20481==    by 0x4987132: clone (clone.S:95)
  42. ==20481==  Address 0x4bce060 is 32 bytes inside a block of size 279 free'd
  43. ==20481==    at 0x483CA3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  44. ==20481==    by 0x41123F: os.heap_free (os_linux.odin:770)
  45. ==20481==    by 0x45CCD1: os.heap_allocator_proc.aligned_free-1 (os.odin:209)
  46. ==20481==    by 0x410A07: os.heap_allocator_proc (os.odin:233)
  47. ==20481==    by 0x40B81E: runtime.mem_free (internal.odin:152)
  48. ==20481==    by 0x442FBF: thread._destroy-9801 (thread_unix.odin:153)
  49. ==20481==    by 0x4425E1: thread.destroy (thread.odin:39)
  50. ==20481==    by 0x45F11A: thread.run-9764.thread_proc-0 (thread.odin:74)
  51. ==20481==    by 0x45F822: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:60)
  52. ==20481==    by 0x4BB1608: start_thread (pthread_create.c:477)
  53. ==20481==    by 0x4987132: clone (clone.S:95)
  54. ==20481==  Block was alloc'd at
  55. ==20481==    at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  56. ==20481==    by 0x4111F1: os.heap_alloc (os_linux.odin:760)
  57. ==20481==    by 0x45CBB4: os.heap_allocator_proc.aligned_alloc-0 (os.odin:190)
  58. ==20481==    by 0x4109BD: os.heap_allocator_proc (os.odin:230)
  59. ==20481==    by 0x40B65E: runtime.mem_alloc_bytes (internal.odin:138)
  60. ==20481==    by 0x45B982: runtime.new_aligned-89019 (core_builtin.odin:196)
  61. ==20481==    by 0x45849D: runtime.new-77900 (core_builtin.odin:193)
  62. ==20481==    by 0x442966: thread._create-9796 (thread_unix.odin:83)
  63. ==20481==    by 0x4425B9: thread.create (thread.odin:36)
  64. ==20481==    by 0x442662: thread.run-9764 (thread.odin:76)
  65. ==20481==    by 0x410818: src.main (main.odin:450)
  66. ==20481==    by 0x445174: main (entry_unix.odin:29)
  67. ==20481==
  68. ==20481== Invalid read of size 4
  69. ==20481==    at 0x44353C: sync.atomic_mutex_unlock (primitives_atomic.odin:68)
  70. ==20481==    by 0x445271: sync._mutex_unlock-13845 (primitives_internal.odin:78)
  71. ==20481==    by 0x443321: sync.mutex_unlock (primitives.odin:24)
  72. ==20481==    by 0x45F850: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:64)
  73. ==20481==    by 0x4BB1608: start_thread (pthread_create.c:477)
  74. ==20481==    by 0x4987132: clone (clone.S:95)
  75. ==20481==  Address 0x4bce05c is 28 bytes inside a block of size 279 free'd
  76. ==20481==    at 0x483CA3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  77. ==20481==    by 0x41123F: os.heap_free (os_linux.odin:770)
  78. ==20481==    by 0x45CCD1: os.heap_allocator_proc.aligned_free-1 (os.odin:209)
  79. ==20481==    by 0x410A07: os.heap_allocator_proc (os.odin:233)
  80. ==20481==    by 0x40B81E: runtime.mem_free (internal.odin:152)
  81. ==20481==    by 0x442FBF: thread._destroy-9801 (thread_unix.odin:153)
  82. ==20481==    by 0x4425E1: thread.destroy (thread.odin:39)
  83. ==20481==    by 0x45F11A: thread.run-9764.thread_proc-0 (thread.odin:74)
  84. ==20481==    by 0x45F822: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:60)
  85. ==20481==    by 0x4BB1608: start_thread (pthread_create.c:477)
  86. ==20481==    by 0x4987132: clone (clone.S:95)
  87. ==20481==  Block was alloc'd at
  88. ==20481==    at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  89. ==20481==    by 0x4111F1: os.heap_alloc (os_linux.odin:760)
  90. ==20481==    by 0x45CBB4: os.heap_allocator_proc.aligned_alloc-0 (os.odin:190)
  91. ==20481==    by 0x4109BD: os.heap_allocator_proc (os.odin:230)
  92. ==20481==    by 0x40B65E: runtime.mem_alloc_bytes (internal.odin:138)
  93. ==20481==    by 0x45B982: runtime.new_aligned-89019 (core_builtin.odin:196)
  94. ==20481==    by 0x45849D: runtime.new-77900 (core_builtin.odin:193)
  95. ==20481==    by 0x442966: thread._create-9796 (thread_unix.odin:83)
  96. ==20481==    by 0x4425B9: thread.create (thread.odin:36)
  97. ==20481==    by 0x442662: thread.run-9764 (thread.odin:76)
  98. ==20481==    by 0x410818: src.main (main.odin:450)
  99. ==20481==    by 0x445174: main (entry_unix.odin:29)
  100. ==20481==
  101.  
  102. ==20481==
  103. ==20481== HEAP SUMMARY:
  104. ==20481==     in use at exit: 288 bytes in 1 blocks
  105. ==20481==   total heap usage: 2 allocs, 1 frees, 567 bytes allocated
  106. ==20481==
  107. ==20481== Thread 1:
  108. ==20481== 288 bytes in 1 blocks are possibly lost in loss record 1 of 1
  109. ==20481==    at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  110. ==20481==    by 0x40149DA: allocate_dtv (dl-tls.c:286)
  111. ==20481==    by 0x40149DA: _dl_allocate_tls (dl-tls.c:532)
  112. ==20481==    by 0x4BB2322: allocate_stack (allocatestack.c:622)
  113. ==20481==    by 0x4BB2322: pthread_create@@GLIBC_2.2.5 (pthread_create.c:660)
  114. ==20481==    by 0x442D0F: thread._create-9796 (thread_unix.odin:107)
  115. ==20481==    by 0x4425B9: thread.create (thread.odin:36)
  116. ==20481==    by 0x442662: thread.run-9764 (thread.odin:76)
  117. ==20481==    by 0x410818: src.main (main.odin:450)
  118. ==20481==    by 0x445174: main (entry_unix.odin:29)
  119. ==20481==
  120. ==20481== LEAK SUMMARY:
  121. ==20481==    definitely lost: 0 bytes in 0 blocks
  122. ==20481==    indirectly lost: 0 bytes in 0 blocks
  123. ==20481==      possibly lost: 288 bytes in 1 blocks
  124. ==20481==    still reachable: 0 bytes in 0 blocks
  125. ==20481==         suppressed: 0 bytes in 0 blocks
  126. ==20481==
  127. ==20481== For lists of detected and suppressed errors, rerun with: -s
  128. ==20481== ERROR SUMMARY: 8 errors from 4 contexts (suppressed: 0 from 0)
  129.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement