Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==20481== Memcheck, a memory error detector
- ==20481== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
- ==20481== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
- ==20481== Command: ./todool
- ==20481==
- yup
- done==20481== Thread 2:
- ==20481== Invalid read of size 1
- ==20481== at 0x45F82B: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:62)
- ==20481== by 0x4BB1608: start_thread (pthread_create.c:477)
- ==20481== by 0x4987132: clone (clone.S:95)
- ==20481== Address 0x4bce060 is 32 bytes inside a block of size 279 free'd
- ==20481== at 0x483CA3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==20481== by 0x41123F: os.heap_free (os_linux.odin:770)
- ==20481== by 0x45CCD1: os.heap_allocator_proc.aligned_free-1 (os.odin:209)
- ==20481== by 0x410A07: os.heap_allocator_proc (os.odin:233)
- ==20481== by 0x40B81E: runtime.mem_free (internal.odin:152)
- ==20481== by 0x442FBF: thread._destroy-9801 (thread_unix.odin:153)
- ==20481== by 0x4425E1: thread.destroy (thread.odin:39)
- ==20481== by 0x45F11A: thread.run-9764.thread_proc-0 (thread.odin:74)
- ==20481== by 0x45F822: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:60)
- ==20481== by 0x4BB1608: start_thread (pthread_create.c:477)
- ==20481== by 0x4987132: clone (clone.S:95)
- ==20481== Block was alloc'd at
- ==20481== at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==20481== by 0x4111F1: os.heap_alloc (os_linux.odin:760)
- ==20481== by 0x45CBB4: os.heap_allocator_proc.aligned_alloc-0 (os.odin:190)
- ==20481== by 0x4109BD: os.heap_allocator_proc (os.odin:230)
- ==20481== by 0x40B65E: runtime.mem_alloc_bytes (internal.odin:138)
- ==20481== by 0x45B982: runtime.new_aligned-89019 (core_builtin.odin:196)
- ==20481== by 0x45849D: runtime.new-77900 (core_builtin.odin:193)
- ==20481== by 0x442966: thread._create-9796 (thread_unix.odin:83)
- ==20481== by 0x4425B9: thread.create (thread.odin:36)
- ==20481== by 0x442662: thread.run-9764 (thread.odin:76)
- ==20481== by 0x410818: src.main (main.odin:450)
- ==20481== by 0x445174: main (entry_unix.odin:29)
- ==20481==
- ==20481== Invalid read of size 1
- ==20481== at 0x45F831: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:62)
- ==20481== by 0x4BB1608: start_thread (pthread_create.c:477)
- ==20481== by 0x4987132: clone (clone.S:95)
- ==20481== Address 0x4bce060 is 32 bytes inside a block of size 279 free'd
- ==20481== at 0x483CA3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==20481== by 0x41123F: os.heap_free (os_linux.odin:770)
- ==20481== by 0x45CCD1: os.heap_allocator_proc.aligned_free-1 (os.odin:209)
- ==20481== by 0x410A07: os.heap_allocator_proc (os.odin:233)
- ==20481== by 0x40B81E: runtime.mem_free (internal.odin:152)
- ==20481== by 0x442FBF: thread._destroy-9801 (thread_unix.odin:153)
- ==20481== by 0x4425E1: thread.destroy (thread.odin:39)
- ==20481== by 0x45F11A: thread.run-9764.thread_proc-0 (thread.odin:74)
- ==20481== by 0x45F822: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:60)
- ==20481== by 0x4BB1608: start_thread (pthread_create.c:477)
- ==20481== by 0x4987132: clone (clone.S:95)
- ==20481== Block was alloc'd at
- ==20481== at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==20481== by 0x4111F1: os.heap_alloc (os_linux.odin:760)
- ==20481== by 0x45CBB4: os.heap_allocator_proc.aligned_alloc-0 (os.odin:190)
- ==20481== by 0x4109BD: os.heap_allocator_proc (os.odin:230)
- ==20481== by 0x40B65E: runtime.mem_alloc_bytes (internal.odin:138)
- ==20481== by 0x45B982: runtime.new_aligned-89019 (core_builtin.odin:196)
- ==20481== by 0x45849D: runtime.new-77900 (core_builtin.odin:193)
- ==20481== by 0x442966: thread._create-9796 (thread_unix.odin:83)
- ==20481== by 0x4425B9: thread.create (thread.odin:36)
- ==20481== by 0x442662: thread.run-9764 (thread.odin:76)
- ==20481== by 0x410818: src.main (main.odin:450)
- ==20481== by 0x445174: main (entry_unix.odin:29)
- ==20481==
- ==20481== Invalid read of size 4
- ==20481== at 0x44353C: sync.atomic_mutex_unlock (primitives_atomic.odin:68)
- ==20481== by 0x445271: sync._mutex_unlock-13845 (primitives_internal.odin:78)
- ==20481== by 0x443321: sync.mutex_unlock (primitives.odin:24)
- ==20481== by 0x45F850: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:64)
- ==20481== by 0x4BB1608: start_thread (pthread_create.c:477)
- ==20481== by 0x4987132: clone (clone.S:95)
- ==20481== Address 0x4bce05c is 28 bytes inside a block of size 279 free'd
- ==20481== at 0x483CA3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==20481== by 0x41123F: os.heap_free (os_linux.odin:770)
- ==20481== by 0x45CCD1: os.heap_allocator_proc.aligned_free-1 (os.odin:209)
- ==20481== by 0x410A07: os.heap_allocator_proc (os.odin:233)
- ==20481== by 0x40B81E: runtime.mem_free (internal.odin:152)
- ==20481== by 0x442FBF: thread._destroy-9801 (thread_unix.odin:153)
- ==20481== by 0x4425E1: thread.destroy (thread.odin:39)
- ==20481== by 0x45F11A: thread.run-9764.thread_proc-0 (thread.odin:74)
- ==20481== by 0x45F822: thread._create-9796.__linux_thread_entry_proc-0 (thread_unix.odin:60)
- ==20481== by 0x4BB1608: start_thread (pthread_create.c:477)
- ==20481== by 0x4987132: clone (clone.S:95)
- ==20481== Block was alloc'd at
- ==20481== at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==20481== by 0x4111F1: os.heap_alloc (os_linux.odin:760)
- ==20481== by 0x45CBB4: os.heap_allocator_proc.aligned_alloc-0 (os.odin:190)
- ==20481== by 0x4109BD: os.heap_allocator_proc (os.odin:230)
- ==20481== by 0x40B65E: runtime.mem_alloc_bytes (internal.odin:138)
- ==20481== by 0x45B982: runtime.new_aligned-89019 (core_builtin.odin:196)
- ==20481== by 0x45849D: runtime.new-77900 (core_builtin.odin:193)
- ==20481== by 0x442966: thread._create-9796 (thread_unix.odin:83)
- ==20481== by 0x4425B9: thread.create (thread.odin:36)
- ==20481== by 0x442662: thread.run-9764 (thread.odin:76)
- ==20481== by 0x410818: src.main (main.odin:450)
- ==20481== by 0x445174: main (entry_unix.odin:29)
- ==20481==
- ==20481==
- ==20481== HEAP SUMMARY:
- ==20481== in use at exit: 288 bytes in 1 blocks
- ==20481== total heap usage: 2 allocs, 1 frees, 567 bytes allocated
- ==20481==
- ==20481== Thread 1:
- ==20481== 288 bytes in 1 blocks are possibly lost in loss record 1 of 1
- ==20481== at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==20481== by 0x40149DA: allocate_dtv (dl-tls.c:286)
- ==20481== by 0x40149DA: _dl_allocate_tls (dl-tls.c:532)
- ==20481== by 0x4BB2322: allocate_stack (allocatestack.c:622)
- ==20481== by 0x4BB2322: pthread_create@@GLIBC_2.2.5 (pthread_create.c:660)
- ==20481== by 0x442D0F: thread._create-9796 (thread_unix.odin:107)
- ==20481== by 0x4425B9: thread.create (thread.odin:36)
- ==20481== by 0x442662: thread.run-9764 (thread.odin:76)
- ==20481== by 0x410818: src.main (main.odin:450)
- ==20481== by 0x445174: main (entry_unix.odin:29)
- ==20481==
- ==20481== LEAK SUMMARY:
- ==20481== definitely lost: 0 bytes in 0 blocks
- ==20481== indirectly lost: 0 bytes in 0 blocks
- ==20481== possibly lost: 288 bytes in 1 blocks
- ==20481== still reachable: 0 bytes in 0 blocks
- ==20481== suppressed: 0 bytes in 0 blocks
- ==20481==
- ==20481== For lists of detected and suppressed errors, rerun with: -s
- ==20481== ERROR SUMMARY: 8 errors from 4 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement