Crash with list[tuple] comparison #500

Closed
opened 2024-08-19 14:54:35 +08:00 by derppening · 1 comment
Collaborator
test_nested_tuple_list (test_embedding.ListTupleTest.test_nested_tuple_list) ... thread 'codegen-worker-main' panicked at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2211:17:
not implemented
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: nac3core::codegen::expr::gen_cmpop_expr_with_values::{{closure}}
             at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2211:17
   4: core::iter::adapters::map::map_fold::{{closure}}
             at /build/rustc-1.78.0-src/library/core/src/iter/adapters/map.rs:89:21
   5: <core::iter::adapters::zip::Zip<A,B> as core::iter::adapters::zip::SpecFold>::spec_fold
             at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:685:25
   6: <core::iter::adapters::zip::Zip<A,B> as core::iter::adapters::zip::ZipImpl<A,B>>::fold
             at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:249:9
   7: <core::iter::adapters::zip::Zip<A,B> as core::iter::traits::iterator::Iterator>::fold
             at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:103:9
   8: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold
             at /build/rustc-1.78.0-src/library/core/src/iter/adapters/map.rs:129:9
   9: nac3core::codegen::expr::gen_cmpop_expr_with_values
             at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:1950:19
  10: nac3core::codegen::expr::gen_cmpop_expr_with_values::{{closure}}::{{closure}}::{{closure}}::{{closure}}
             at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2119:47
  11: nac3core::codegen::stmt::gen_for_callback_incrementing::{{closure}}
             at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:750:13
  12: nac3core::codegen::stmt::gen_for_callback
             at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:676:5
  13: nac3core::codegen::stmt::gen_for_callback_incrementing
             at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:728:5
  14: nac3core::codegen::expr::gen_cmpop_expr_with_values::{{closure}}::{{closure}}::{{closure}}
             at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2105:29
  15: nac3core::codegen::stmt::gen_if_else_expr_callback
             at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:1001:20
  16: nac3core::codegen::expr::gen_cmpop_expr_with_values::{{closure}}::{{closure}}
             at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2083:24
  17: nac3core::codegen::expr::gen_cmpop_expr_with_values::{{closure}}
             at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2196:17
  18: core::iter::adapters::map::map_fold::{{closure}}
             at /build/rustc-1.78.0-src/library/core/src/iter/adapters/map.rs:89:21
  19: <core::iter::adapters::zip::Zip<A,B> as core::iter::adapters::zip::SpecFold>::spec_fold
             at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:685:25
  20: <core::iter::adapters::zip::Zip<A,B> as core::iter::adapters::zip::ZipImpl<A,B>>::fold
             at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:249:9
  21: <core::iter::adapters::zip::Zip<A,B> as core::iter::traits::iterator::Iterator>::fold
             at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:103:9
  22: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold
             at /build/rustc-1.78.0-src/library/core/src/iter/adapters/map.rs:129:9
  23: nac3core::codegen::expr::gen_cmpop_expr_with_values
             at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:1950:19
  24: nac3core::codegen::expr::gen_cmpop_expr
             at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2260:5
  25: nac3core::codegen::expr::gen_expr
             at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2927:20
  26: nac3core::codegen::generator::CodeGenerator::gen_expr
             at /home/derppening/src/nac3/nac3core/src/codegen/generator.rs:81:9
  27: nac3core::codegen::stmt::gen_if
             at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:1097:16
  28: nac3core::codegen::generator::CodeGenerator::gen_if
             at /home/derppening/src/nac3/nac3core/src/codegen/generator.rs:203:9
  29: nac3core::codegen::stmt::gen_stmt
             at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:1740:32
  30: nac3core::codegen::generator::CodeGenerator::gen_stmt
             at /home/derppening/src/nac3/nac3core/src/codegen/generator.rs:228:9
  31: nac3core::codegen::stmt::gen_block
             at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:1806:9
  32: <nac3artiq::codegen::ArtiqCodeGenerator as nac3core::codegen::generator::CodeGenerator>::gen_block
             at /home/derppening/src/nac3/nac3artiq/src/codegen.rs:200:13
  33: nac3core::codegen::gen_func::{{closure}}
             at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:1013:9
  34: nac3core::codegen::gen_func_impl
             at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:976:18
  35: nac3core::codegen::gen_func
             at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:1012:5
  36: nac3core::codegen::WorkerRegistry::worker_thread
             at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:368:19
  37: nac3core::codegen::WorkerRegistry::create_workers::{{closure}}
             at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:292:21
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Got an error: not implemented
thread '<unnamed>' panicked at nac3core/src/codegen/mod.rs:336:9:
tasks panicked
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: nac3core::codegen::WorkerRegistry::wait_tasks_complete
             at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:336:9
   3: nac3artiq::Nac3::compile_method::{{closure}}
             at /home/derppening/src/nac3/nac3artiq/src/lib.rs:703:13
   4: pyo3::marker::Python::allow_threads
             at /home/derppening/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.21.2/src/marker.rs:552:9
   5: nac3artiq::Nac3::compile_method
             at /home/derppening/src/nac3/nac3artiq/src/lib.rs:699:9
   6: nac3artiq::Nac3::compile_method_to_mem
             at /home/derppening/src/nac3/nac3artiq/src/lib.rs:1140:13
   7: nac3artiq::Nac3::__pymethod_compile_method_to_mem__
             at /home/derppening/src/nac3/nac3artiq/src/lib.rs:899:1
   8: pyo3::impl_::trampoline::fastcall_with_keywords::{{closure}}
             at /home/derppening/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.21.2/src/impl_/trampoline.rs:45:29
   9: pyo3::impl_::trampoline::trampoline::{{closure}}
             at /home/derppening/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.21.2/src/impl_/trampoline.rs:187:54
  10: std::panicking::try::do_call
             at /build/rustc-1.78.0-src/library/std/src/panicking.rs:552:40
  11: __rust_try
  12: std::panicking::try
             at /build/rustc-1.78.0-src/library/std/src/panicking.rs:516:19
  13: std::panic::catch_unwind
             at /build/rustc-1.78.0-src/library/std/src/panic.rs:146:14
  14: pyo3::impl_::trampoline::trampoline
             at /home/derppening/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.21.2/src/impl_/trampoline.rs:187:9
  15: pyo3::impl_::trampoline::fastcall_with_keywords
             at /home/derppening/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.21.2/src/impl_/trampoline.rs:45:13
  16: nac3artiq::<impl pyo3::impl_::pyclass::PyMethods<nac3artiq::Nac3> for pyo3::impl_::pyclass::PyClassImplCollector<nac3artiq::Nac3>>::py_methods::ITEMS::trampoline
             at /home/derppening/src/nac3/nac3artiq/src/lib.rs:899:1
  17: _PyEval_EvalFrameDefault
  18: method_vectorcall
  19: _PyEval_EvalFrameDefault
  20: _PyObject_FastCallDictTstate.localalias
  21: slot_tp_call
  22: _PyObject_MakeTpCall
  23: _PyEval_EvalFrameDefault
  24: method_vectorcall
  25: _PyEval_EvalFrameDefault
  26: _PyObject_FastCallDictTstate.localalias
  27: slot_tp_call
  28: _PyObject_MakeTpCall
  29: _PyEval_EvalFrameDefault
  30: method_vectorcall
  31: _PyEval_EvalFrameDefault
  32: _PyObject_FastCallDictTstate.localalias
  33: slot_tp_call
  34: _PyObject_MakeTpCall
  35: _PyEval_EvalFrameDefault
  36: method_vectorcall
  37: _PyEval_EvalFrameDefault
  38: _PyObject_FastCallDictTstate.localalias
  39: slot_tp_call
  40: _PyObject_MakeTpCall
  41: _PyEval_EvalFrameDefault
  42: _PyObject_FastCallDictTstate.localalias
  43: slot_tp_init
  44: type_call
  45: _PyObject_MakeTpCall
  46: _PyEval_EvalFrameDefault
  47: PyEval_EvalCode
  48: builtin_exec
  49: cfunction_vectorcall_FASTCALL_KEYWORDS
  50: _PyEval_EvalFrameDefault
  51: pymain_run_module
  52: Py_RunMain.localalias
  53: __libc_start_call_main
  54: __libc_start_main@@GLIBC_2.34
  55: _start
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
ERROR
``` test_nested_tuple_list (test_embedding.ListTupleTest.test_nested_tuple_list) ... thread 'codegen-worker-main' panicked at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2211:17: not implemented stack backtrace: 0: rust_begin_unwind 1: core::panicking::panic_fmt 2: core::panicking::panic 3: nac3core::codegen::expr::gen_cmpop_expr_with_values::{{closure}} at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2211:17 4: core::iter::adapters::map::map_fold::{{closure}} at /build/rustc-1.78.0-src/library/core/src/iter/adapters/map.rs:89:21 5: <core::iter::adapters::zip::Zip<A,B> as core::iter::adapters::zip::SpecFold>::spec_fold at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:685:25 6: <core::iter::adapters::zip::Zip<A,B> as core::iter::adapters::zip::ZipImpl<A,B>>::fold at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:249:9 7: <core::iter::adapters::zip::Zip<A,B> as core::iter::traits::iterator::Iterator>::fold at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:103:9 8: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold at /build/rustc-1.78.0-src/library/core/src/iter/adapters/map.rs:129:9 9: nac3core::codegen::expr::gen_cmpop_expr_with_values at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:1950:19 10: nac3core::codegen::expr::gen_cmpop_expr_with_values::{{closure}}::{{closure}}::{{closure}}::{{closure}} at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2119:47 11: nac3core::codegen::stmt::gen_for_callback_incrementing::{{closure}} at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:750:13 12: nac3core::codegen::stmt::gen_for_callback at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:676:5 13: nac3core::codegen::stmt::gen_for_callback_incrementing at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:728:5 14: nac3core::codegen::expr::gen_cmpop_expr_with_values::{{closure}}::{{closure}}::{{closure}} at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2105:29 15: nac3core::codegen::stmt::gen_if_else_expr_callback at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:1001:20 16: nac3core::codegen::expr::gen_cmpop_expr_with_values::{{closure}}::{{closure}} at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2083:24 17: nac3core::codegen::expr::gen_cmpop_expr_with_values::{{closure}} at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2196:17 18: core::iter::adapters::map::map_fold::{{closure}} at /build/rustc-1.78.0-src/library/core/src/iter/adapters/map.rs:89:21 19: <core::iter::adapters::zip::Zip<A,B> as core::iter::adapters::zip::SpecFold>::spec_fold at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:685:25 20: <core::iter::adapters::zip::Zip<A,B> as core::iter::adapters::zip::ZipImpl<A,B>>::fold at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:249:9 21: <core::iter::adapters::zip::Zip<A,B> as core::iter::traits::iterator::Iterator>::fold at /build/rustc-1.78.0-src/library/core/src/iter/adapters/zip.rs:103:9 22: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold at /build/rustc-1.78.0-src/library/core/src/iter/adapters/map.rs:129:9 23: nac3core::codegen::expr::gen_cmpop_expr_with_values at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:1950:19 24: nac3core::codegen::expr::gen_cmpop_expr at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2260:5 25: nac3core::codegen::expr::gen_expr at /home/derppening/src/nac3/nac3core/src/codegen/expr.rs:2927:20 26: nac3core::codegen::generator::CodeGenerator::gen_expr at /home/derppening/src/nac3/nac3core/src/codegen/generator.rs:81:9 27: nac3core::codegen::stmt::gen_if at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:1097:16 28: nac3core::codegen::generator::CodeGenerator::gen_if at /home/derppening/src/nac3/nac3core/src/codegen/generator.rs:203:9 29: nac3core::codegen::stmt::gen_stmt at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:1740:32 30: nac3core::codegen::generator::CodeGenerator::gen_stmt at /home/derppening/src/nac3/nac3core/src/codegen/generator.rs:228:9 31: nac3core::codegen::stmt::gen_block at /home/derppening/src/nac3/nac3core/src/codegen/stmt.rs:1806:9 32: <nac3artiq::codegen::ArtiqCodeGenerator as nac3core::codegen::generator::CodeGenerator>::gen_block at /home/derppening/src/nac3/nac3artiq/src/codegen.rs:200:13 33: nac3core::codegen::gen_func::{{closure}} at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:1013:9 34: nac3core::codegen::gen_func_impl at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:976:18 35: nac3core::codegen::gen_func at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:1012:5 36: nac3core::codegen::WorkerRegistry::worker_thread at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:368:19 37: nac3core::codegen::WorkerRegistry::create_workers::{{closure}} at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:292:21 note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. Got an error: not implemented thread '<unnamed>' panicked at nac3core/src/codegen/mod.rs:336:9: tasks panicked stack backtrace: 0: rust_begin_unwind 1: core::panicking::panic_fmt 2: nac3core::codegen::WorkerRegistry::wait_tasks_complete at /home/derppening/src/nac3/nac3core/src/codegen/mod.rs:336:9 3: nac3artiq::Nac3::compile_method::{{closure}} at /home/derppening/src/nac3/nac3artiq/src/lib.rs:703:13 4: pyo3::marker::Python::allow_threads at /home/derppening/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.21.2/src/marker.rs:552:9 5: nac3artiq::Nac3::compile_method at /home/derppening/src/nac3/nac3artiq/src/lib.rs:699:9 6: nac3artiq::Nac3::compile_method_to_mem at /home/derppening/src/nac3/nac3artiq/src/lib.rs:1140:13 7: nac3artiq::Nac3::__pymethod_compile_method_to_mem__ at /home/derppening/src/nac3/nac3artiq/src/lib.rs:899:1 8: pyo3::impl_::trampoline::fastcall_with_keywords::{{closure}} at /home/derppening/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.21.2/src/impl_/trampoline.rs:45:29 9: pyo3::impl_::trampoline::trampoline::{{closure}} at /home/derppening/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.21.2/src/impl_/trampoline.rs:187:54 10: std::panicking::try::do_call at /build/rustc-1.78.0-src/library/std/src/panicking.rs:552:40 11: __rust_try 12: std::panicking::try at /build/rustc-1.78.0-src/library/std/src/panicking.rs:516:19 13: std::panic::catch_unwind at /build/rustc-1.78.0-src/library/std/src/panic.rs:146:14 14: pyo3::impl_::trampoline::trampoline at /home/derppening/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.21.2/src/impl_/trampoline.rs:187:9 15: pyo3::impl_::trampoline::fastcall_with_keywords at /home/derppening/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.21.2/src/impl_/trampoline.rs:45:13 16: nac3artiq::<impl pyo3::impl_::pyclass::PyMethods<nac3artiq::Nac3> for pyo3::impl_::pyclass::PyClassImplCollector<nac3artiq::Nac3>>::py_methods::ITEMS::trampoline at /home/derppening/src/nac3/nac3artiq/src/lib.rs:899:1 17: _PyEval_EvalFrameDefault 18: method_vectorcall 19: _PyEval_EvalFrameDefault 20: _PyObject_FastCallDictTstate.localalias 21: slot_tp_call 22: _PyObject_MakeTpCall 23: _PyEval_EvalFrameDefault 24: method_vectorcall 25: _PyEval_EvalFrameDefault 26: _PyObject_FastCallDictTstate.localalias 27: slot_tp_call 28: _PyObject_MakeTpCall 29: _PyEval_EvalFrameDefault 30: method_vectorcall 31: _PyEval_EvalFrameDefault 32: _PyObject_FastCallDictTstate.localalias 33: slot_tp_call 34: _PyObject_MakeTpCall 35: _PyEval_EvalFrameDefault 36: method_vectorcall 37: _PyEval_EvalFrameDefault 38: _PyObject_FastCallDictTstate.localalias 39: slot_tp_call 40: _PyObject_MakeTpCall 41: _PyEval_EvalFrameDefault 42: _PyObject_FastCallDictTstate.localalias 43: slot_tp_init 44: type_call 45: _PyObject_MakeTpCall 46: _PyEval_EvalFrameDefault 47: PyEval_EvalCode 48: builtin_exec 49: cfunction_vectorcall_FASTCALL_KEYWORDS 50: _PyEval_EvalFrameDefault 51: pymain_run_module 52: Py_RunMain.localalias 53: __libc_start_call_main 54: __libc_start_main@@GLIBC_2.34 55: _start note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. ERROR ```
derppening self-assigned this 2024-08-19 14:54:41 +08:00
Author
Collaborator

Fixed by #503.

Fixed by #503.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#500
No description provided.