Thank you for the reply. I'm running it here: (im doing this for interview)
https://leetcode.com/problems/merge-intervals/
i don't really understand whats the meaning of the error message:
and the message is like:
Runtime Error
=================================================================
==22==ERROR: AddressSanitizer: heap-use-after-free on address 0x6030000000b0 at pc 0x000000369775 bp 0x7ffff11ca7e0 sp 0x7ffff11ca7d8
READ of size 8 at 0x6030000000b0 thread T0
#3 0x7ffb02b9d082 (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
0x6030000000b0 is located 16 bytes inside of 24-byte region [0x6030000000a0,0x6030000000b8)
freed by thread T0 here:
#4 0x7ffb02b9d082 (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
previously allocated by thread T0 here:
#4 0x7ffb02b9d082 (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
Shadow bytes around the buggy address:
0x0c067fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff8000: fa fa 00 00 00 07 fa fa fd fd fd fa fa fa fd fd
=>0x0c067fff8010: fd fa fa fa fd fd[fd]fa fa fa fa fa fa fa fa fa
0x0c067fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==22==ABORTING