==21989== Memcheck, a memory error detector ==21989== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==21989== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==21989== Command: /home/amcap1712/gnuastro/build/bin/table/asttable /home/amcap1712/gnuastro/table.txt -carith\ c2\ ra-to-decimal ==21989== ==21989== Conditional jump or move depends on uninitialised value(s) ==21989== at 0x4842F14: strspn (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==21989== by 0x5212508: strtok_r (strtok_r.c:56) ==21989== by 0x4C128C: gal_units_extract_decimal (units.c:32) ==21989== by 0x4C13D3: gal_units_ra_to_decimal (units.c:73) ==21989== by 0x127AC8: arithmetic_unary_function (arithmetic.c:491) ==21989== by 0x1472E7: gal_arithmetic (arithmetic.c:2009) ==21989== by 0x111C23: arithmetic_operator_run (arithmetic.c:595) ==21989== by 0x111D24: arithmetic_reverse_polish (arithmetic.c:641) ==21989== by 0x111F38: arithmetic_operate (arithmetic.c:728) ==21989== by 0x11310D: table (table.c:542) ==21989== by 0x10D54C: main (main.c:49) ==21989== ==21989== Conditional jump or move depends on uninitialised value(s) ==21989== at 0x4842E29: strcspn (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==21989== by 0x521251D: strtok_r (strtok_r.c:64) ==21989== by 0x4C128C: gal_units_extract_decimal (units.c:32) ==21989== by 0x4C13D3: gal_units_ra_to_decimal (units.c:73) ==21989== by 0x127AC8: arithmetic_unary_function (arithmetic.c:491) ==21989== by 0x1472E7: gal_arithmetic (arithmetic.c:2009) ==21989== by 0x111C23: arithmetic_operator_run (arithmetic.c:595) ==21989== by 0x111D24: arithmetic_reverse_polish (arithmetic.c:641) ==21989== by 0x111F38: arithmetic_operate (arithmetic.c:728) ==21989== by 0x11310D: table (table.c:542) ==21989== by 0x10D54C: main (main.c:49) ==21989== ==21989== Invalid read of size 1 ==21989== at 0x4C132A: gal_units_extract_decimal (units.c:21) ==21989== by 0x4C13D3: gal_units_ra_to_decimal (units.c:73) ==21989== by 0x127AC8: arithmetic_unary_function (arithmetic.c:491) ==21989== by 0x1472E7: gal_arithmetic (arithmetic.c:2009) ==21989== by 0x111C23: arithmetic_operator_run (arithmetic.c:595) ==21989== by 0x111D24: arithmetic_reverse_polish (arithmetic.c:641) ==21989== by 0x111F38: arithmetic_operate (arithmetic.c:728) ==21989== by 0x11310D: table (table.c:542) ==21989== by 0x10D54C: main (main.c:49) ==21989== Address 0x6646be9 is 0 bytes after a block of size 9 alloc'd ==21989== at 0x483A7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==21989== by 0x521153E: strdup (strdup.c:42) ==21989== by 0x4C1227: gal_units_extract_decimal (units.c:19) ==21989== by 0x4C13D3: gal_units_ra_to_decimal (units.c:73) ==21989== by 0x127AC8: arithmetic_unary_function (arithmetic.c:491) ==21989== by 0x1472E7: gal_arithmetic (arithmetic.c:2009) ==21989== by 0x111C23: arithmetic_operator_run (arithmetic.c:595) ==21989== by 0x111D24: arithmetic_reverse_polish (arithmetic.c:641) ==21989== by 0x111F38: arithmetic_operate (arithmetic.c:728) ==21989== by 0x11310D: table (table.c:542) ==21989== by 0x10D54C: main (main.c:49) ==21989== ==21989== Invalid write of size 8 ==21989== at 0x127ACE: arithmetic_unary_function (arithmetic.c:491) ==21989== by 0x1472E7: gal_arithmetic (arithmetic.c:2009) ==21989== by 0x111C23: arithmetic_operator_run (arithmetic.c:595) ==21989== by 0x111D24: arithmetic_reverse_polish (arithmetic.c:641) ==21989== by 0x111F38: arithmetic_operate (arithmetic.c:728) ==21989== by 0x11310D: table (table.c:542) ==21989== by 0x10D54C: main (main.c:49) ==21989== Address 0x6646b90 is 16 bytes inside a block of size 20 alloc'd ==21989== at 0x483A7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==21989== by 0x363BE5: gal_pointer_allocate (pointer.c:88) ==21989== by 0x34058D: gal_data_initialize (data.c:200) ==21989== by 0x3401BC: gal_data_alloc (data.c:84) ==21989== by 0x11B5E2: arithmetic_unary_function (arithmetic.c:470) ==21989== by 0x1472E7: gal_arithmetic (arithmetic.c:2009) ==21989== by 0x111C23: arithmetic_operator_run (arithmetic.c:595) ==21989== by 0x111D24: arithmetic_reverse_polish (arithmetic.c:641) ==21989== by 0x111F38: arithmetic_operate (arithmetic.c:728) ==21989== by 0x11310D: table (table.c:542) ==21989== by 0x10D54C: main (main.c:49) ==21989== 0 3.04346 0 3.30542 5.01922e+33 ==21989== ==21989== HEAP SUMMARY: ==21989== in use at exit: 159 bytes in 9 blocks ==21989== total heap usage: 1,381 allocs, 1,372 frees, 127,925 bytes allocated ==21989== ==21989== LEAK SUMMARY: ==21989== definitely lost: 70 bytes in 6 blocks ==21989== indirectly lost: 80 bytes in 2 blocks ==21989== possibly lost: 9 bytes in 1 blocks ==21989== still reachable: 0 bytes in 0 blocks ==21989== suppressed: 0 bytes in 0 blocks ==21989== Rerun with --leak-check=full to see details of leaked memory ==21989== ==21989== Use --track-origins=yes to see where uninitialised values come from ==21989== For lists of detected and suppressed errors, rerun with: -s ==21989== ERROR SUMMARY: 38 errors from 4 contexts (suppressed: 0 from 0)