Skip to content

Instantly share code, notes, and snippets.

@subsetpark
Created December 29, 2020 00:14
Show Gist options
  • Save subsetpark/adc584986f3b9dbc93e4a972acf70806 to your computer and use it in GitHub Desktop.
Save subsetpark/adc584986f3b9dbc93e4a972acf70806 to your computer and use it in GitHub Desktop.
bagatto valgrind output
==62764== Thread 2:
==62764== Invalid read of size 4
==62764== at 0x151233: janet_table_find (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x156FA3: janet_table_get (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x122E79: markable_extract_options (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x1232BF: cfun_markdown_to_html (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x17987F: run_vm (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x17C36D: janet_continue_no_check (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x179221: run_vm (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x17C36D: janet_continue_no_check (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x179221: run_vm (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x17C36D: janet_continue_no_check (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x17CDAB: janet_pthread_wrapper (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x49D43E8: start_thread (in /usr/lib/libpthread-2.32.so)
==62764== Address 0x14 is not stack'd, malloc'd or (recently) free'd
==62764==
==62764==
==62764== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==62764== Access not within mapped region at address 0x14
==62764== at 0x151233: janet_table_find (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x156FA3: janet_table_get (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x122E79: markable_extract_options (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x1232BF: cfun_markdown_to_html (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x17987F: run_vm (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x17C36D: janet_continue_no_check (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x179221: run_vm (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x17C36D: janet_continue_no_check (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x179221: run_vm (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x17C36D: janet_continue_no_check (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x17CDAB: janet_pthread_wrapper (in /home/zax/code-src/bagatto/build/bag)
==62764== by 0x49D43E8: start_thread (in /usr/lib/libpthread-2.32.so)
==62764== If you believe this happened as a result of a stack
==62764== overflow in your program's main thread (unlikely but
==62764== possible), you can try to increase the size of the
==62764== main thread stack using the --main-stacksize= flag.
==62764== The main thread stack size used in this run was 8388608.
COPY SOME
==62764==
==62764== HEAP SUMMARY:
==62764== in use at exit: 2,570,792 bytes in 21,148 blocks
==62764== total heap usage: 51,571 allocs, 30,423 frees, 8,307,104 bytes allocated
==62764==
==62764== LEAK SUMMARY:
==62764== definitely lost: 0 bytes in 0 blocks
==62764== indirectly lost: 0 bytes in 0 blocks
==62764== possibly lost: 864 bytes in 3 blocks
==62764== still reachable: 2,569,928 bytes in 21,145 blocks
==62764== suppressed: 0 bytes in 0 blocks
==62764== Rerun with --leak-check=full to see details of leaked memory
==62764==
==62764== For lists of detected and suppressed errors, rerun with: -s
==62764== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment