Skip to content

DISCORDRPC causes a segmentation fault on exit on linux #101

@JustinJayL

Description

@JustinJayL

Describe the bug
The game crashes on exit if compiled with discord rpc support on linux.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo, and build with the following flags:
    make -j4 DISCORDRPC=1
  2. cd build/us_pc/; ./sm64.us.f3dex2e
    (You need to be cd'd into the us_pc directory for it to load the libdiscord-rpc.so.)
  3. After the game launches, click on the exit button, or try to exit from within the game menu.
  4. See error
    Expected behavior
    The game should exit cleanly without a segmentation fault.

Screenshots

Image

Desktop (please complete the following information):

  • OS: Arch Linux (KDE Plasma, Wayland, x64)
  • Version 6.18.2-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 18 Dec 2025 18:00:18 +0000 x86_64 GNU/Linux

Additional context
The discordrpc function does seem to work while the game is actually running, it reports the game and shows up on discord.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions