Closed sukoi26 closed 2 years ago
Hmm. Seems to be a double free, but I'm unsure if I've made a mistake or Nuklear is doing the double free:
alloc: anyopaque@8a0c88 <---
alloc: anyopaque@8a1c98
alloc: anyopaque@8b1ab8
alloc: anyopaque@8b2ac8
alloc: anyopaque@8b3ad8
alloc: anyopaque@8b6af8
free: u8@8a0c88 <---
alloc: anyopaque@8b8b08
free: u8@8b6af8
alloc: anyopaque@8bcb18
free: u8@8b8b08
alloc: anyopaque@8b6af8
free: u8@8b1ab8
alloc: anyopaque@8b8b08
free: u8@8b6af8
alloc: anyopaque@8b6af8
free: u8@8b2ac8
alloc: anyopaque@8c4b28
free: u8@8b8b08
alloc: anyopaque@8b8b08
free: u8@8b6af8
alloc: anyopaque@8ccb38
free: u8@8c4b28
alloc: anyopaque@8c4b28
free: u8@8b8b08
free: u8@8a1c98
free: u8@8ccb38
free: u8@8c4b28
free: u8@8a0c88 <---
there is 2 concerns on when i leave , the second is the layout rezise memory align ? invalid blok of 8 below valgrind
zig-nuklear$ valgrind --leak-check=full --track-origins=yes zig-out/bin/examples ==12122== Memcheck, a memory error detector ==12122== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==12122== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==12122== Command: zig-out/bin/examples ==12122== ==12122== Invalid read of size 8 ==12122== at 0x22F4F6: .nuklear.heap.free (nuklear.zig:610) ==12122== by 0x27518C: nk_buffer_free (nuklear.h:8304) ==12122== by 0x297D91: nk_free (nuklear.h:18721) ==12122== by 0x21C3C4: .nuklear.free (nuklear.zig:456) ==12122== by 0x2192C7: main.0 (main.zig:43) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== by 0x21C7D7: std.start.initEventLoopAndCallMain (start.zig:508) ==12122== by 0x21C7D7: std.start.callMainWithArgs (start.zig:458) ==12122== by 0x21C582: main (start.zig:473) ==12122== Address 0x92c84b0 is 0 bytes inside a block of size 4,104 free'd ==12122== at 0x484217B: free (vg_replace_malloc.c:872) ==12122== by 0x2261A4: std.heap.CAllocator.alignedFree (heap.zig:82) ==12122== by 0x214440: std.heap.CAllocator.free (heap.zig:155) ==12122== by 0x24724A: std.mem.Allocator.rawFree (Allocator.zig:177) ==12122== by 0x24724A: std.mem.Allocator.free.140 (Allocator.zig:505) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x274DBC: nk_buffer_realloc (nuklear.h:8176) ==12122== by 0x274DBC: nk_buffer_alloc (nuklear.h:8231) ==12122== by 0x27682A: nk_command_buffer_push (nuklear.h:8735) ==12122== by 0x27695C: nk_stroke_line (nuklear.h:8783) ==12122== by 0x2B4B22: nk_chart_push_line (nuklear.h:27841) ==12122== by 0x2B4B22: nk_chart_push_slot (nuklear.h:27927) ==12122== by 0x2B523A: nk_chart_push (nuklear.h:27939) ==12122== by 0x226C7E: .nuklear.src.chart.push (chart.zig:35) ==12122== by 0x21AEA7: examples.showcase (examples.zig:132) ==12122== Block was alloc'd at ==12122== at 0x4844990: memalign (vg_replace_malloc.c:1516) ==12122== by 0x4844AEE: posix_memalign (vg_replace_malloc.c:1688) ==12122== by 0x225F53: std.heap.CAllocator.alignedAlloc (heap.zig:62) ==12122== by 0x21421B: std.heap.CAllocator.alloc (heap.zig:110) ==12122== by 0x254FBF: std.mem.Allocator.rawAlloc (Allocator.zig:167) ==12122== by 0x254FBF: std.mem.Allocator.allocAdvancedWithRetAddr.176 (Allocator.zig:314) ==12122== by 0x24AD99: std.mem.Allocator.allocAdvanced (Allocator.zig:282) ==12122== by 0x22F3AC: .nuklear.heap.alloc (nuklear.zig:597) ==12122== by 0x27487D: nk_buffer_init (nuklear.h:8107) ==12122== by 0x297C9A: nk_init (nuklear.h:18701) ==12122== by 0x219DFF: .nuklear.init (nuklear.zig:434) ==12122== by 0x21933B: main.0 (main.zig:42) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== ==12122== Invalid write of size 8 ==12122== at 0x48491DD: memset (vg_replace_strmem.c:1358) ==12122== by 0x247185: std.mem.Allocator.free.140 (Allocator.zig:504) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x27518C: nk_buffer_free (nuklear.h:8304) ==12122== by 0x297D91: nk_free (nuklear.h:18721) ==12122== by 0x21C3C4: .nuklear.free (nuklear.zig:456) ==12122== by 0x2192C7: main.0 (main.zig:43) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== by 0x21C7D7: std.start.initEventLoopAndCallMain (start.zig:508) ==12122== by 0x21C7D7: std.start.callMainWithArgs (start.zig:458) ==12122== by 0x21C582: main (start.zig:473) ==12122== Address 0x92c84b0 is 0 bytes inside a block of size 4,104 free'd ==12122== at 0x484217B: free (vg_replace_malloc.c:872) ==12122== by 0x2261A4: std.heap.CAllocator.alignedFree (heap.zig:82) ==12122== by 0x214440: std.heap.CAllocator.free (heap.zig:155) ==12122== by 0x24724A: std.mem.Allocator.rawFree (Allocator.zig:177) ==12122== by 0x24724A: std.mem.Allocator.free.140 (Allocator.zig:505) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x274DBC: nk_buffer_realloc (nuklear.h:8176) ==12122== by 0x274DBC: nk_buffer_alloc (nuklear.h:8231) ==12122== by 0x27682A: nk_command_buffer_push (nuklear.h:8735) ==12122== by 0x27695C: nk_stroke_line (nuklear.h:8783) ==12122== by 0x2B4B22: nk_chart_push_line (nuklear.h:27841) ==12122== by 0x2B4B22: nk_chart_push_slot (nuklear.h:27927) ==12122== by 0x2B523A: nk_chart_push (nuklear.h:27939) ==12122== by 0x226C7E: .nuklear.src.chart.push (chart.zig:35) ==12122== by 0x21AEA7: examples.showcase (examples.zig:132) ==12122== Block was alloc'd at ==12122== at 0x4844990: memalign (vg_replace_malloc.c:1516) ==12122== by 0x4844AEE: posix_memalign (vg_replace_malloc.c:1688) ==12122== by 0x225F53: std.heap.CAllocator.alignedAlloc (heap.zig:62) ==12122== by 0x21421B: std.heap.CAllocator.alloc (heap.zig:110) ==12122== by 0x254FBF: std.mem.Allocator.rawAlloc (Allocator.zig:167) ==12122== by 0x254FBF: std.mem.Allocator.allocAdvancedWithRetAddr.176 (Allocator.zig:314) ==12122== by 0x24AD99: std.mem.Allocator.allocAdvanced (Allocator.zig:282) ==12122== by 0x22F3AC: .nuklear.heap.alloc (nuklear.zig:597) ==12122== by 0x27487D: nk_buffer_init (nuklear.h:8107) ==12122== by 0x297C9A: nk_init (nuklear.h:18701) ==12122== by 0x219DFF: .nuklear.init (nuklear.zig:434) ==12122== by 0x21933B: main.0 (main.zig:42) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== ==12122== Invalid write of size 8 ==12122== at 0x48491E7: memset (vg_replace_strmem.c:1358) ==12122== by 0x247185: std.mem.Allocator.free.140 (Allocator.zig:504) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x27518C: nk_buffer_free (nuklear.h:8304) ==12122== by 0x297D91: nk_free (nuklear.h:18721) ==12122== by 0x21C3C4: .nuklear.free (nuklear.zig:456) ==12122== by 0x2192C7: main.0 (main.zig:43) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== by 0x21C7D7: std.start.initEventLoopAndCallMain (start.zig:508) ==12122== by 0x21C7D7: std.start.callMainWithArgs (start.zig:458) ==12122== by 0x21C582: main (start.zig:473) ==12122== Address 0x92c84b8 is 8 bytes inside a block of size 4,104 free'd ==12122== at 0x484217B: free (vg_replace_malloc.c:872) ==12122== by 0x2261A4: std.heap.CAllocator.alignedFree (heap.zig:82) ==12122== by 0x214440: std.heap.CAllocator.free (heap.zig:155) ==12122== by 0x24724A: std.mem.Allocator.rawFree (Allocator.zig:177) ==12122== by 0x24724A: std.mem.Allocator.free.140 (Allocator.zig:505) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x274DBC: nk_buffer_realloc (nuklear.h:8176) ==12122== by 0x274DBC: nk_buffer_alloc (nuklear.h:8231) ==12122== by 0x27682A: nk_command_buffer_push (nuklear.h:8735) ==12122== by 0x27695C: nk_stroke_line (nuklear.h:8783) ==12122== by 0x2B4B22: nk_chart_push_line (nuklear.h:27841) ==12122== by 0x2B4B22: nk_chart_push_slot (nuklear.h:27927) ==12122== by 0x2B523A: nk_chart_push (nuklear.h:27939) ==12122== by 0x226C7E: .nuklear.src.chart.push (chart.zig:35) ==12122== by 0x21AEA7: examples.showcase (examples.zig:132) ==12122== Block was alloc'd at ==12122== at 0x4844990: memalign (vg_replace_malloc.c:1516) ==12122== by 0x4844AEE: posix_memalign (vg_replace_malloc.c:1688) ==12122== by 0x225F53: std.heap.CAllocator.alignedAlloc (heap.zig:62) ==12122== by 0x21421B: std.heap.CAllocator.alloc (heap.zig:110) ==12122== by 0x254FBF: std.mem.Allocator.rawAlloc (Allocator.zig:167) ==12122== by 0x254FBF: std.mem.Allocator.allocAdvancedWithRetAddr.176 (Allocator.zig:314) ==12122== by 0x24AD99: std.mem.Allocator.allocAdvanced (Allocator.zig:282) ==12122== by 0x22F3AC: .nuklear.heap.alloc (nuklear.zig:597) ==12122== by 0x27487D: nk_buffer_init (nuklear.h:8107) ==12122== by 0x297C9A: nk_init (nuklear.h:18701) ==12122== by 0x219DFF: .nuklear.init (nuklear.zig:434) ==12122== by 0x21933B: main.0 (main.zig:42) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== ==12122== Invalid write of size 8 ==12122== at 0x48491EB: memset (vg_replace_strmem.c:1358) ==12122== by 0x247185: std.mem.Allocator.free.140 (Allocator.zig:504) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x27518C: nk_buffer_free (nuklear.h:8304) ==12122== by 0x297D91: nk_free (nuklear.h:18721) ==12122== by 0x21C3C4: .nuklear.free (nuklear.zig:456) ==12122== by 0x2192C7: main.0 (main.zig:43) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== by 0x21C7D7: std.start.initEventLoopAndCallMain (start.zig:508) ==12122== by 0x21C7D7: std.start.callMainWithArgs (start.zig:458) ==12122== by 0x21C582: main (start.zig:473) ==12122== Address 0x92c84c0 is 16 bytes inside a block of size 4,104 free'd ==12122== at 0x484217B: free (vg_replace_malloc.c:872) ==12122== by 0x2261A4: std.heap.CAllocator.alignedFree (heap.zig:82) ==12122== by 0x214440: std.heap.CAllocator.free (heap.zig:155) ==12122== by 0x24724A: std.mem.Allocator.rawFree (Allocator.zig:177) ==12122== by 0x24724A: std.mem.Allocator.free.140 (Allocator.zig:505) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x274DBC: nk_buffer_realloc (nuklear.h:8176) ==12122== by 0x274DBC: nk_buffer_alloc (nuklear.h:8231) ==12122== by 0x27682A: nk_command_buffer_push (nuklear.h:8735) ==12122== by 0x27695C: nk_stroke_line (nuklear.h:8783) ==12122== by 0x2B4B22: nk_chart_push_line (nuklear.h:27841) ==12122== by 0x2B4B22: nk_chart_push_slot (nuklear.h:27927) ==12122== by 0x2B523A: nk_chart_push (nuklear.h:27939) ==12122== by 0x226C7E: .nuklear.src.chart.push (chart.zig:35) ==12122== by 0x21AEA7: examples.showcase (examples.zig:132) ==12122== Block was alloc'd at ==12122== at 0x4844990: memalign (vg_replace_malloc.c:1516) ==12122== by 0x4844AEE: posix_memalign (vg_replace_malloc.c:1688) ==12122== by 0x225F53: std.heap.CAllocator.alignedAlloc (heap.zig:62) ==12122== by 0x21421B: std.heap.CAllocator.alloc (heap.zig:110) ==12122== by 0x254FBF: std.mem.Allocator.rawAlloc (Allocator.zig:167) ==12122== by 0x254FBF: std.mem.Allocator.allocAdvancedWithRetAddr.176 (Allocator.zig:314) ==12122== by 0x24AD99: std.mem.Allocator.allocAdvanced (Allocator.zig:282) ==12122== by 0x22F3AC: .nuklear.heap.alloc (nuklear.zig:597) ==12122== by 0x27487D: nk_buffer_init (nuklear.h:8107) ==12122== by 0x297C9A: nk_init (nuklear.h:18701) ==12122== by 0x219DFF: .nuklear.init (nuklear.zig:434) ==12122== by 0x21933B: main.0 (main.zig:42) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== ==12122== Invalid write of size 8 ==12122== at 0x48491EF: memset (vg_replace_strmem.c:1358) ==12122== by 0x247185: std.mem.Allocator.free.140 (Allocator.zig:504) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x27518C: nk_buffer_free (nuklear.h:8304) ==12122== by 0x297D91: nk_free (nuklear.h:18721) ==12122== by 0x21C3C4: .nuklear.free (nuklear.zig:456) ==12122== by 0x2192C7: main.0 (main.zig:43) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== by 0x21C7D7: std.start.initEventLoopAndCallMain (start.zig:508) ==12122== by 0x21C7D7: std.start.callMainWithArgs (start.zig:458) ==12122== by 0x21C582: main (start.zig:473) ==12122== Address 0x92c84c8 is 24 bytes inside a block of size 4,104 free'd ==12122== at 0x484217B: free (vg_replace_malloc.c:872) ==12122== by 0x2261A4: std.heap.CAllocator.alignedFree (heap.zig:82) ==12122== by 0x214440: std.heap.CAllocator.free (heap.zig:155) ==12122== by 0x24724A: std.mem.Allocator.rawFree (Allocator.zig:177) ==12122== by 0x24724A: std.mem.Allocator.free.140 (Allocator.zig:505) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x274DBC: nk_buffer_realloc (nuklear.h:8176) ==12122== by 0x274DBC: nk_buffer_alloc (nuklear.h:8231) ==12122== by 0x27682A: nk_command_buffer_push (nuklear.h:8735) ==12122== by 0x27695C: nk_stroke_line (nuklear.h:8783) ==12122== by 0x2B4B22: nk_chart_push_line (nuklear.h:27841) ==12122== by 0x2B4B22: nk_chart_push_slot (nuklear.h:27927) ==12122== by 0x2B523A: nk_chart_push (nuklear.h:27939) ==12122== by 0x226C7E: .nuklear.src.chart.push (chart.zig:35) ==12122== by 0x21AEA7: examples.showcase (examples.zig:132) ==12122== Block was alloc'd at ==12122== at 0x4844990: memalign (vg_replace_malloc.c:1516) ==12122== by 0x4844AEE: posix_memalign (vg_replace_malloc.c:1688) ==12122== by 0x225F53: std.heap.CAllocator.alignedAlloc (heap.zig:62) ==12122== by 0x21421B: std.heap.CAllocator.alloc (heap.zig:110) ==12122== by 0x254FBF: std.mem.Allocator.rawAlloc (Allocator.zig:167) ==12122== by 0x254FBF: std.mem.Allocator.allocAdvancedWithRetAddr.176 (Allocator.zig:314) ==12122== by 0x24AD99: std.mem.Allocator.allocAdvanced (Allocator.zig:282) ==12122== by 0x22F3AC: .nuklear.heap.alloc (nuklear.zig:597) ==12122== by 0x27487D: nk_buffer_init (nuklear.h:8107) ==12122== by 0x297C9A: nk_init (nuklear.h:18701) ==12122== by 0x219DFF: .nuklear.init (nuklear.zig:434) ==12122== by 0x21933B: main.0 (main.zig:42) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== ==12122== Invalid write of size 8 ==12122== at 0x48491E4: memset (vg_replace_strmem.c:1358) ==12122== by 0x247185: std.mem.Allocator.free.140 (Allocator.zig:504) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x27518C: nk_buffer_free (nuklear.h:8304) ==12122== by 0x297D91: nk_free (nuklear.h:18721) ==12122== by 0x21C3C4: .nuklear.free (nuklear.zig:456) ==12122== by 0x2192C7: main.0 (main.zig:43) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== by 0x21C7D7: std.start.initEventLoopAndCallMain (start.zig:508) ==12122== by 0x21C7D7: std.start.callMainWithArgs (start.zig:458) ==12122== by 0x21C582: main (start.zig:473) ==12122== Address 0x92c84d0 is 32 bytes inside a block of size 4,104 free'd ==12122== at 0x484217B: free (vg_replace_malloc.c:872) ==12122== by 0x2261A4: std.heap.CAllocator.alignedFree (heap.zig:82) ==12122== by 0x214440: std.heap.CAllocator.free (heap.zig:155) ==12122== by 0x24724A: std.mem.Allocator.rawFree (Allocator.zig:177) ==12122== by 0x24724A: std.mem.Allocator.free.140 (Allocator.zig:505) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x274DBC: nk_buffer_realloc (nuklear.h:8176) ==12122== by 0x274DBC: nk_buffer_alloc (nuklear.h:8231) ==12122== by 0x27682A: nk_command_buffer_push (nuklear.h:8735) ==12122== by 0x27695C: nk_stroke_line (nuklear.h:8783) ==12122== by 0x2B4B22: nk_chart_push_line (nuklear.h:27841) ==12122== by 0x2B4B22: nk_chart_push_slot (nuklear.h:27927) ==12122== by 0x2B523A: nk_chart_push (nuklear.h:27939) ==12122== by 0x226C7E: .nuklear.src.chart.push (chart.zig:35) ==12122== by 0x21AEA7: examples.showcase (examples.zig:132) ==12122== Block was alloc'd at ==12122== at 0x4844990: memalign (vg_replace_malloc.c:1516) ==12122== by 0x4844AEE: posix_memalign (vg_replace_malloc.c:1688) ==12122== by 0x225F53: std.heap.CAllocator.alignedAlloc (heap.zig:62) ==12122== by 0x21421B: std.heap.CAllocator.alloc (heap.zig:110) ==12122== by 0x254FBF: std.mem.Allocator.rawAlloc (Allocator.zig:167) ==12122== by 0x254FBF: std.mem.Allocator.allocAdvancedWithRetAddr.176 (Allocator.zig:314) ==12122== by 0x24AD99: std.mem.Allocator.allocAdvanced (Allocator.zig:282) ==12122== by 0x22F3AC: .nuklear.heap.alloc (nuklear.zig:597) ==12122== by 0x27487D: nk_buffer_init (nuklear.h:8107) ==12122== by 0x297C9A: nk_init (nuklear.h:18701) ==12122== by 0x219DFF: .nuklear.init (nuklear.zig:434) ==12122== by 0x21933B: main.0 (main.zig:42) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== Segmentation fault at address 0x9c61000 ???:?:?: 0x48491eb in ??? (???) ==12122== Syscall param msync(start) points to uninitialised byte(s) ==12122== at 0x4A95743: msync (msync.c:25) ==12122== by 0x25AE8E: std.os.msync (os.zig:4422) ==12122== by 0x254958: std.debug.StackIterator.isValidMemory (debug.zig:436) ==12122== by 0x24A2E9: std.debug.StackIterator.next_internal (debug.zig:479) ==12122== by 0x24A0AD: std.debug.StackIterator.next (debug.zig:415) ==12122== by 0x255BCD: std.debug.dumpStackTraceFromBase (debug.zig:149) ==12122== by 0x24C007: std.debug.handleSegfaultPosix (debug.zig:1783) ==12122== by 0x4A961FF: ??? (in /usr/lib/x86_64-linux-gnu/libpthread-2.33.so) ==12122== by 0x48491EA: memset (vg_replace_strmem.c:1358) ==12122== by 0x247185: std.mem.Allocator.free.140 (Allocator.zig:504) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x27518C: nk_buffer_free (nuklear.h:8304) ==12122== Address 0x1ffeff3000 is on thread 1's stack ==12122== Uninitialised value was created ==12122== at 0x48491EB: memset (vg_replace_strmem.c:1358) ==12122== by 0x247185: std.mem.Allocator.free.140 (Allocator.zig:504) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x27518C: nk_buffer_free (nuklear.h:8304) ==12122== by 0x297D91: nk_free (nuklear.h:18721) ==12122== by 0x21C3C4: .nuklear.free (nuklear.zig:456) ==12122== by 0x2192C7: main.0 (main.zig:43) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== by 0x21C7D7: std.start.initEventLoopAndCallMain (start.zig:508) ==12122== by 0x21C7D7: std.start.callMainWithArgs (start.zig:458) ==12122== by 0x21C582: main (start.zig:473) ==12122== dvp/zig-nuklear/nuklear.zig:613:16: 0x22f578 in .nuklear.heap.free (examples) al.free(old_with_header[0 .. header_size + header.size]); ^ src/c/nuklear/nuklear.h:8304:5: 0x27518c in nk_buffer_free (dvp/zig-nuklear/src/c/nuklear.c) b->pool.free(b->pool.userdata, b->memory.ptr); ^ src/c/nuklear/nuklear.h:18721:5: 0x297d91 in nk_free (dvp/zig-nuklear/src/c/nuklear.c) nk_buffer_free(&ctx->memory); ^ dvp/zig-nuklear/nuklear.zig:456:14: 0x21c3c4 in .nuklear.free (examples) c.nk_free(ctx); ^ dvp/zig-nuklear/examples/main.zig:43:18: 0x2192c7 in main (examples) defer nk.free(&ctx); ^ dvp/zig/lib/std/start.zig:574:37: 0x230467 in std.start.callMain (examples) const result = root.main() catch |err| { ^ dvp/zig/lib/std/start.zig:508:12: 0x21c7d7 in std.start.callMainWithArgs (examples) return @call(.{ .modifier = .always_inline }, callMain, .{}); ^ dvp/zig/lib/std/start.zig:473:12: 0x21c582 in std.start.main (examples) return @call(.{ .modifier = .always_inline }, callMainWithArgs, .{ @intCast(usize, c_argc), c_argv, envp }); ^ ???:?:?: 0x4aca7fc in ??? (???) ==12122== ==12122== Process terminating with default action of signal 6 (SIGABRT) ==12122== at 0x4ADF8A1: raise (raise.c:50) ==12122== by 0x4AC9545: abort (abort.c:79) ==12122== by 0x2256E8: std.os.abort (os.zig:471) ==12122== by 0x24C00C: std.debug.handleSegfaultPosix (debug.zig:1810) ==12122== by 0x4A961FF: ??? (in /usr/lib/x86_64-linux-gnu/libpthread-2.33.so) ==12122== by 0x48491EA: memset (vg_replace_strmem.c:1358) ==12122== by 0x247185: std.mem.Allocator.free.140 (Allocator.zig:504) ==12122== by 0x22F578: .nuklear.heap.free (nuklear.zig:613) ==12122== by 0x27518C: nk_buffer_free (nuklear.h:8304) ==12122== by 0x297D91: nk_free (nuklear.h:18721) ==12122== by 0x21C3C4: .nuklear.free (nuklear.zig:456) ==12122== by 0x2192C7: main.0 (main.zig:43) ==12122== ==12122== HEAP SUMMARY: ==12122== in use at exit: 7,000,040 bytes in 5,137 blocks ==12122== total heap usage: 32,282 allocs, 27,145 frees, 271,149,540 bytes allocated ==12122== ==12122== 24 bytes in 1 blocks are definitely lost in loss record 513 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x6056366: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x6029BA6: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x6031B14: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x601873E: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x6053B09: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x6055CD0: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x6055DD1: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x5D14FC1: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D0F33A: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D4A8AA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x4D6A7E2: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== ==12122== 32 bytes in 1 blocks are definitely lost in loss record 585 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x605637B: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x6016A30: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x605346C: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x5D10682: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x726A305: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0E66C: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x7345023: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7346115: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73467D3: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x734A1A2: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7321666: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== ==12122== 48 bytes in 2 blocks are definitely lost in loss record 650 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x6056366: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x6029BA6: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x60319AA: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x601873E: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x6053B09: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x6055CD0: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x6055DD1: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x5D14FC1: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D0F33A: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D4A8AA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x4D6A7E2: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== ==12122== 80 bytes in 1 blocks are possibly lost in loss record 955 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x4CEF366: ??? (in /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0) ==12122== by 0x4CEF5E4: glDispatchInit (in /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0) ==12122== by 0x4D6A428: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== by 0x401000D: call_init.part.0 (dl-init.c:74) ==12122== by 0x40100EF: call_init (dl-init.c:37) ==12122== by 0x40100EF: _dl_init (dl-init.c:121) ==12122== by 0x4001089: ??? (in /usr/lib/x86_64-linux-gnu/ld-2.33.so) ==12122== ==12122== 80 bytes in 1 blocks are possibly lost in loss record 956 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x4CEF366: ??? (in /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0) ==12122== by 0x4CEF7AC: glDispatchRegisterStubCallbacks (in /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0) ==12122== by 0x4894135: ??? (in /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.7.0) ==12122== by 0x401000D: call_init.part.0 (dl-init.c:74) ==12122== by 0x40100EF: call_init (dl-init.c:37) ==12122== by 0x40100EF: _dl_init (dl-init.c:121) ==12122== by 0x4001089: ??? (in /usr/lib/x86_64-linux-gnu/ld-2.33.so) ==12122== ==12122== 128 bytes in 1 blocks are definitely lost in loss record 1,094 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7277849: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x72762CE: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7286458: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0CC68: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D72C45: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D0C1DA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5: ??? ==12122== by 0x400FFC9: call_init.part.0 (dl-init.c:60) ==12122== by 0x40100EF: call_init (dl-init.c:37) ==12122== by 0x40100EF: _dl_init (dl-init.c:121) ==12122== by 0x4BDB68C: _dl_catch_exception (dl-error-skeleton.c:182) ==12122== ==12122== 144 bytes in 2 blocks are definitely lost in loss record 1,107 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x7281E44: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7701204: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x77017C4: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7704E14: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73A8D5F: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7300082: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7301D59: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7302148: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7360421: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x735C163: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73F4205: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== ==12122== 167 bytes in 1 blocks are possibly lost in loss record 1,115 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x730226A: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094298: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094725: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x6F63063: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7313232: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73168CC: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7269354: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0F1C2: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D4A8AA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x4D6A7E2: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== ==12122== 288 bytes in 1 blocks are definitely lost in loss record 1,229 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x604D3B8: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x6055D8F: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.470.86) ==12122== by 0x5D14FC1: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D0F33A: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D4A8AA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x4D6A7E2: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== by 0x4D6B144: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== by 0x4D6C3CF: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== by 0x48F1F82: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x48E14B5: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x48E6EEA: glfwCreateWindow (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== ==12122== 311 bytes in 1 blocks are possibly lost in loss record 1,231 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x730226A: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x70943DB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094725: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x6F63063: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7313232: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73168CC: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7269354: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0F1C2: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D4A8AA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x4D6A7E2: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== ==12122== 416 (208 direct, 208 indirect) bytes in 1 blocks are definitely lost in loss record 1,249 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x4DE79DE: _XEnq (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE43A6: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE4FE0: _XReadEvents (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DCC213: XIfEvent (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4E052F8: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4E0736A: _XimProtoOpenIM (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4E0B827: _XimOpenIM (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x48EA3CD: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x48E2019: glfwInit (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x218EF9: main.0 (main.zig:16) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== ==12122== 504 bytes in 1 blocks are definitely lost in loss record 1,283 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73A7ADC: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73E2F92: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73E2FC8: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73E401A: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73E4263: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73E445B: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7265DAB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7267874: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x735FB33: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D6B0D0: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== ==12122== 589 (128 direct, 461 indirect) bytes in 1 blocks are definitely lost in loss record 1,336 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7277849: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x72747F8: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7275E7C: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7286422: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0CC68: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D72C45: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D0C1DA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5: ??? ==12122== by 0x400FFC9: call_init.part.0 (dl-init.c:60) ==12122== by 0x40100EF: call_init (dl-init.c:37) ==12122== by 0x40100EF: _dl_init (dl-init.c:121) ==12122== ==12122== 599 bytes in 1 blocks are possibly lost in loss record 1,338 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x730226A: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094277: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094725: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x6F63063: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7313232: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73168CC: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7269354: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0F1C2: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D4A8AA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x4D6A7E2: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== ==12122== 936 (144 direct, 792 indirect) bytes in 2 blocks are definitely lost in loss record 1,482 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x7281E44: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7701204: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x77017C4: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7704E14: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73A8D5F: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7300082: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7301EC5: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7302148: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7360421: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x735C163: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73454AF: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== ==12122== 1,008 bytes in 2 blocks are definitely lost in loss record 1,486 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73A7ADC: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7300082: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7301EC5: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7302148: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7360421: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x735C163: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73454AF: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73C9399: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73CCC78: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73AB900: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== ==12122== 1,127 bytes in 1 blocks are possibly lost in loss record 1,498 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x7281E44: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7302210: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x74D9408: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x74D9456: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x6F64727: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7315E67: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7267633: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0EF3A: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D48DB5: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D38916: glXCreateContextAttribsARB (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x4D6BD1B: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== ==12122== 1,336 bytes in 8 blocks are possibly lost in loss record 1,513 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x730226A: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094413: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094725: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x6F63063: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7313232: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73168CC: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7269354: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0F1C2: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D4A8AA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x4D6A7E2: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== ==12122== 1,512 bytes in 3 blocks are definitely lost in loss record 1,518 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73A7ADC: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7300082: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7301D59: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7302148: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7360421: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x735C163: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73F4205: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73F4302: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73F462E: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73F5275: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== ==12122== 3,744 (832 direct, 2,912 indirect) bytes in 4 blocks are definitely lost in loss record 1,557 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x4DE79DE: _XEnq (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE43A6: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE549C: _XReply (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DCF873: XInternAtom (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE3928: XSetWMProperties (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4E0242E: Xutf8SetWMProperties (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x48ED6C9: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x48EDC7A: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x48EE0AD: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x48E6E7A: glfwCreateWindow (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x218F67: main.0 (main.zig:19) ==12122== ==12122== 3,744 bytes in 18 blocks are definitely lost in loss record 1,558 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x4DE79DE: _XEnq (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE43A6: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE549C: _XReply (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DCB7C0: _XGetWindowAttributes (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DCB929: XGetWindowAttributes (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x48EE40E: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x21BBF1: render (main.zig:169) ==12122== by 0x21928C: main.0 (main.zig:69) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== by 0x21C7D7: std.start.initEventLoopAndCallMain (start.zig:508) ==12122== by 0x21C7D7: std.start.callMainWithArgs (start.zig:458) ==12122== by 0x21C582: main (start.zig:473) ==12122== ==12122== 4,631 bytes in 1 blocks are possibly lost in loss record 1,565 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x730226A: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094257: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094725: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x6F63063: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7313232: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73168CC: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7269354: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0F1C2: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D4A8AA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x4D6A7E2: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== ==12122== 4,631 bytes in 1 blocks are possibly lost in loss record 1,566 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x730226A: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x709443D: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094725: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x6F63063: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7313232: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73168CC: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7269354: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0F1C2: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D4A8AA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x4D6A7E2: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== ==12122== 5,200 (1,456 direct, 3,744 indirect) bytes in 7 blocks are definitely lost in loss record 1,570 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x4DE79DE: _XEnq (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE43A6: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE4EA9: _XEventsQueued (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DC109C: XCheckTypedWindowEvent (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x48EEF36: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x48E6F36: glfwCreateWindow (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x218F67: main.0 (main.zig:19) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== by 0x21C7D7: std.start.initEventLoopAndCallMain (start.zig:508) ==12122== by 0x21C7D7: std.start.callMainWithArgs (start.zig:458) ==12122== by 0x21C582: main (start.zig:473) ==12122== ==12122== 6,448 bytes in 31 blocks are definitely lost in loss record 1,576 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x4DE79DE: _XEnq (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE43A6: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE4EA9: _XEventsQueued (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE7E34: _XGetRequest (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DDE4E9: XSendEvent (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x48F09B0: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3) ==12122== by 0x21A040: input (main.zig:88) ==12122== by 0x219274: main.0 (main.zig:67) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== by 0x21C7D7: std.start.initEventLoopAndCallMain (start.zig:508) ==12122== by 0x21C7D7: std.start.callMainWithArgs (start.zig:458) ==12122== by 0x21C582: main (start.zig:473) ==12122== ==12122== 9,984 bytes in 48 blocks are definitely lost in loss record 1,587 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x4DE79DE: _XEnq (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE43A6: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DE4EA9: _XEventsQueued (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x4DC63D9: XFlush (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0) ==12122== by 0x21A040: input (main.zig:88) ==12122== by 0x219274: main.0 (main.zig:67) ==12122== by 0x230467: std.start.callMain (start.zig:574) ==12122== by 0x21C7D7: std.start.initEventLoopAndCallMain (start.zig:508) ==12122== by 0x21C7D7: std.start.callMainWithArgs (start.zig:458) ==12122== by 0x21C582: main (start.zig:473) ==12122== ==12122== 11,016 (6,120 direct, 4,896 indirect) bytes in 5 blocks are definitely lost in loss record 1,590 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x7281E44: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7266265: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x727039A: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D10DB8: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D118BB: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x72682AC: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D68DA3: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D10AA2: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x72687F4: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D15042: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D0F33A: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== ==12122== 11,704 bytes in 8 blocks are possibly lost in loss record 1,591 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x730226A: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094328: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7094725: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x6F63063: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7313232: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73168CC: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7269354: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0F1C2: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D4A8AA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x4D6A7E2: ??? (in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0) ==12122== ==12122== 27,443 (6,024 direct, 21,419 indirect) bytes in 1 blocks are definitely lost in loss record 1,609 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7279285: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x72747E0: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7275E7C: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7286422: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0CC68: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D72C45: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D0C1DA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5: ??? ==12122== by 0x400FFC9: call_init.part.0 (dl-init.c:60) ==12122== by 0x40100EF: call_init (dl-init.c:37) ==12122== by 0x40100EF: _dl_init (dl-init.c:121) ==12122== ==12122== 32,776 bytes in 1 blocks are possibly lost in loss record 1,615 of 1,643 ==12122== at 0x4844990: memalign (vg_replace_malloc.c:1516) ==12122== by 0x4844AEE: posix_memalign (vg_replace_malloc.c:1688) ==12122== by 0x225F53: std.heap.CAllocator.alignedAlloc (heap.zig:62) ==12122== by 0x21421B: std.heap.CAllocator.alloc (heap.zig:110) ==12122== by 0x254FBF: std.mem.Allocator.rawAlloc (Allocator.zig:167) ==12122== by 0x254FBF: std.mem.Allocator.allocAdvancedWithRetAddr.176 (Allocator.zig:314) ==12122== by 0x24AD99: std.mem.Allocator.allocAdvanced (Allocator.zig:282) ==12122== by 0x22F35E: .nuklear.heap.alloc (nuklear.zig:594) ==12122== by 0x274D71: nk_buffer_realloc (nuklear.h:8169) ==12122== by 0x274D71: nk_buffer_alloc (nuklear.h:8231) ==12122== by 0x27682A: nk_command_buffer_push (nuklear.h:8735) ==12122== by 0x27695C: nk_stroke_line (nuklear.h:8783) ==12122== by 0x2B4B22: nk_chart_push_line (nuklear.h:27841) ==12122== by 0x2B4B22: nk_chart_push_slot (nuklear.h:27927) ==12122== by 0x2B5616: nk_chart_push (nuklear.h:27939) ==12122== by 0x2B5616: nk_plot_function (nuklear.h:28003) ==12122== ==12122== 122,447 (896 direct, 121,551 indirect) bytes in 1 blocks are definitely lost in loss record 1,627 of 1,643 ==12122== at 0x484482F: realloc (vg_replace_malloc.c:1437) ==12122== by 0x7281552: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x72778E0: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7274F4E: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7287168: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D0CC68: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D72C45: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D0C1DA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5: ??? ==12122== by 0x400FFC9: call_init.part.0 (dl-init.c:60) ==12122== by 0x40100EF: call_init (dl-init.c:37) ==12122== by 0x40100EF: _dl_init (dl-init.c:121) ==12122== by 0x4BDB68C: _dl_catch_exception (dl-error-skeleton.c:182) ==12122== ==12122== 262,167 bytes in 1 blocks are possibly lost in loss record 1,637 of 1,643 ==12122== at 0x483F7B5: malloc (vg_replace_malloc.c:381) ==12122== by 0x7281E44: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7302210: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7266330: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x728316E: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73ADF28: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x73AEDC5: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7026760: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x70323A0: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x70340B3: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x7034437: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x219C80: uploadAtlas (main.zig:284) ==12122== ==12122== 307,271 bytes in 1 blocks are possibly lost in loss record 1,639 of 1,643 ==12122== at 0x48445EF: calloc (vg_replace_malloc.c:1328) ==12122== by 0x72822AB: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x730226A: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x6F6F81A: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.86) ==12122== by 0x5D445EF: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D4CB1E: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D0CD6A: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D72C45: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5D0C1DA: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.470.86) ==12122== by 0x5: ??? ==12122== by 0x400FFC9: call_init.part.0 (dl-init.c:60) ==12122== by 0x40100EF: call_init (dl-init.c:37) ==12122== by 0x40100EF: _dl_init (dl-init.c:121) ==12122== ==12122== LEAK SUMMARY: ==12122== definitely lost: 39,672 bytes in 133 blocks ==12122== indirectly lost: 155,983 bytes in 840 blocks ==12122== possibly lost: 626,880 bytes in 27 blocks ==12122== still reachable: 6,177,505 bytes in 4,137 blocks ==12122== of which reachable via heuristic: ==12122== length64 : 64,536 bytes in 5 blocks ==12122== newarray : 216 bytes in 2 blocks ==12122== multipleinheritance: 104 bytes in 1 blocks ==12122== suppressed: 0 bytes in 0 blocks ==12122== Reachable blocks (those to which a pointer was found) are not shown. ==12122== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==12122== ==12122== For lists of detected and suppressed errors, rerun with: -s ==12122== ERROR SUMMARY: 592562 errors from 40 contexts (suppressed: 0 from 0) Abandon ~/dvp/zig-nuklear$
This commit should fix it
when i close the example, i received this error :
~/dvp/zig-nuklear$ zig-out/bin/examples Segmentation fault at address 0x9f2000 ???:?:?: 0x7f29767be033 in ??? (???) zig-nuklear/nuklear.zig:613:16: 0x22f578 in .nuklear.heap.free (examples) al.free(old_with_header[0 .. header_size + header.size]); ^ src/c/nuklear/nuklear.h:8304:5: 0x27518c in nk_buffer_free (zig-nuklear/src/c/nuklear.c) b->pool.free(b->pool.userdata, b->memory.ptr); ^ src/c/nuklear/nuklear.h:18721:5: 0x297d91 in nk_free (zig-nuklear/src/c/nuklear.c) nk_buffer_free(&ctx->memory); ^ zig-nuklear/nuklear.zig:456:14: 0x21c3c4 in .nuklear.free (examples) c.nk_free(ctx); ^ zig-nuklear/examples/main.zig:43:18: 0x2192c7 in main (examples) defer nk.free(&ctx); ^ zig/lib/std/start.zig:574:37: 0x230467 in std.start.callMain (examples) const result = root.main() catch |err| { ^ zig/lib/std/start.zig:508:12: 0x21c7d7 in std.start.callMainWithArgs (examples) return @call(.{ .modifier = .always_inline }, callMain, .{}); ^ zig/lib/std/start.zig:473:12: 0x21c582 in std.start.main (examples) return @call(.{ .modifier = .always_inline }, callMainWithArgs, .{ @intCast(usize, c_argc), c_argv, envp }); ^ ???:?:?: 0x7f297673d7fc in ??? (???) Abandon
if i comment the line 43 of main.zig // defer nk.free(&ctx); no message , no segfault