fixing LD_LIBRARY_PATH and adding ls to know what happens inside the … #23
Annotations
7 warnings
Valgrind Report './test_invalid_free' (1)
==9== Invalid free() / delete / delete[] / realloc()
==9== at 0x484317B: free (vg_replace_malloc.c:872)
==9== by 0x10919A: main (test_invalid_free.c:8)
==9== Address 0x4a3a040 is 0 bytes inside a block of size 1 free'd
==9== at 0x484317B: free (vg_replace_malloc.c:872)
==9== by 0x10918E: main (test_invalid_free.c:7)
==9== Block was alloc'd at
==9== at 0x48407B4: malloc (vg_replace_malloc.c:381)
==9== by 0x10917E: main (test_invalid_free.c:5)
|
Valgrind Report './test_no_free' (1)
==9== 1 bytes in 1 blocks are definitely lost in loss record 1 of 1
==9== at 0x48407B4: malloc (vg_replace_malloc.c:381)
==9== by 0x10915E: main (test_no_free.c:5)
|
Valgrind Report './test_invalid_write' (1)
==10== Invalid write of size 4
==10== at 0x10918B: main (test_invalid_write.c:7)
==10== Address 0x4a3a044 is 3 bytes after a block of size 1 alloc'd
==10== at 0x48407B4: malloc (vg_replace_malloc.c:381)
==10== by 0x10917E: main (test_invalid_write.c:5)
|
Valgrind Report './test_realloc_zero' (1)
==9== 0 bytes in 1 blocks are definitely lost in loss record 1 of 1
==9== at 0x48406C4: malloc (vg_replace_malloc.c:380)
==9== by 0x10916D: main (test_realloc_zero.c:7)
|
Valgrind Report './test_unclosed_file_descriptor' (1)
==9== Open file descriptor 3: my_file.txt
==9== at 0x494DF01: open (open64.c:41)
==9== by 0x10916D: main (test_unclosed_file_descriptor.c:5)
|
Valgrind Report './test_invalid_read' (1)
==9== Invalid read of size 4
==9== at 0x109187: main (test_invalid_read.c:7)
==9== Address 0x4a3a044 is 3 bytes after a block of size 1 alloc'd
==9== at 0x48407B4: malloc (vg_replace_malloc.c:381)
==9== by 0x10917E: main (test_invalid_read.c:5)
|
Valgrind Report './test_invalid_read' (2)
==9== Invalid write of size 4
==9== at 0x10918E: main (test_invalid_read.c:7)
==9== Address 0x4a3a040 is 0 bytes inside a block of size 1 alloc'd
==9== at 0x48407B4: malloc (vg_replace_malloc.c:381)
==9== by 0x10917E: main (test_invalid_read.c:5)
|