Open
Description
JerryScript revision
Build platform
Ubuntu 22.04.3
Build steps
python3 tools/build.py --debug --compile-flag=-fsanitize-coverage=trace-pc-guard --lto=off --compile-flag=-D_POSIX_C_SOURCE=200809 --compile-flag=-Wno-strict-prototypes --stack-limit=15
Test case
BigInt.asUintN(9, -4294967296n);
Output
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==2554727==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x56214357a000 (pc 0x562142aec953 bp 0x7ffd06bcc9a0 sp 0x7ffd06bcc8a0 T2554727)
==2554727==The signal is caused by a READ memory access.
#0 0x562142aec953 in ecma_builtin_bigint_object_as_int_n /jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-bigint.c:225:41
#1 0x562142aebe46 in ecma_builtin_bigint_dispatch_routine /jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-bigint.c:393:14
#2 0x562142a4ee24 in ecma_builtin_dispatch_routine /jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:1460:10
#3 0x562142a4eb5d in ecma_builtin_dispatch_call /jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:1489:12
#4 0x562142a6d0b7 in ecma_op_function_call_native_built_in /jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1223:5
#5 0x562142a6c77d in ecma_op_function_call /jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1468:16
#6 0x562142a6c9b3 in ecma_op_function_validated_call /jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1428:10
#7 0x562142add8a2 in opfunc_call /jerryscript/jerry-core/vm/vm.c:758:5
#8 0x562142acdd62 in vm_execute /jerryscript/jerry-core/vm/vm.c:5236:9
#9 0x562142acd22a in vm_run /jerryscript/jerry-core/vm/vm.c:5331:10
#10 0x562142acd0e6 in vm_run_global /jerryscript/jerry-core/vm/vm.c:286:25
#11 0x562142a0ebe0 in jerry_run /jerryscript/jerry-core/api/jerryscript.c:549:24
#12 0x562142b4a603 in jerryx_source_exec_script /jerryscript/jerry-ext/util/sources.c:68:14
#13 0x562142a0a401 in main /jerryscript/jerry-main/main-desktop.c:162:20
#14 0x7f7739029d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#15 0x7f7739029e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#16 0x5621429e17f4 in _start (/jerryscript/build_debug/bin/jerry+0xd7f4) (BuildId: c712c25006ad627a013c5da0b57a65321808fe0d)
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV /jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-bigint.c:225:41 in ecma_builtin_bigint_object_as_int_n
==2554727==ABORTING
Metadata
Metadata
Assignees
Labels
No labels