-
Notifications
You must be signed in to change notification settings - Fork 296
The 'list' type view doesn't always work and crashes in some cases #666
Copy link
Copy link
Closed
Labels
BugA report of unintended or broken behavior.A report of unintended or broken behavior.DebuggerPertains to the debugger.Pertains to the debugger.
Description
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.
here is the expanded [0] element from the second expression:
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:
- [0x7ff7a44666bd] arena_pop_to +61, base_arena.c line 204
- [0x7ff7a446687f] temp_end +31, base_arena.c line 262
- [0x7ff7a47642fa] e_list_gather_artifact_create +1994, eval_types.c line 2704
- [0x7ff7a4486802] ac_async_tick +4818, artifact_cache.c line 471
- [0x7ff7a4475b92] async_thread_entry_point +338, base_entry_point.c line 206
- [0x7ff7a44759db] supplement_thread_base_entry_point +43, base_entry_point.c line 152
- [0x7ff7a448145e] os_w32_thread_entry_point +62, os_core_win32.c line 150
- [0x7ffa98497374] KERNEL32
- [0x7ffa99b5cc91] ntdll
Version: 0.9.23 [f5b9443]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA report of unintended or broken behavior.A report of unintended or broken behavior.DebuggerPertains to the debugger.Pertains to the debugger.