Project

General

Profile

Actions

Emulator Issues #1318

closed

Segfault in Linux 64bit after Stop Button is pressed (libpthread)

Added by lubosz over 14 years ago.

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

0%

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

Description

What steps will reproduce the problem?

  1. Run Game (Wii, WiiWare or GameCube)
  2. Press Stop Button
  3. Enjoy segfault

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Ubuntu 64 bit, svn rev 4030

Please provide any additional information below.

(gdb) run
Starting program:
/home/bmonkey/Apps/dolphin-emu-read-only/Binary/Linux-x86_64/Dolphin
[Thread debugging using libthread_db enabled]
37:34:563 N[BOOT]: Loading Settings from ./User/Config/Dolphin.ini
[New Thread 0x7f0dfafbd7e0 (LWP 9269)]
37:34:636 N[BOOT]: Starting application
37:34:636 N[BOOT]: Loading Settings from ./User/Config/Dolphin.ini

#Start Button is pressed

281480551023952
[New Thread 0x7f0ba33cb950 (LWP 9118)]
[New Thread 0x7f0b9bb56950 (LWP 9119)]
34:24:685 N[Video]: Got Doublebuffered Visual!
34:24:686 N[Video]: glX-Version 1.4
[New Thread 0x7f0b99853950 (LWP 9120)]
wiiuse v0.12 loaded.
By: Michael Laforest <thepara[at]gmail{dot}com>
http://wiiuse.net http://wiiuse.sf.net
hci_inquiry: Interrupted system call
34:24:838 N[BOOT]: Booting my.wad
[New Thread 0x7f0b8f9ec950 (LWP 9121)]
34:25:054 N[Video]: GLWin Depth 24
34:25:055 N[Video]: detected direct rendering
Open device file: Permission denied
ALSA: underrun, at least 0ms.
...
ALSA: underrun, at least 0ms.

#Stop Button is pressed

34:30:131 N[BOOT]: Shutting down core
[Thread 0x7f0b9bb56950 (LWP 9119) exited]
[INFO] wiiuse clean up...
34:30:158 N[DSPHLE]: Shutting down sound stream
[Thread 0x7f0b8f9ec950 (LWP 9121) exited]
[Thread 0x7f0b99853950 (LWP 9120) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f0ba33cb950 (LWP 9118)]
0x00007f0ba56314a0 in ?? ()
(gdb) bt
#0 0x00007f0ba56314a0 in ?? ()
#1 0x00007f0bb2e10459 in start_thread () from /lib/libpthread.so.0
#2 0x00007f0bb0d3afcd in clone () from /lib/libc.so.6
#3 0x0000000000000000 in ?? ()


Related issues 1 (0 open1 closed)

Is duplicate of Emulator - Emulator Issues #1277: Crash on stopFixed

Actions
Actions #1

Updated by lubosz over 14 years ago

same with dual core turned on

Actions #2

Updated by marcus over 14 years ago

  • Status changed from New to Accepted
  • Issue type set to Bug
  • Priority set to Normal
  • Relates to usability set to Yes
  • Operating system N/A added
Actions #3

Updated by belegdol over 14 years ago

Here is a bit better backtrace with gdb:

