c3d / db48x

RPL runtime for the DM42 calculator, in the spirit of HP48/49/50
http://48calc.org
GNU Lesser General Public License v3.0
113 stars 13 forks source link

Simulator crash in for loop #1207

Closed c3d closed 1 month ago

c3d commented 1 month ago

Simulator crash with the following stack trace

    #0 0x102f87d60 in object::type() const object.h:246
    #1 0x1030ef994 in object::as_truth(bool) const object.cc:1280
    #2 0x1031144e8 in runtime::run_select_start_step(bool, bool) runtime.cc:1429
    #3 0x103075cd0 in for_step_conditional::do_evaluate(for_step_conditional const*) loops.cc:967
    #4 0x102fcbd5c in object::evaluate() const object.h:331
    #5 0x10310dc60 in program::run_loop(unsigned long) program.cc:185
    #6 0x10310d9d4 in program::run(bool) const program.cc:118
    #7 0x10310de30 in program::run(object const*, bool) program.cc:130
    #8 0x103302f64 in VariablesMenuExecute::evaluate() variables.cc:1329
    #9 0x1030ea2d0 in VariablesMenuExecute::do_evaluate(VariablesMenuExecute const*) variables.h:238
    #10 0x102fcbd5c in object::evaluate() const object.h:331
    #11 0x1032ef168 in user_interface::handle_functions(int) user_interface.cc:5169
    #12 0x1032ea048 in user_interface::key(int, bool, bool) user_interface.cc:586
    #13 0x1030093dc in handle_key(int, bool, bool) main.cc:170
    #14 0x1030090b8 in program_main main.cc:411
    #15 0x102f94668 in RPLThread::run() sim-rpl.cpp:62
    #16 0x106752b50 in QThreadPrivate::start(void*)+0x14c (QtCore:arm64+0x19eb50)
    #17 0x106be1858 in asan_thread_start(void*)+0x40 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x51858)
    #18 0x19316b2e0 in _pthread_start+0x84 (libsystem_pthread.dylib:arm64e+0x72e0)
    #19 0x1931660f8 in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x20f8)