Project

General

Profile

Actions

Emulator Issues #11326

closed

Crash after running 'sudo /usr/games/dolphin-emu' on accident

Added by newhacker1746 over 5 years ago. Updated over 5 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?

N/A

Game ID? (right click the game in the game list, properties, info tab)

N/A

MD5 Hash? (right click the game in the game list, properties, info tab, MD5 Hash: Compute)

N/A

What's the problem? Describe what went wrong.

After running sudo /usr/games/dolphin-emu on accident, dolphin crashes with a SIGABRT "Aborted (core dumped)"

What steps will reproduce the problem?

  1. Run sudo /usr/games/dolphin-emu
  2. Run dolphin-emu as a non-root user

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

I am using the dolphin-emu-master package from the dolphin-emu ppa, output of "dolphin-emu --version" is "Dolphin 5.0-0a8e04e-dirty"

Is the issue present in the latest stable version?

Yes, from the ubuntu default repos:

dolphin-emu/bionic 5.0+dfsg-2build1 amd64 [installed]
Gamecube and Wii emulator

dolphin-emu-data/bionic 5.0+dfsg-2build1 all [installed,automatic]
Gamecube and Wii emulator - data files

If the issue isn't present in the latest stable version, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)

[First broken version number here (if applicable)]

If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer

Attach any fifologs if possible, write a description of fifologs and screenshots here to assist people unfamiliar with the game.

What are your PC specifications? (CPU, GPU, Operating System, more)

Pentium G3258, GTX 760 (with nouveau driver from stock mesa), Ubuntu 18.04.

Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)

  1. Running dolphin-emu as root or with sudo does work and shows the gui. (but not as a non-root user)

  2. List of dolphin-related packages installed:

dolphin-emu-data-master/bionic,now 5.0+git-r201808051302-0a8e04e-33~ubuntu18.04.1 all [installed,automatic]
Gamecube and Wii emulator - data files

dolphin-emu-master/bionic,now 5.0+git-r201808051302-0a8e04e-33~ubuntu18.04.1 amd64 [installed]
GameCube and Wii emulator

dolphin-emu-master-dbg/bionic,now 5.0+git-r201808051302-0a8e04e-33~ubuntu18.04.1 amd64 [installed]
GameCube and Wii emulator - debug symbols

  1. GDB output (after installing dolphin-emu-master-dbg):

$ gdb dolphin-emu
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from dolphin-emu...Reading symbols from /usr/lib/debug/.build-id/d4/f5834427705685b74b273a3816e826c1bb11aa.debug...done.
done.
(gdb) run
Starting program: /usr/games/dolphin-emu
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffd84f5700 (LWP 26576)]
[New Thread 0x7fffd4a8f700 (LWP 26577)]
[New Thread 0x7fffcffff700 (LWP 26578)]
[New Thread 0x7fffcf7fe700 (LWP 26579)]
[New Thread 0x7fffce166700 (LWP 26580)]

Thread 1 "dolphin-emu" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb)

Actions #1

Updated by Techjar over 5 years ago

Running as root has caused something in Dolphin's config to be owned by root, so you'll need to go chown the config directories to fix it.

Actions #2

Updated by newhacker1746 over 5 years ago

Techjar wrote:

Running as root has caused something in Dolphin's config to be owned by root, so you'll need to go chown the config directories to fix it.

Oops, duh. I can't believe I forgot this would happen when I run something as root... running strace on it confirms it too, it tries to access files, permission denied, and those files were changed to root:root. I am an idiot. Thanks for that, totally fixed it. Can you or someone close the issue? Thanks again!

Actions #3

Updated by ytpillai over 5 years ago

We should close this issue

Techjar wrote:

Running as root has caused something in Dolphin's config to be owned by root, so you'll need to go chown the config directories to fix it.

Actions #4

Updated by JosJuice over 5 years ago

  • Status changed from New to Invalid
Actions #5

Updated by Helios over 5 years ago

  • Status changed from Invalid to New

uhhhh, shouldn't Dolphin not crash?

If there are permission issues, error. Don't crash.

Actions #6

Updated by Techjar over 5 years ago

Here's a useful stack trace for any prospective devs: https://gist.github.com/Techjar/1a2c5b426c7a320a2be00890cb614b5e

Actions #7

Updated by Billiard26 over 5 years ago

  • Status changed from New to Fixed
Actions

Also available in: Atom PDF