$ gdb Dolphin
GNU gdb (GDB) Fedora (6.8.50.20090302-38.fc11)
Copyright (C) 2009 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-redhat-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
(gdb) run -e Iso/rez1.iso
Starting program:
/home/jsikorski/cvs/dolphin-emu-read-only/Binary/Linux-x86_64/Dolphin -e Iso/rez1.iso
[Thread debugging using libthread_db enabled]
08:01:958 N[BOOT]: Loading Settings from ./User/Config/Dolphin.ini
08:02:155 N[BOOT]: Starting application
08:02:156 N[BOOT]: Loading Settings from ./User/Config/Dolphin.ini
08:02:414 W[COMMON]: IsDirectory: stat failed on
./User/Wii/title/00000001/00000002/content:
[New Thread 0x7ffff01bc910 (LWP 22333)]
[New Thread 0x7fffe9dd5910 (LWP 22334)]
[New Thread 0x7fffe8ad4910 (LWP 22335)]
08:03:958 N[Video]: Got Doublebuffered Visual!
08:03:958 N[Video]: glX-Version 1.3
[New Thread 0x7fffe05fd910 (LWP 22336)]
[New Thread 0x7fffcbffe910 (LWP 22337)]
08:04:135 E[]: Warning: nJoy: No Gamepad Detected
nJoy: No Gamepad Detected
08:04:135 N[BOOT]: Booting Iso/rez1.iso
08:04:193 N[FileMon]: Opening 'Iso/rez1.iso'
08:04:259 N[OSREPORT]: (PC=81200500) OSReport: Apploader Initialized. $Revision: 31 $.
08:04:259 N[OSREPORT]: (PC=8120051c) OSReport: This Apploader built Sep 5 2002 05:58:53
08:04:825 N[Video]: GLWin Depth 24
08:04:829 N[Video]: detected direct rendering
08:04:853 N[PowerPC]: Flush Instruction Cache! ICE=0
08:04:856 N[PowerPC]: Instruction Cache Enable (HID0.ICE) = 1
Open device file: Brak dostępu
08:05:011 W[CP]: write to PERF_SELECT: 0000
08:05:043 W[Video]: Failed to get video for this frame
08:05:086 E[
]: Warning: Error opening framedump.raw for writing.
Error opening framedump.raw for writing.
08:05:935 W[FileMon]: 42 kB bio0/message/message.arc
08:05:942 W[FileMon]: 4 kB bio0/sound/all.arc
08:05:947 W[FileMon]: 144 kB bio0/sound/all.sam
08:05:961 W[FileMon]: 0 kB bio0/sound/we02.arc
08:05:962 W[FileMon]: 76 kB bio0/sound/we02.sam
08:05:967 W[FileMon]: 1 kB bio0/sound/we03.arc
08:05:968 W[FileMon]: 109 kB bio0/sound/we03.sam
08:05:982 W[FileMon]: 1 kB bio0/sound/we05.arc
08:05:982 W[FileMon]: 226 kB bio0/sound/we05.sam
08:05:998 W[FileMon]: 1 kB bio0/sound/we07.arc
08:05:999 W[FileMon]: 171 kB bio0/sound/we07.sam
08:06:016 W[FileMon]: 1 kB bio0/sound/we0a.arc
08:06:017 W[FileMon]: 92 kB bio0/sound/we0a.sam
08:06:026 W[FileMon]: 1 kB bio0/sound/we0b.arc
08:06:027 W[FileMon]: 77 kB bio0/sound/we0b.sam
08:06:031 W[FileMon]: 0 kB bio0/sound/we0e.arc
08:06:032 W[FileMon]: 165 kB bio0/sound/we0e.sam
08:06:047 W[FileMon]: 0 kB bio0/sound/we0f.arc
08:06:047 W[FileMon]: 68 kB bio0/sound/we0f.sam
08:06:055 W[FileMon]: 1 kB bio0/sound/we16.arc
08:06:055 W[FileMon]: 99 kB bio0/sound/we16.sam
08:06:061 W[FileMon]: 0 kB bio0/sound/we17.arc
08:06:063 W[FileMon]: 74 kB bio0/sound/we17.sam
08:06:086 W[FileMon]: 13 kB bio0/texture/font.tpl
08:09:659 W[CONSOLE]: Stop [Main Thread] ---- Shutting down ----
08:09:659 W[CONSOLE]: Stop [Main Thread 0] Stop CPU
08:09:659 W[CONSOLE]: Stop [Main Thread 0] Shutting down core
08:09:659 N[CONSOLE]: Stop [Video Thread 0] Stop() and Video Loop Ended
08:09:659 W[CONSOLE]: Stop [Main Thread 0] Stopping Emu thread ...
08:09:660 W[CONSOLE]: Stop [Video Thread 0] Shutting down HW
[Thread 0x7fffe8ad4910 (LWP 22335) exited]
08:09:706 N[CONSOLE]: Stop [Video Thread 0] HW shutdown
08:09:706 W[CONSOLE]: Stop [Video Thread 0] Shutting down plugins
08:09:707 N[DSPHLE]: Shutting down sound stream
[Thread 0x7fffcbffe910 (LWP 22337) exited]
[Thread 0x7fffe05fd910 (LWP 22336) exited]
08:11:831 W[DSPHLE]: Audio logging already stopped
08:11:832 W[CONSOLE]: Stop [Video Thread 0] Will unload audio DLL
08:11:865 N[CONSOLE]: Stop [Video Thread 0] Audio shutdown
08:11:865 N[CONSOLE]: Stop [Video Thread 0] Plugins shutdown
08:11:889 W[CONSOLE]: Stop [Video Thread 0] Will unload video DLL
08:11:924 N[CONSOLE]: Stop [Video Thread 0] Video shutdown
08:11:924 N[CONSOLE]: Stop [Main Thread 0] Main thread stopped
08:11:924 N[CONSOLE]: Stop [Main Thread] ---- Shutdown complete ----

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe9dd5910 (LWP 22334)]
0x0000003294e70520 in ?? ()
(gdb) bt full
#0 0x0000003294e70520 in ?? ()
No symbol table info available.
#1 0x000000315de05ad9 in __nptl_deallocate_tsd () at pthread_create.c:154
data = 0x7fffdc00e010
cnt = 0
#2 0x000000315de06878 in start_thread (arg=)
at pthread_create.c:304
pd = 0x7fffe9dd5910
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737116985616,
5166802311955293447, 140737488343712, 0, 4, 7,
-5166762466578586361, 5176483783760880903},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call =
#3 0x000000315d2de3bd in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
No locals.
#4 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb)

