Created
January 3, 2021 09:39
-
-
Save nitrix/e92b68c529f384609fcdcfcb2334e374 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(interpreter) Running memcheck: underscore | |
==26617== Memcheck, a memory error detector | |
==26617== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. | |
==26617== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info | |
==26617== Command: chaos /root/chaos/tests/underscore.kaos | |
==26617== | |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
==26617== | |
==26617== FILE DESCRIPTORS: 0 open at exit. | |
==26617== | |
==26617== HEAP SUMMARY: | |
==26617== in use at exit: 184 bytes in 5 blocks | |
==26617== total heap usage: 197 allocs, 192 frees, 17,058 bytes allocated | |
==26617== | |
==26617== 32 bytes in 4 blocks are definitely lost in loss record 1 of 2 | |
==26617== at 0x4C33B25: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==26617== by 0x11ED27: callFunction (function.c:169) | |
==26617== by 0x124C82: eval_node (interpreter.c:1304) | |
==26617== by 0x1212A3: interpret (interpreter.c:63) | |
==26617== by 0x11A49D: initParser (parser.c:189) | |
==26617== by 0x117C65: main (parser.y:883) | |
==26617== | |
==26617== 152 bytes in 1 blocks are definitely lost in loss record 2 of 2 | |
==26617== at 0x4C31B0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==26617== by 0x120994: initScopeless (function.c:659) | |
==26617== by 0x12096B: initMainFunction (function.c:653) | |
==26617== by 0x11A3AE: initParser (parser.c:167) | |
==26617== by 0x117C65: main (parser.y:883) | |
==26617== | |
==26617== LEAK SUMMARY: | |
==26617== definitely lost: 184 bytes in 5 blocks | |
==26617== indirectly lost: 0 bytes in 0 blocks | |
==26617== possibly lost: 0 bytes in 0 blocks | |
==26617== still reachable: 0 bytes in 0 blocks | |
==26617== suppressed: 0 bytes in 0 blocks | |
==26617== | |
==26617== For counts of detected and suppressed errors, rerun with: -v | |
==26617== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) | |
Makefile:154: recipe for target 'memcheck' failed | |
make: *** [memcheck] Error 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./tests/interpreter.sh | |
(interpreter) Running test: underscore | |
OK | |
(interpreter) Running test: loop_continue | |
OK | |
(interpreter) Running test: symbol_table | |
OK | |
(interpreter) Running test: print | |
OK | |
(interpreter) Running test: function | |
OK | |
(interpreter) Running test: any | |
OK | |
(interpreter) Running test: immutability | |
OK | |
(interpreter) Running test: quit | |
OK | |
(interpreter) Running test: echo | |
OK | |
(interpreter) Running test: dict | |
OK | |
(interpreter) Running test: module | |
OK | |
(interpreter) Running test: loop | |
OK | |
(interpreter) Running test: exit_var | |
OK | |
(interpreter) Running test: operator | |
OK | |
(interpreter) Running test: number | |
OK | |
(interpreter) Running test: exit_int | |
OK | |
(interpreter) Running test: string | |
OK | |
(interpreter) Running test: boolean | |
OK | |
(interpreter) Running test: exit | |
OK | |
(interpreter) Running test: spell | |
OK | |
(interpreter) Running test: del | |
OK | |
(interpreter) Running test: list | |
OK | |
(interpreter) Running test: function_redefinition | |
OK | |
(interpreter) Running test: comment | |
OK | |
(interpreter) Running test: loop_break | |
OK | |
(interpreter) Running test: everything | |
OK | |
(interpreter) Running test: decision | |
OK | |
(interpreter) Running test: pretty | |
OK | |
(interpreter) Running test: nonewline | |
OK | |
(interpreter) Interactive test: underscore | |
OK | |
(interpreter) Interactive test: loop_continue | |
OK | |
(interpreter) Interactive test: symbol_table | |
OK | |
(interpreter) Interactive test: print | |
OK | |
(interpreter) Interactive test: any | |
OK | |
(interpreter) Interactive test: immutability | |
OK | |
(interpreter) Interactive test: quit | |
OK | |
(interpreter) Interactive test: echo | |
OK | |
(interpreter) Interactive test: dict | |
OK | |
(interpreter) Interactive test: module | |
OK | |
(interpreter) Interactive test: loop | |
OK | |
(interpreter) Interactive test: exit_var | |
OK | |
(interpreter) Interactive test: operator | |
OK | |
(interpreter) Interactive test: number | |
OK | |
(interpreter) Interactive test: exit_int | |
OK | |
(interpreter) Interactive test: string | |
OK | |
(interpreter) Interactive test: boolean | |
OK | |
(interpreter) Interactive test: exit | |
OK | |
(interpreter) Interactive test: spell | |
OK | |
(interpreter) Interactive test: del | |
OK | |
(interpreter) Interactive test: list | |
OK | |
(interpreter) Interactive test: function_redefinition | |
OK | |
(interpreter) Interactive test: comment | |
OK | |
(interpreter) Interactive test: loop_break | |
OK | |
(interpreter) Interactive test: decision | |
OK | |
(interpreter) Interactive test: pretty | |
OK | |
(interpreter) Running test: shell/function_params | |
Uninitialized bytes in __interceptor_strlen at offset 0 inside [0x702000000100, 18) | |
==28016==WARNING: MemorySanitizer: use-of-uninitialized-value | |
#0 0x7fa11d51053e in rl_expand_prompt (/lib/x86_64-linux-gnu/libreadline.so.7+0x2453e) | |
#1 0x7fa11d4ffb44 in rl_set_prompt (/lib/x86_64-linux-gnu/libreadline.so.7+0x13b44) | |
#2 0x7fa11d500ee1 in readline (/lib/x86_64-linux-gnu/libreadline.so.7+0x14ee1) | |
#3 0x4ca7b0 in shell_readline /root/chaos/utilities/shell.c | |
#4 0x4c1be8 in custom_input /root/chaos/lexer/lexer.l:127:16 | |
#5 0x4bfac7 in yy_get_next_buffer /root/chaos/lex.yy.c:1669:3 | |
#6 0x4bd8d9 in yylex /root/chaos/lex.yy.c:1509:17 | |
#7 0x498fef in yyparse /root/chaos/parser.tab.c:3335:16 | |
#8 0x4d3e4d in callFunctionCleanUp /root/chaos/interpreter/function.c:339:9 | |
#9 0x4d2a9c in callFunction /root/chaos/interpreter/function.c:276:5 | |
#10 0x4df352 in eval_node /root/chaos/interpreter/interpreter.c:1304:13 | |
#11 0x4d9629 in interpret /root/chaos/interpreter/interpreter.c:63:9 | |
#12 0x4a4cdc in yyparse /root/chaos/parser/parser.y:228:13 | |
#13 0x4c2f0f in initParser /root/chaos/parser/parser.c:182:9 | |
#14 0x4bad73 in main /root/chaos/parser/parser.y:883:5 | |
#15 0x7fa11c53bbf6 in __libc_start_main /build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310 | |
#16 0x41b509 in _start (/usr/local/bin/chaos+0x41b509) | |
Uninitialized value was created by a heap allocation | |
#0 0x42863c in malloc (/usr/local/bin/chaos+0x42863c) | |
#1 0x7fa11d523738 in xmalloc (/lib/x86_64-linux-gnu/libreadline.so.7+0x37738) | |
SUMMARY: MemorySanitizer: use-of-uninitialized-value (/lib/x86_64-linux-gnu/libreadline.so.7+0x2453e) in rl_expand_prompt | |
Exiting | |
Fail | |
(interpreter) Running test: shell/loop_fail | |
OK | |
(interpreter) Running test: shell/function | |
OK | |
(interpreter) Running test: shell/index_out_of_range | |
OK | |
(interpreter) Running test: shell/absorber | |
OK | |
(interpreter) Running test: shell/module | |
OK | |
(interpreter) Running test: shell/loop | |
OK | |
(interpreter) Running test: shell/function_fail2 | |
Uninitialized bytes in __interceptor_strlen at offset 0 inside [0x702000000020, 18) | |
==28111==WARNING: MemorySanitizer: use-of-uninitialized-value | |
#0 0x7f3c8606353e in rl_expand_prompt (/lib/x86_64-linux-gnu/libreadline.so.7+0x2453e) | |
#1 0x7f3c86052b44 in rl_set_prompt (/lib/x86_64-linux-gnu/libreadline.so.7+0x13b44) | |
#2 0x7f3c86053ee1 in readline (/lib/x86_64-linux-gnu/libreadline.so.7+0x14ee1) | |
#3 0x4ca7b0 in shell_readline /root/chaos/utilities/shell.c | |
#4 0x4c1be8 in custom_input /root/chaos/lexer/lexer.l:127:16 | |
#5 0x4bfac7 in yy_get_next_buffer /root/chaos/lex.yy.c:1669:3 | |
#6 0x4bd8d9 in yylex /root/chaos/lex.yy.c:1509:17 | |
#7 0x498fef in yyparse /root/chaos/parser.tab.c:3335:16 | |
#8 0x4d3e4d in callFunctionCleanUp /root/chaos/interpreter/function.c:339:9 | |
#9 0x4d2a9c in callFunction /root/chaos/interpreter/function.c:276:5 | |
#10 0x4df352 in eval_node /root/chaos/interpreter/interpreter.c:1304:13 | |
#11 0x4d9629 in interpret /root/chaos/interpreter/interpreter.c:63:9 | |
#12 0x4a4cdc in yyparse /root/chaos/parser/parser.y:228:13 | |
#13 0x4c2f0f in initParser /root/chaos/parser/parser.c:182:9 | |
#14 0x4bad73 in main /root/chaos/parser/parser.y:883:5 | |
#15 0x7f3c8508ebf6 in __libc_start_main /build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310 | |
#16 0x41b509 in _start (/usr/local/bin/chaos+0x41b509) | |
Uninitialized value was created by a heap allocation | |
#0 0x42863c in malloc (/usr/local/bin/chaos+0x42863c) | |
#1 0x7f3c86076738 in xmalloc (/lib/x86_64-linux-gnu/libreadline.so.7+0x37738) | |
SUMMARY: MemorySanitizer: use-of-uninitialized-value (/lib/x86_64-linux-gnu/libreadline.so.7+0x2453e) in rl_expand_prompt | |
Exiting | |
Fail | |
(interpreter) Running test: shell/left_right_bracket | |
OK | |
(interpreter) Running test: shell/del_fail | |
OK | |
(interpreter) Running test: shell/string_fail | |
OK | |
(interpreter) Running test: shell/math_exp | |
OK | |
(interpreter) Running test: shell/function_fail | |
Uninitialized bytes in __interceptor_strlen at offset 0 inside [0x702000000020, 18) | |
==28175==WARNING: MemorySanitizer: use-of-uninitialized-value | |
#0 0x7f6eae2b153e in rl_expand_prompt (/lib/x86_64-linux-gnu/libreadline.so.7+0x2453e) | |
#1 0x7f6eae2a0b44 in rl_set_prompt (/lib/x86_64-linux-gnu/libreadline.so.7+0x13b44) | |
#2 0x7f6eae2a1ee1 in readline (/lib/x86_64-linux-gnu/libreadline.so.7+0x14ee1) | |
#3 0x4ca7b0 in shell_readline /root/chaos/utilities/shell.c | |
#4 0x4c1be8 in custom_input /root/chaos/lexer/lexer.l:127:16 | |
#5 0x4bfac7 in yy_get_next_buffer /root/chaos/lex.yy.c:1669:3 | |
#6 0x4bd8d9 in yylex /root/chaos/lex.yy.c:1509:17 | |
#7 0x498fef in yyparse /root/chaos/parser.tab.c:3335:16 | |
#8 0x4d3e4d in callFunctionCleanUp /root/chaos/interpreter/function.c:339:9 | |
#9 0x4d2a9c in callFunction /root/chaos/interpreter/function.c:276:5 | |
#10 0x4df352 in eval_node /root/chaos/interpreter/interpreter.c:1304:13 | |
#11 0x4d9629 in interpret /root/chaos/interpreter/interpreter.c:63:9 | |
#12 0x4a4cdc in yyparse /root/chaos/parser/parser.y:228:13 | |
#13 0x4c2f0f in initParser /root/chaos/parser/parser.c:182:9 | |
#14 0x4bad73 in main /root/chaos/parser/parser.y:883:5 | |
#15 0x7f6ead2dcbf6 in __libc_start_main /build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310 | |
#16 0x41b509 in _start (/usr/local/bin/chaos+0x41b509) | |
Uninitialized value was created by a heap allocation | |
#0 0x42863c in malloc (/usr/local/bin/chaos+0x42863c) | |
#1 0x7f6eae2c4738 in xmalloc (/lib/x86_64-linux-gnu/libreadline.so.7+0x37738) | |
SUMMARY: MemorySanitizer: use-of-uninitialized-value (/lib/x86_64-linux-gnu/libreadline.so.7+0x2453e) in rl_expand_prompt | |
Exiting | |
Fail | |
(interpreter) Running test: shell/complex_redefinition | |
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./tests/interpreter.sh | |
(interpreter) Running test: underscore | |
OK | |
(interpreter) Running test: loop_continue | |
OK | |
(interpreter) Running test: symbol_table | |
OK | |
(interpreter) Running test: print | |
OK | |
(interpreter) Running test: function | |
OK | |
(interpreter) Running test: any | |
OK | |
(interpreter) Running test: immutability | |
OK | |
(interpreter) Running test: quit | |
OK | |
(interpreter) Running test: echo | |
OK | |
(interpreter) Running test: dict | |
OK | |
(interpreter) Running test: module | |
OK | |
(interpreter) Running test: loop | |
OK | |
(interpreter) Running test: exit_var | |
OK | |
(interpreter) Running test: operator | |
OK | |
(interpreter) Running test: number | |
OK | |
(interpreter) Running test: exit_int | |
OK | |
(interpreter) Running test: string | |
OK | |
(interpreter) Running test: boolean | |
OK | |
(interpreter) Running test: exit | |
OK | |
(interpreter) Running test: spell | |
OK | |
(interpreter) Running test: del | |
OK | |
(interpreter) Running test: list | |
OK | |
(interpreter) Running test: function_redefinition | |
OK | |
(interpreter) Running test: comment | |
OK | |
(interpreter) Running test: loop_break | |
OK | |
(interpreter) Running test: everything | |
OK | |
(interpreter) Running test: decision | |
OK | |
(interpreter) Running test: pretty | |
OK | |
(interpreter) Running test: nonewline | |
OK | |
(interpreter) Interactive test: underscore | |
OK | |
(interpreter) Interactive test: loop_continue | |
OK | |
(interpreter) Interactive test: symbol_table | |
OK | |
(interpreter) Interactive test: print | |
OK | |
(interpreter) Interactive test: any | |
OK | |
(interpreter) Interactive test: immutability | |
OK | |
(interpreter) Interactive test: quit | |
OK | |
(interpreter) Interactive test: echo | |
OK | |
(interpreter) Interactive test: dict | |
OK | |
(interpreter) Interactive test: module | |
OK | |
(interpreter) Interactive test: loop | |
OK | |
(interpreter) Interactive test: exit_var | |
OK | |
(interpreter) Interactive test: operator | |
OK | |
(interpreter) Interactive test: number | |
OK | |
(interpreter) Interactive test: exit_int | |
OK | |
(interpreter) Interactive test: string | |
OK | |
(interpreter) Interactive test: boolean | |
OK | |
(interpreter) Interactive test: exit | |
OK | |
(interpreter) Interactive test: spell | |
OK | |
(interpreter) Interactive test: del | |
OK | |
(interpreter) Interactive test: list | |
OK | |
(interpreter) Interactive test: function_redefinition | |
OK | |
(interpreter) Interactive test: comment | |
OK | |
(interpreter) Interactive test: loop_break | |
OK | |
(interpreter) Interactive test: decision | |
OK | |
(interpreter) Interactive test: pretty | |
OK | |
(interpreter) Running test: shell/function_params | |
OK | |
(interpreter) Running test: shell/loop_fail | |
OK | |
(interpreter) Running test: shell/function | |
OK | |
(interpreter) Running test: shell/index_out_of_range | |
OK | |
(interpreter) Running test: shell/absorber | |
OK | |
(interpreter) Running test: shell/module | |
OK | |
(interpreter) Running test: shell/loop | |
OK | |
(interpreter) Running test: shell/function_fail2 | |
OK | |
(interpreter) Running test: shell/left_right_bracket | |
OK | |
(interpreter) Running test: shell/del_fail | |
OK | |
(interpreter) Running test: shell/string_fail | |
OK | |
(interpreter) Running test: shell/math_exp | |
OK | |
(interpreter) Running test: shell/function_fail | |
OK | |
(interpreter) Running test: shell/complex_redefinition | |
OK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment