[PR #1962] Keep boot trace text readable when map records lack names (BOOT-TRACE-MAP-NAME) #1970

Open
opened 2026-11-26 21:19:35 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1962
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: codex/boot-trace-map-name


📝 Commits (1)

  • 28c4f41 Keep boot trace text readable when map records lack names

📊 Changes

2 files changed (+26 additions, -1 deletions)

View changed files

📝 tests/test_boot_trace.py (+18 -0)
📝 tools/boot_trace.py (+8 -1)

📄 Description

Claimed in the coordination issue as: BOOT-TRACE-MAP-NAME

What and why

A startup trace can contain a parseable map record whose module name is missing or malformed. The text formatter currently concatenates that value with the relocation suffix and throws TypeError, so the caller loses the entire summary.

Print <unknown module> when the name is absent, empty, or non-text. The text summary still shows the module count, valid names, relocation markers, and later events such as the exit code. The JSON report keeps its existing fields and values.

Tested

  • python -I tests/test_boot_trace.py passed all 35 tests. The new synthetic JSONL regression throws TypeError before the fix.
  • python -I tests/test_dev_boot_trace.py passed all 5 tests.
  • git diff --check and the source-only check passed. Tested on Windows 11 with Python 3.11.17.

GPUs tested: n/a (CPU-only synthetic fixtures)

AI-assisted: yes (Codex)

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys or decryption.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1962 **Author:** [@alexandersato0830](https://github.com/alexandersato0830) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/boot-trace-map-name` --- ### 📝 Commits (1) - [`28c4f41`](https://github.com/ubiquitarianism/leonida/commit/28c4f418381a2cb1dc39f71a04e9f266ba6161b1) Keep boot trace text readable when map records lack names ### 📊 Changes **2 files changed** (+26 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_boot_trace.py` (+18 -0) 📝 `tools/boot_trace.py` (+8 -1) </details> ### 📄 Description Claimed in the coordination issue as: [BOOT-TRACE-MAP-NAME](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7168564771) ### What and why A startup trace can contain a parseable `map` record whose module name is missing or malformed. The text formatter currently concatenates that value with the relocation suffix and throws `TypeError`, so the caller loses the entire summary. Print `<unknown module>` when the name is absent, empty, or non-text. The text summary still shows the module count, valid names, relocation markers, and later events such as the exit code. The JSON report keeps its existing fields and values. ### Tested - `python -I tests/test_boot_trace.py` passed all 35 tests. The new synthetic JSONL regression throws `TypeError` before the fix. - `python -I tests/test_dev_boot_trace.py` passed all 5 tests. - `git diff --check` and the source-only check passed. Tested on Windows 11 with Python 3.11.17. GPUs tested: n/a (CPU-only synthetic fixtures) AI-assisted: yes (Codex) ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys or decryption. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1970
No description provided.