XL1200-EMU Symbolics XL1200 Emulator

Troubleshooting & Live Debug Guide

This guide is designed for both human beta testers and AI coding assistants (Antigravity, Claude Code, Codex CLI, Cursor, etc.) running ivory-xl1200 on Linux/POSIX or Windows.


1. One-Click Bug Reporting (Bug Dump)

When reporting a crash, hang, graphics glitch, or Genera error, capture a self-contained diagnostic archive:

  • GUI: Open Debug → Debug & Snapshots (or Machine → Save Bug Dump (.zip)...) and click Save Bug Dump (.zip)....
  • Live IPC:
    • Unix: ./scripts/xl1200-ctl.sh bug-report /tmp/xl1200-bug.zip
    • Windows / TCP: python3 scripts/xl1200-ctl.py bug-report C:\Temp\xl1200-bug.zip

Privacy Guarantees

ivory-bug-report-*.zip contains only diagnostic state:

  • README.txt — manifest and privacy notice.
  • report.txt — CPU/FPA registers, active trap context (mode, vector, handler, Rev 4 microstate), symbolic disassembly around PC, top 32 control-stack words with Genera object summaries, 16-frame symbolic backtrace, and Merlin-II/SCSI/Ethernet/Serial status.
  • config.scm — privacy-sanitized machine configuration (basenames only; host directory prefixes stripped).
  • screen.ppm — 1bpp monochrome VRAM + LED strip capture.
  • nvram.bin — 2 KiB Mostek MK48T02 NVRAM dump.
  • state.snap — sparse emulator state snapshot (omitted if powered off).

Zero copyrighted ROMs, .ilod worlds, or disk images are ever included.


2. Connecting to Live Debug IPC (Linux/macOS & Windows)

ivory-xl1200 exposes a non-blocking debug/control IPC server simultaneously on:

  1. Local IPC (enabled by default unless --no-debug-sock / --no-debug-pipe is passed):
    • Linux/POSIX: AF_UNIX socket at /tmp/ivory-xl1200-<pid>.sock (chmod 0600).
    • Windows: Win32 Named Pipe at \\.\pipe\ivory-xl1200-<pid>.
  2. Dual-Stack TCP (opt-in via --debug-tcp 127.0.0.1:12345 or :debug-tcp "127.0.0.1:12345" in xl1200.scm).

Cross-Platform Client (scripts/xl1200-ctl.py)

# List active local instances (AF_UNIX on Linux/macOS, Named Pipes on Windows)
python3 scripts/xl1200-ctl.py --list

# Basic read-only inspection
python3 scripts/xl1200-ctl.py state
python3 scripts/xl1200-ctl.py regs
python3 scripts/xl1200-ctl.py trap-info
python3 scripts/xl1200-ctl.py bt-sym 16
python3 scripts/xl1200-ctl.py disasm
python3 scripts/xl1200-ctl.py disasm --lisp 0xF8007162 16
python3 scripts/xl1200-ctl.py inspect 0xF8007162

# Over TCP (works identically on Linux, macOS, and Windows PowerShell)
python3 scripts/xl1200-ctl.py --tcp 127.0.0.1:12345 state

# Explicit Windows Named Pipe
python scripts\xl1200-ctl.py --pipe \\.\pipe\ivory-xl1200-12345 bt-sym

Lightweight Profiling (sample-sym)

To profile a slow Genera operation with 0% idle overhead (sampling runs strictly on demand):

python3 scripts/xl1200-ctl.py sample-sym 300 100 /tmp/genera.folded
  • Prints a sorted top-20 hot-functions summary immediately.
  • Writes standard Brendan Gregg .folded stack lines (ROOT;CALLER;CALLEE count) to /tmp/genera.folded, which you can drop straight into speedscope.app or flamegraph.pl.

3. Common Beta-Tester Issues & Triage Playbook

SymptomRoot CauseFix / Workaround
GUI starts with POWER OFF badgeInteractive GUI mode intentionally starts powered off so users can configure ROM/disks first.Click Machine → Power On (or pass --autostart / :autostart #t).
Missing or swapped Boot PROM (115988+115989)Authentic XL1200 firmware is split across two sequential 64 KiB EPROMs (115988 low 0x00000..0x0FFFF, 115989 high 0x10000..0x1FFFF) or combined 128 KiB rom.dump.Pass --rom 115988-e.bin --rom-hi 115989-e.bin (a lone 115988-* auto-pairs 115989-*, and swapped chips are auto-detected), or use the clean-room open-source Boot PROM in prom/.
Genera disk error 277684738 (0x108D2202, %Merlin-SCSI-data-protect)SCSI disk attached read-only (:ro default); Genera opens FREE-PAGES.FEP for overwrite on mount.Attach writable disks with :rw (or :overlay #t for copy-on-write safety).
Unpatched Genera 8.3 clock prompt (Unable to get time...)Unpatched Genera-8-3.ilod.1 rejects RTC years >= 2000.Type MM/DD/YYYY HH:MM:SS + Return, or set :rtc-offset (emu/rtc-year 1995) in xl1200.scm.
Show FEP Directory appears hung on large (9 GB) drivesGenera counts free-page bitmap bits one-by-one on first directory display (~4 min once per boot, then cached).Check bt-sym / sample-sym before assuming a deadlock — you will see bit-counting activity in FEP-ACCESS-PATHS.
Disk Restore arithmetic trap (#o200) on >2047 MiB paging file32-bit signed fixnum OP_MULTIPLY overflow in FEP Disk Restore.Keep individual paging files <= 2047 MiB.
Blank window or OpenGL crash in self-contained Linux bundle / WindowsHost GPU driver / bundled glibc mismatch or outdated OpenGL driver.Launch with SDL_RENDER_DRIVER=software (Linux/Windows).
Windows Defender / Firewall prompt on --debug-tcpTCP debug listener binds local port.Bind strictly to loopback (--debug-tcp 127.0.0.1:12345) or use the default local Named Pipe (\\.\pipe\ivory-xl1200-<pid>).

4. Inspecting an Attached ivory-bug-report-*.zip

unzip -l ivory-bug-report-*.zip
unzip -p ivory-bug-report-*.zip '*/report.txt' | less

Check in order:

  1. [Ivory Rev 4 CPU State] → status, trap_context (mode, vector, handler, Rev 4 microstate).
  2. [Instruction Window Around PC] → exact => instruction and surrounding disassembled code.
  3. [Symbolic Control Stack Backtrace] → caller chain (#00..#15) with resolved Genera function names and offsets.
  4. [Merlin-II / SCSI / Ethernet] → attached targets, :ro flags, IRQ pending bits, and LEDs.
Related Chip Datasheets (1)All Component Datasheets →