spec test index / oilshell.org
41 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| osh-cpp | 18 Code Blocks: parseHay() then shvar _DIALECT= { evalHay() } [osh-cpp stdout] Expected 'level 0 children\n2\n---\nchild 0\nTASK\ncpp\n---\nchild 1\nTASK\npublish-html\n---\n' Got 'level 0 children\n2\n---\n' [osh-cpp status] Expected 0, got 1 stdout: level 0 children 2 ---stderr: AddressSanitizer:DEADLYSIGNAL
=================================================================
==25294==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x559bb6b695dd bp 0x7ffd1abe3510 sp 0x7ffd1abe34f0 T0)
==25294==The signal is caused by a READ memory access.
==25294==Hint: address points to the zero page.
#0 0x559bb6b695dc in Dict<BigStr*, value_asdl::value_t*>::find_kv_index(BigStr*) const /home/uke/oil/mycpp/gc_dict.h:367
#1 0x559bb6a78fdc in Dict<BigStr*, value_asdl::value_t*>::get(BigStr*) const (/home/uke/oil/_bin/cxx-asan/oils-for-unix+0x437fdc)
#2 0x559bb6a09419 in expr_eval::ExprEvaluator::_EvalDot(syntax_asdl::Attribute*, value_asdl::value_t*) _gen/bin/oils_for_unix.mycpp.cc:51352
#3 0x559bb6a0a6dd in expr_eval::ExprEvaluator::_EvalAttribute(syntax_asdl::Attribute*) _gen/bin/oils_for_unix.mycpp.cc:51435
#4 0x559bb6a0d544 in expr_eval::ExprEvaluator::_EvalExpr(syntax_asdl::expr_t*) _gen/bin/oils_for_unix.mycpp.cc:51698
#5 0x559bb69fde2d in expr_eval::ExprEvaluator::EvalExpr(syntax_asdl::expr_t*, syntax_asdl::loc_t*) _gen/bin/oils_for_unix.mycpp.cc:50494
#6 0x559bb69fe682 in expr_eval::ExprEvaluator::EvalExprSub(syntax_asdl::word_part__ExprSub*) _gen/bin/oils_for_unix.mycpp.cc:50521
#7 0x559bb69c34da in word_eval::AbstractWordEvaluator::_EvalWordPart(syntax_asdl::word_part_t*, List<runtime_asdl::part_value_t*>*, int) _gen/bin/oils_for_unix.mycpp.cc:45998
#8 0x559bb69c447c in word_eval::AbstractWordEvaluator::_EvalWordToParts(syntax_asdl::CompoundWord*, List<runtime_asdl::part_value_t*>*, int) _gen/bin/oils_for_unix.mycpp.cc:46064
#9 0x559bb69ce028 in word_eval::AbstractWordEvaluator::EvalWordSequence2(List<syntax_asdl::CompoundWord*>*, bool, bool) _gen/bin/oils_for_unix.mycpp.cc:46673
#10 0x559bb69458cc in cmd_eval::CommandEvaluator::_DoSimple(syntax_asdl::command__Simple*, runtime_asdl::CommandStatus*) _gen/bin/oils_for_unix.mycpp.cc:35695
#11 0x559bb695136b in cmd_eval::CommandEvaluator::_Dispatch(syntax_asdl::command_t*, runtime_asdl::CommandStatus*) _gen/bin/oils_for_unix.mycpp.cc:36574
#12 0x559bb69541a6 in cmd_eval::CommandEvaluator::_Execute(syntax_asdl::command_t*) _gen/bin/oils_for_unix.mycpp.cc:36853
#13 0x559bb6955f0e in cmd_eval::CommandEvaluator::ExecuteAndCatch(syntax_asdl::command_t*, int) _gen/bin/oils_for_unix.mycpp.cc:37024
#14 0x559bb68b3db9 in main_loop::Batch(cmd_eval::CommandEvaluator*, cmd_parse::CommandParser*, ui::ErrorFormatter*, int) _gen/bin/oils_for_unix.mycpp.cc:24417
#15 0x559bb6a5f3cd in shell::Main(BigStr*, args::Reader*, Dict<BigStr*, BigStr*>*, bool, pyutil::_ResourceLoader*, py_readline::Readline*) _gen/bin/oils_for_unix.mycpp.cc:57393
#16 0x559bb680553f in oils_for_unix::AppBundleMain(List<BigStr*>*) _gen/bin/oils_for_unix.mycpp.cc:12381
#17 0x559bb6805a8b in oils_for_unix::main(List<BigStr*>*) _gen/bin/oils_for_unix.mycpp.cc:12413
#18 0x559bb6a61522 in main _gen/bin/oils_for_unix.mycpp.cc:57415
#19 0x7efd7072309a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2409a)
#20 0x559bb67defc9 in _start (/home/uke/oil/_bin/cxx-asan/oils-for-unix+0x19dfc9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/uke/oil/mycpp/gc_dict.h:367 in Dict<BigStr*, value_asdl::value_t*>::find_kv_index(BigStr*) const
==25294==ABORTING
|
| osh | 21 Typed Args to Hay Node [osh status] Expected 0, got 1 stdout: stderr: when NAME (x > 0) {
^
[ stdin ]:6: fatal: Undefined variable 'x'
|
| osh-cpp | 21 Typed Args to Hay Node [osh-cpp status] Expected 0, got 1 stdout: stderr: when NAME (x > 0) {
^
[ stdin ]:6: fatal: Undefined variable 'x'
|
| osh | 22 OSH and hay (dynamic parsing) [osh stdout] Expected "backticks\neval\nTYPE TASK\nCODE \n echo `echo task backticks`\n eval 'echo task eval'\n ___\n" Got '' [osh status] Expected 0, got 2 stdout: stderr: b[1]=1
^~
/home/uke/oil/spec/testdata/config/osh-hay.osh:14: Use var/setvar to assign in YSH
source $REPO_ROOT/spec/testdata/config/osh-hay.osh
^~~~~~
[ stdin ]:1: errexit PID 25357: command.Simple failed with status 2
|
| osh-cpp | 22 OSH and hay (dynamic parsing) [osh-cpp stdout] Expected "backticks\neval\nTYPE TASK\nCODE \n echo `echo task backticks`\n eval 'echo task eval'\n ___\n" Got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: b[1]=1
^~
/home/uke/oil/test/../spec/testdata/config/osh-hay.osh:14: Use var/setvar to assign in YSH
source $REPO_ROOT/spec/testdata/config/osh-hay.osh
^~~~~~
[ stdin ]:1: errexit PID 25366: command.Simple failed with status 2
|