Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion '!bc_ctx_p->current_p && !bc_ctx_p->block_end_p && !bc_ctx_p->block_start_p' failed in realloc_regexp_bytecode_block #245

Closed
renatahodovan opened this issue Jun 26, 2015 · 0 comments
Labels
bug Undesired behaviour ecma builtins Related to ECMA built-in routines normal
Milestone

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: e027b4d
Build: debug.linux
OS:
Ubuntu 14.10, x86_64
Test case:
v_0 = /N(?![^6](?:.)|(?!C[^k-o]*|p){0,}|H)|\\xDF\\db{0,}|i\\0?)/;
Backtrace:
ICE: Assertion '!bc_ctx_p->current_p && !bc_ctx_p->block_end_p && !bc_ctx_p->block_start_p' failed at jerryscript/jerry-core/parser/regexp/re-compiler.cpp(realloc_regexp_bytecode_block):50.
Error: ERR_FAILED_INTERNAL_ASSERTION

Program received signal SIGABRT, Aborted.
0x0000000000487307 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32    SYSCALL_2
(gdb) bt
#0  0x0000000000487307 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1  0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=25622, arg2=6)
    at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2  0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3  0x000000000043a617 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4  0x000000000043a666 in jerry_assert_fail (assertion=0x4921d8 "!bc_ctx_p->current_p && !bc_ctx_p->block_end_p && !bc_ctx_p->block_start_p", 
    file=0x492150 "jerryscript/jerry-core/parser/regexp/re-compiler.cpp", 
    function=0x48f040 <_ZZL29realloc_regexp_bytecode_blockP17re_bytecode_ctx_tE8__func__.lto_priv.141> "realloc_regexp_bytecode_block", line=50)
    at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5  0x00000000004101fb in realloc_regexp_bytecode_block (bc_ctx_p=0x7fffffffd270)
    at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:50
#6  0x0000000000410400 in bytecode_list_insert (bc_ctx_p=0x7fffffffd270, offset=240, bytecode_p=0x7fffffffd100 "", length=4)
    at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:104
#7  0x00000000004105ee in insert_u32(re_bytecode_ctx_t*, unsigned int, unsigned int) [clone .lto_priv.134] (bc_ctx_p=0x7fffffffd270, offset=240, 
    value=0) at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:172
#8  0x0000000000406fb8 in insert_simple_iterator (re_ctx_p=0x7fffffffd210, new_atom_start_offset=240)
    at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:236
#9  0x000000000040759d in parse_alternative (re_ctx_p=0x7fffffffd210, expect_eof=true)
    at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:447
#10 0x0000000000407ba3 in re_compile_bytecode (bytecode_p=0x7b6a88 <_ZL13mem_heap_area.lto_priv.1080+648>, 
    pattern_str_p=0x7b68a8 <_ZL13mem_heap_area.lto_priv.1080+168>, flags=0 '\000')
    at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:654
#11 0x000000000041ca4a in ecma_op_create_regexp_object (pattern_p=0x7b68a8 <_ZL13mem_heap_area.lto_priv.1080+168>, flags_str_p=0x0)
    at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp:219
#12 0x000000000043e5db in opfunc_assignment (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:202
#13 0x0000000000486497 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:471
#14 0x0000000000486724 in vm_run_from_pos (opcodes_p=0x7b69d8 <_ZL13mem_heap_area.lto_priv.1080+472>, start_pos=1, this_binding_value=15, 
    lex_env_p=0x7b6828 <_ZL13mem_heap_area.lto_priv.1080+40>, is_strict=false, is_eval_code=false)
    at jerryscript/jerry-core/vm/vm.cpp:561
#15 0x000000000048631d in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#16 0x000000000048429d in jerry_run () at jerryscript/jerry-core/jerry.cpp:1278
#17 0x0000000000482f8a in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:289
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour ecma builtins Related to ECMA built-in routines normal
Projects
None yet
Development

No branches or pull requests

3 participants