Skip to content

Assertion 'ECMA_EXECUTABLE_OBJECT_IS_SUSPENDED (executable_object_p)' failed in opfunc_resume_executable_object #5347

Backlog

Description

@renatahodovan
JerryScript revision

b706935

Build platform

macOS 26.6.2, arm64

Build steps
./tools/build.py --clean --debug --compile-flag=-fsanitize=address --logging=on --compile-flag="-Wno-error=enum-enum-conversion" --compile-flag="-Wno-unterminated-string-initialization"
Test case
function f(){}
function*asyncg(obj){yield*obj}
function f5(){
    iter=asyncg({[Symbol.iterator](){iter.return()}});iter.next()
}
const tests=[f5];
for(let t of tests)t()
Output
ICE: Assertion 'ECMA_EXECUTABLE_OBJECT_IS_SUSPENDED (executable_object_p)' failed at jerryscript/fresh/src/jerry-core/vm/opcodes.c(opfunc_resume_executable_object):743.
Error: JERRY_FATAL_FAILED_ASSERTION
AddressSanitizer:DEADLYSIGNAL
=================================================================
==90024==ERROR: AddressSanitizer: ABRT on unknown address 0x0001826485e8 (pc 0x0001826485e8 bp 0x00016daec090 sp 0x00016daec070 T0)
c    #0 0x0001826485e8 in __pthread_kill+0x8 (libsystem_kernel.dylib:arm64e+0x95e8)
    #1 0x000182589974 in abort+0x90 (libsystem_c.dylib:arm64e+0x78974)
    #2 0x000102431118 in jerry_port_fatal jerry-port-process.c:41
    #3 0x0001023bfed4 in jerry_fatal jrt-fatals.c:63
    #4 0x0001023bff14 in jerry_assert_fail jrt-fatals.c:83
    #5 0x0001024154b0 in opfunc_resume_executable_object opcodes.c:743
    #6 0x0001023595b0 in ecma_builtin_generator_prototype_dispatch_routine+0x3b0 (jerry:arm64+0x1000495b0)
    #7 0x000102375c88 in ecma_builtin_dispatch_routine ecma-builtins.c:1460
    #8 0x000102375c88 in ecma_builtin_dispatch_call ecma-builtins.c:1489
    #9 0x000102398930 in ecma_op_function_call_native_built_in ecma-function-object.c:1223
    #10 0x000102397fcc in ecma_op_function_call ecma-function-object.c:1468
    #11 0x0001023982fc in ecma_op_function_validated_call ecma-function-object.c:1428
    #12 0x00010241d594 in opfunc_call vm.c:758
    #13 0x00010241d594 in vm_execute vm.c:5236
    #14 0x00010241c244 in vm_run vm.c:5331
    #15 0x0001023985f4 in ecma_op_function_call_simple ecma-function-object.c:1180
    #16 0x00010239804c in ecma_op_function_call ecma-function-object.c:1463
    #17 0x0001023982fc in ecma_op_function_validated_call ecma-function-object.c:1428
    #18 0x00010241d594 in opfunc_call vm.c:758
    #19 0x00010241d594 in vm_execute vm.c:5236
    #20 0x00010241c244 in vm_run vm.c:5331
    #21 0x00010241bfa0 in vm_run_global vm.c:286
    #22 0x0001023157d4 in jerry_run jerryscript.c:549
    #23 0x000102430294 in jerryx_source_exec_script sources.c:68
    #24 0x000102311414 in main main-desktop.c:156
    #25 0x0001822b84e0 in start+0x1b4c (dyld:arm64e+0x204e0)

Found with grammarinator.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions