mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-21 12:55:57 +00:00
Log the process commit in crash reports and in the memory census
A driver that runs out of memory faults or throws std::bad_alloc instead of returning an error: #285's log shows bad_alloc inside amdvlk64.dll under gpl_link, and nothing in the report told that apart from a driver bug. The crash report now prints the process and system commit, as rt_fatal does for our own failed allocations; --probe-kernel checks the line. The census at frames 600 and 1800 logs the commit as a baseline and, per heap, VMA's blocks and allocations beside the driver's usage and budget, so a report shows whose memory grew. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
717e68f601
commit
6e9ca1ebfd
3 files changed
+25
-1
No files matched your search
@@ -756,7 +756,9 @@ static void test_crash_report(void) {
|
||||
const char *g = report_line(out, "*5ca1ab1e0c0de002", line, sizeof line);
|
||||
CHECK(g && strstr(g, "x19"), "crash report: no memory line for x19 (%s)", g ? g : "none");
|
||||
CHECK(strstr(out, "guest stack sp+0x00:"), "crash report: no guest stack words");
|
||||
printf("crash report: exit code %d, host registers, code bytes, memory at rbx and x19, guest stack %s\n", code,
|
||||
CHECK(report_line(out, " memory commit: this process ", line, sizeof line) && !strstr(line, "process -1 MB"),
|
||||
"crash report: no memory commit line");
|
||||
printf("crash report: exit code %d, host registers, code bytes, memory at rbx and x19, guest stack, commit %s\n", code,
|
||||
failures ? "checked with failures" : "present");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user