You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Program received signal SIGABRT, Aborted.
0xf7fd5059 in __kernel_vsyscall ()
#0 0xf7fd5059 in __kernel_vsyscall ()
#1 0xf7de9832 in raise () from /lib/i386-linux-gnu/libc.so.6
#2 0xf7deacc1 in abort () from /lib/i386-linux-gnu/libc.so.6
#3 0x565c8336 in duk_default_fatal_handler.lto_priv.138 (udata=0x0, msg=0x565ed5c8 "assertion failed: DUK_TVAL_IS_OBJECT(tv) (duk_js_compiler.c:799)") at duk_error_macros.c:145
#4 0x56576b6d in duk__convert_to_func_template (comp_ctx=0xffffc548) at duk_js_compiler.c:799
#5 0x5658023d in duk__js_compile_raw (thr=0xf7c98418, udata=0xffffc544) at duk_js_compiler.c:7981
#6 0x56574bab in duk__handle_safe_call_inner (thr=0xf7c98418, func=0x5657fdab <duk__js_compile_raw>, udata=0xffffc544, entry_valstack_bottom_byteoff=64, entry_callstack_top=2,
entry_curr_thread=0xf7c98418, entry_thread_state=2 '\002', idx_retbase=1, num_stack_rets=1) at duk_js_call.c:2438
#7 0x565756a4 in duk_handle_safe_call.lto_priv.479 (thr=0xf7c98418, func=0x5657fdab <duk__js_compile_raw>, udata=0xffffc544, num_stack_args=1, num_stack_rets=1) at duk_js_call.c:2683
#8 0x565cb3af in duk_safe_call (thr=0xf7c98418, func=0x5657fdab <duk__js_compile_raw>, udata=0xffffc544, nargs=1, nrets=1) at duk_api_call.c:320
#9 0x5658037f in duk_js_compile.lto_priv.415 (thr=0xf7c98418, src_buffer=0xf7c8c814 "function\t\342\200\251w(\f) {\r};", src_length=22, flags=8) at duk_js_compiler.c:8012
#10 0x565907d6 in duk_bi_global_object_eval.lto_priv.70 (thr=0xf7c98418) at duk_bi_global.c:486
#11 0x5657429d in duk__handle_call_raw (thr=0xf7c98418, idx_func=1, call_flags=24) at duk_js_call.c:2231
#12 0x565748e3 in duk_handle_call_unprotected.lto_priv.254 (thr=0xf7c98418, idx_func=1, call_flags=12) at duk_js_call.c:2385
#13 0x5656129b in duk__executor_handle_call (thr=0xf7c98418, idx=1, nargs=1, call_flags=12) at duk_js_executor.c:2655
#14 0x56563f02 in duk__js_execute_bytecode_inner (entry_thread=0xf7c98418, entry_act=0xf7c8f064) at duk_js_executor.c:4729
#15 0x56561670 in duk_js_execute_bytecode.lto_priv.283 (exec_thr=0xf7c98418) at duk_js_executor.c:2917
#16 0x56574143 in duk__handle_call_raw (thr=0xf7c98418, idx_func=3, call_flags=0) at duk_js_call.c:2203
#17 0x565748e3 in duk_handle_call_unprotected.lto_priv.254 (thr=0xf7c98418, idx_func=3, call_flags=0) at duk_js_call.c:2385
#18 0x565ca3fd in duk_call_method (thr=0xf7c98418, nargs=0) at duk_api_call.c:152
#19 0x5655a458 in wrapped_compile_execute (ctx=0xf7c98418, udata=0x0) at examples/cmdline/duk_cmdline.c:301
#20 0x56574bab in duk__handle_safe_call_inner (thr=0xf7c98418, func=0x5655a1db <wrapped_compile_execute>, udata=0x0, entry_valstack_bottom_byteoff=0, entry_callstack_top=0, entry_curr_thread=0x0,
entry_thread_state=1 '\001', idx_retbase=0, num_stack_rets=1) at duk_js_call.c:2438
#21 0x565756a4 in duk_handle_safe_call.lto_priv.479 (thr=0xf7c98418, func=0x5655a1db <wrapped_compile_execute>, udata=0x0, num_stack_args=4, num_stack_rets=1) at duk_js_call.c:2683
#22 0x565cb3af in duk_safe_call (thr=0xf7c98418, func=0x5655a1db <wrapped_compile_execute>, udata=0x0, nargs=4, nrets=1) at duk_api_call.c:320
#23 0x5655a657 in handle_fh (ctx=0xf7c98418, f=0x566bd160, filename=0xffffd471 "test.js", bytecode_filename=0x0) at examples/cmdline/duk_cmdline.c:632
#24 0x5655a831 in handle_file (ctx=0xf7c98418, filename=0xffffd471 "test.js", bytecode_filename=0x0) at examples/cmdline/duk_cmdline.c:691
#25 0x5655b3df in main (argc=2, argv=0xffffd2d4) at examples/cmdline/duk_cmdline.c:1465
Root cause here seems to be that the compiler uses Array objects (duk_push_array()) for its internal book-keeping and the inherited setter interferes with that. A simple fix is to use "bare arrays" (Array object without a prototype) in the compiler, I'll open a pull to fix this.
Duktape version:
OS:
Test case:
Backtrace:
Found by Fuzzinator with grammarinator.
The text was updated successfully, but these errors were encountered: