Skip to content

The 'list' type view doesn't always work and crashes in some cases #666

@Strewya

Description

@Strewya

Along with the crash (dump and stack below the image), from some other testing, it doesn't seem like the list view works if the member that is the next link isn't the first member of the struct, i.e. for a struct like

struct chunk
{
    chunk *NextHashmap;
    chunk *NextPending;
// some more data here
};

using list(Chunk, NextHashmap) works as expected, but list(Chunk, NextPending) shows it as having a single element even tho there are many elements. I've added a screenshot to show the issue.

Image

here is the expanded [0] element from the second expression:

Image

As for the crash, it occured when using list(Thing, NextChunk), where Thing is a

  struct thing
  {
    u64 Flags;
    string DebugName;
    thing_handle Handle;

    thing *NextChunk;
    thing *PrevChunk;
    thing *NextMover;
    thing *PrevMover;
    thing *NextRetire;
    thing *NextType;
    thing *PrevType;
// a ton more data below
};

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

Call stack:

  1. [0x7ff7a44666bd] arena_pop_to +61, base_arena.c line 204
  2. [0x7ff7a446687f] temp_end +31, base_arena.c line 262
  3. [0x7ff7a47642fa] e_list_gather_artifact_create +1994, eval_types.c line 2704
  4. [0x7ff7a4486802] ac_async_tick +4818, artifact_cache.c line 471
  5. [0x7ff7a4475b92] async_thread_entry_point +338, base_entry_point.c line 206
  6. [0x7ff7a44759db] supplement_thread_base_entry_point +43, base_entry_point.c line 152
  7. [0x7ff7a448145e] os_w32_thread_entry_point +62, os_core_win32.c line 150
  8. [0x7ffa98497374] KERNEL32
  9. [0x7ffa99b5cc91] ntdll

Version: 0.9.23 [f5b9443]

raddbg_crash_dump.dmp

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA report of unintended or broken behavior.DebuggerPertains to the debugger.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions