spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 11 | 10 | |
FAIL | 0 | 1 | |
total | 11 | 11 | |
case | osh | osh-cpp | description |
0 | pass | pass | Float Literals with e-1 |
1 | pass | pass | Float Literal with _ |
2 | pass | pass | Period requires digit on either side, not 5. or .5 |
3 | pass | pass | Big float Literals with _ |
4 | pass | pass | Big floats like 1e309 and -1e309 go to Inf / -Inf |
5 | pass | pass | Tiny floats go to zero |
6 | pass | pass | floatEquals() INFINITY NAN |
7 | pass | pass | pretty print INFINITY, -INFINITY, NAN |
8 | pass | FAIL | can't convert NAN, INFINITY to integer |
details | |||
9 | pass | pass | Regression: 1/3 gives 0.3+ |
10 | pass | pass | Number of digits in 1/3 |
21 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
osh-cpp | 8 can't convert NAN, INFINITY to integer [osh-cpp stdout] Expected 'code 3\ncode 3\n', got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: AddressSanitizer:DEADLYSIGNAL ================================================================= ==29075==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55ec950845ca bp 0x7ffd04f65530 sp 0x7ffd04f65510 T0) ==29075==The signal is caused by a READ memory access. ==29075==Hint: address points to the zero page. #0 0x55ec950845c9 in Dict<BigStr*, value_asdl::value_t*>::find_kv_index(BigStr*) const /home/uke/oil/mycpp/gc_dict.h:367 #1 0x55ec94f93fdc in Dict<BigStr*, value_asdl::value_t*>::get(BigStr*) const (/home/uke/oil/_bin/cxx-asan/oils-for-unix+0x437fdc) #2 0x55ec94f24419 in expr_eval::ExprEvaluator::_EvalDot(syntax_asdl::Attribute*, value_asdl::value_t*) _gen/bin/oils_for_unix.mycpp.cc:51352 #3 0x55ec94f256dd in expr_eval::ExprEvaluator::_EvalAttribute(syntax_asdl::Attribute*) _gen/bin/oils_for_unix.mycpp.cc:51435 #4 0x55ec94f28544 in expr_eval::ExprEvaluator::_EvalExpr(syntax_asdl::expr_t*) _gen/bin/oils_for_unix.mycpp.cc:51698 #5 0x55ec94f18e2d in expr_eval::ExprEvaluator::EvalExpr(syntax_asdl::expr_t*, syntax_asdl::loc_t*) _gen/bin/oils_for_unix.mycpp.cc:50494 #6 0x55ec94f19682 in expr_eval::ExprEvaluator::EvalExprSub(syntax_asdl::word_part__ExprSub*) _gen/bin/oils_for_unix.mycpp.cc:50521 #7 0x55ec94ede4da 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 0x55ec94edf47c in word_eval::AbstractWordEvaluator::_EvalWordToParts(syntax_asdl::CompoundWord*, List<runtime_asdl::part_value_t*>*, int) _gen/bin/oils_for_unix.mycpp.cc:46064 #9 0x55ec94ee7ea4 in word_eval::AbstractWordEvaluator::SimpleEvalWordSequence2(List<syntax_asdl::CompoundWord*>*, bool, bool) _gen/bin/oils_for_unix.mycpp.cc:46608 #10 0x55ec94ee8c51 in word_eval::AbstractWordEvaluator::EvalWordSequence2(List<syntax_asdl::CompoundWord*>*, bool, bool) _gen/bin/oils_for_unix.mycpp.cc:46647 #11 0x55ec94e608cc in cmd_eval::CommandEvaluator::_DoSimple(syntax_asdl::command__Simple*, runtime_asdl::CommandStatus*) _gen/bin/oils_for_unix.mycpp.cc:35695 #12 0x55ec94e6c36b in cmd_eval::CommandEvaluator::_Dispatch(syntax_asdl::command_t*, runtime_asdl::CommandStatus*) _gen/bin/oils_for_unix.mycpp.cc:36574 #13 0x55ec94e6f1a6 in cmd_eval::CommandEvaluator::_Execute(syntax_asdl::command_t*) _gen/bin/oils_for_unix.mycpp.cc:36853 #14 0x55ec94e70f0e in cmd_eval::CommandEvaluator::ExecuteAndCatch(syntax_asdl::command_t*, int) _gen/bin/oils_for_unix.mycpp.cc:37024 #15 0x55ec94dcedb9 in main_loop::Batch(cmd_eval::CommandEvaluator*, cmd_parse::CommandParser*, ui::ErrorFormatter*, int) _gen/bin/oils_for_unix.mycpp.cc:24417 #16 0x55ec94f7a3cd in shell::Main(BigStr*, args::Reader*, Dict<BigStr*, BigStr*>*, bool, pyutil::_ResourceLoader*, py_readline::Readline*) _gen/bin/oils_for_unix.mycpp.cc:57393 #17 0x55ec94d2053f in oils_for_unix::AppBundleMain(List<BigStr*>*) _gen/bin/oils_for_unix.mycpp.cc:12381 #18 0x55ec94d20a8b in oils_for_unix::main(List<BigStr*>*) _gen/bin/oils_for_unix.mycpp.cc:12413 #19 0x55ec94f7c522 in main _gen/bin/oils_for_unix.mycpp.cc:57415 #20 0x7f650c25309a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2409a) #21 0x55ec94cf9fc9 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 ==29075==ABORTING |