Untitled
unknown
powershell
3 years ago
5.3 kB
7
Indexable
[aphilibert@fedora B-CPE-110-REN-1-1-BSQ-adrien.philibert]$ valgrind ./bsq mouli_maps/intermediate_map_97_21_filled ==2808== Memcheck, a memory error detector ==2808== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==2808== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info ==2808== Command: ./bsq mouli_maps/intermediate_map_97_21_filled ==2808== ==2808== Syscall param read(buf) points to unaddressable byte(s) ==2808== at 0x496C8D2: read (read.c:26) ==2808== by 0x4018AA: open_file (open_file.c:34) ==2808== by 0x401385: main (main.c:58) ==2808== Address 0x80d is not stack'd, malloc'd or (recently) free'd ==2808== ==2808== Syscall param read(buf) points to unaddressable byte(s) ==2808== at 0x496C8D2: read (read.c:26) ==2808== by 0x4018AA: open_file (open_file.c:34) ==2808== by 0x4013A7: main (main.c:60) ==2808== Address 0x80d is not stack'd, malloc'd or (recently) free'd ==2808== ==2808== Invalid read of size 8 ==2808== at 0x401B45: initialize_struct (struct.c:13) ==2808== by 0x4013D6: main (main.c:63) ==2808== Address 0x4a710e0 is 0 bytes inside a block of size 8 free'd ==2808== at 0x48480E4: free (vg_replace_malloc.c:872) ==2808== by 0x4021A8: my_str_to_word_array (my_str_to_word_array.c:61) ==2808== by 0x401B2F: initialize_struct (struct.c:12) ==2808== by 0x4013D6: main (main.c:63) ==2808== Block was alloc'd at ==2808== at 0x484586F: malloc (vg_replace_malloc.c:381) ==2808== by 0x402048: my_str_to_word_array (my_str_to_word_array.c:43) ==2808== by 0x401B2F: initialize_struct (struct.c:12) ==2808== by 0x4013D6: main (main.c:63) ==2808== ==2808== Conditional jump or move depends on uninitialised value(s) ==2808== at 0x401E72: my_str_isnum (my_str_isnum.c:10) ==2808== by 0x401B54: initialize_struct (struct.c:13) ==2808== by 0x4013D6: main (main.c:63) ==2808== ==2808== Conditional jump or move depends on uninitialised value(s) ==2808== at 0x401C09: initialize_struct (struct.c:21) ==2808== by 0x4013D6: main (main.c:63) ==2808== ==2808== Conditional jump or move depends on uninitialised value(s) ==2808== at 0x4845819: malloc (vg_replace_malloc.c:381) ==2808== by 0x401BF7: initialize_struct (struct.c:22) ==2808== by 0x4013D6: main (main.c:63) ==2808== ==2808== Argument 'size' of function malloc has a fishy (possibly negative) value: -67110336 ==2808== at 0x484586F: malloc (vg_replace_malloc.c:381) ==2808== by 0x401BF7: initialize_struct (struct.c:22) ==2808== by 0x4013D6: main (main.c:63) ==2808== ==2808== Invalid write of size 8 ==2808== at 0x401BF8: initialize_struct (struct.c:22) ==2808== by 0x4013D6: main (main.c:63) ==2808== Address 0x4a712c8 is 248 bytes inside a block of size 249 alloc'd ==2808== at 0x484586F: malloc (vg_replace_malloc.c:381) ==2808== by 0x401BB8: initialize_struct (struct.c:20) ==2808== by 0x4013D6: main (main.c:63) ==2808== ==2808== Invalid read of size 8 ==2808== at 0x401C17: initialize_struct (struct.c:23) ==2808== by 0x4013D6: main (main.c:63) ==2808== Address 0x4a710f0 is 8 bytes after a block of size 8 free'd ==2808== at 0x48480E4: free (vg_replace_malloc.c:872) ==2808== by 0x4021A8: my_str_to_word_array (my_str_to_word_array.c:61) ==2808== by 0x401B2F: initialize_struct (struct.c:12) ==2808== by 0x4013D6: main (main.c:63) ==2808== Block was alloc'd at ==2808== at 0x484586F: malloc (vg_replace_malloc.c:381) ==2808== by 0x402048: my_str_to_word_array (my_str_to_word_array.c:43) ==2808== by 0x401B2F: initialize_struct (struct.c:12) ==2808== by 0x4013D6: main (main.c:63) ==2808== ==2808== Invalid read of size 1 ==2808== at 0x401EFF: my_strlen (my_strlen.c:12) ==2808== by 0x401C21: initialize_struct (struct.c:23) ==2808== by 0x4013D6: main (main.c:63) ==2808== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==2808== ==2808== ==2808== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==2808== Access not within mapped region at address 0x0 ==2808== at 0x401EFF: my_strlen (my_strlen.c:12) ==2808== by 0x401C21: initialize_struct (struct.c:23) ==2808== by 0x4013D6: main (main.c:63) ==2808== If you believe this happened as a result of a stack ==2808== overflow in your program's main thread (unlikely but ==2808== possible), you can try to increase the size of the ==2808== main thread stack using the --main-stacksize= flag. ==2808== The main thread stack size used in this run was 8388608. ==2808== ==2808== HEAP SUMMARY: ==2808== in use at exit: 4,375 bytes in 5 blocks ==2808== total heap usage: 6 allocs, 1 frees, 4,383 bytes allocated ==2808== ==2808== LEAK SUMMARY: ==2808== definitely lost: 4,126 bytes in 4 blocks ==2808== indirectly lost: 0 bytes in 0 blocks ==2808== possibly lost: 0 bytes in 0 blocks ==2808== still reachable: 249 bytes in 1 blocks ==2808== suppressed: 0 bytes in 0 blocks ==2808== Rerun with --leak-check=full to see details of leaked memory ==2808== ==2808== Use --track-origins=yes to see where uninitialised values come from ==2808== For lists of detected and suppressed errors, rerun with: -s ==2808== ERROR SUMMARY: 104 errors from 10 contexts (suppressed: 0 from 0) Segmentation fault (core dumped)
Editor is loading...