I have attached a more full version which bug-buddy dumps.

Actions #4

Updated by tomman over 14 years ago

It always segfaults for me at exit, BUT ONLY after running a game. If i start
Dolphin, do anything except gaming, and exit, everything ends fine.

Sometimes it crashes as soon as i stop the emulation, but most of the times it dies
after exiting the emulator. It's no big deal, but still it's annoying.

Here is a backtrace, after running Wii System Menu, stopping the emulation, and
exiting the emulator:

18:45:228 W[CONSOLE]: Stop [Main Thread] ---- Shutting down ----
18:45:228 W[CONSOLE]: Stop [Main Thread 0] Stop CPU
18:45:229 N[CONSOLE]: Stop [Main Thread 0] Wait for Video Loop to exit ...
18:45:229 W[CONSOLE]: Stop [Main Thread 0] Shutting down core
18:45:229 N[CONSOLE]: Stop [Video Thread 0] Stop() and Video Loop Ended
18:45:229 W[CONSOLE]: Stop [Main Thread 0] Stopping Emu thread ...
18:45:229 W[CONSOLE]: Stop [Video Thread 0] Shutting down HW
[Thread 1100900672 (LWP 7744) exited]
[Thread 1108355392 (LWP 7742) exited]
18:45:261 N[CONSOLE]: Stop [Video Thread 0] HW shutdown
18:45:261 W[CONSOLE]: Stop [Video Thread 0] Shutting down plugins
18:45:295 N[DSPHLE]: Shutting down sound stream
[Thread 1088096576 (LWP 7743) exited]
18:45:376 N[DSPHLE]: Stopping Audio logging
18:45:377 W[CONSOLE]: Stop [Video Thread 0] Will unload audio DLL
18:45:394 N[CONSOLE]: Stop [Video Thread 0] Audio shutdown
18:45:394 N[CONSOLE]: Stop [Video Thread 0] Plugins shutdown
18:45:439 W[CONSOLE]: Stop [Video Thread 0] Will unload video DLL
18:45:458 N[CONSOLE]: Stop [Video Thread 0] Video shutdown
18:45:458 W[CONSOLE]: Stop [Main Thread 0] Stopping CPU thread ...
18:45:458 N[CONSOLE]: Stop [Main Thread 0] Main thread stopped
18:45:458 N[CONSOLE]: Stop [Main Thread] ---- Shutdown complete ----
[Thread 1090779456 (LWP 7741) exited]
18:47:753 N[BOOT]: Saving Settings to ./User/Config/Dolphin.ini

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 140679110977264 (LWP 7738)]
0x0000000000000131 in ?? ()
(gdb) bt
#0 0x0000000000000131 in ?? ()
#1 0x000000000049a51d in CPluginManager::~CPluginManager ()
#2 0x0000003d59232eb5 in exit () from /lib64/libc.so.6
#3 0x0000003d5921d8ab in __libc_start_main () from /lib64/libc.so.6
#4 0x000000000041d199 in _start ()

It still happens as of r4605...

Actions #5

Updated by glennricster over 14 years ago

Does this still happen or is this issue resolved? I haven't had this problem for a
long time now.

Actions #6

Updated by XTra.KrazzY over 14 years ago

  • Status changed from Accepted to Duplicate

No matter what, it's a "Crash on Stop"

Actions #7

Updated by segfaultmaker over 13 years ago

Still happenning on 64bit linux r6296. Very annoying when using a frontend (xbmc or mythtv) to launch dolphin and worse when original screen resolution is not set back.

Actions

Also available in: Atom PDF