Skip to content

Crash when editing watch expressions #471

@Strewya

Description

@Strewya

I can get it to 100% repro when i have a string type (struct string { const char *Characters; i32 Length; }) in the watch, then modify the expression
StringVariable.slice()
into
StringVariable.()
by deleting the word slice with the backspace.

[Window Title]
Fatal Exception

[Content]
A fatal exception (code 0xc0000005) occurred. The process is terminating.

Call stack:

  1. [0x7ff6cf954ea1] e_expr_push_child +513, eval_parse.c line 320
  2. [0x7ff6cf9630e4] e_push_irtree_and_type_from_expr +14036, eval_ir.c line 1362
  3. [0x7ff6cf944811] e_irtree_from_bundle +273, eval_core.c line 850
  4. [0x7ff6cf9450db] e_eval_from_bundle +155, eval_core.c line 961
  5. [0x7ff6cfa8ed38] e_type_expand_range__watches +408, raddbg_eval.c line 1206
  6. [0x7ff6cf96fd7d] ev_windowed_row_list_from_block_range_list +1245, eval_visualization_core.c line 989
  7. [0x7ff6cf970282] ev_row_from_num +146, eval_visualization_core.c line 1031
  8. [0x7ff6cfabe90a] rd_tbl_from_watch_pt +186, raddbg_views.c line 902
  9. [0x7ff6cf9eca75] rd_view_ui +25029, raddbg_core.c line 3114
  10. [0x7ff6cfa30c4e] rd_window_frame +143550, raddbg_core.c line 8697
  11. [0x7ff6cfa86568] rd_frame +272792, raddbg_core.c line 16374
  12. [0x7ff6cf8dc4e9] frame +9, raddbg_main.c line 719
  13. [0x7ff6cf8d5799] update +25, base_entry_point.c line 128
  14. [0x7ff6cf8da8e1] entry_point +6801, raddbg_main.c line 970
  15. [0x7ff6cf8d5724] main_thread_base_entry_point +340, base_entry_point.c line 100
  16. [0x7ff6cfad9c12] w32_entry_point_caller +2802, os_core_win32.c line 1771
  17. [0x7ff6cf8df7d6] wWinMain +54, os_core_win32.c line 1783
  18. [0x7ff6cfb1698e] __scrt_common_main_seh +262, exe_common.inl line 288
  19. [0x7ff85e647374] KERNEL32
  20. [0x7ff85efbcc91] ntdll

Version: 0.9.16 [7048a87]

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