Bug 1408525

Summary: [abrt] dolphin-emu: pthread_cond_wait@@GLIBC_2.3.2(): dolphin-emu killed by SIGABRT
Product: [Fedora] Fedora Reporter: Robert Hancock <hancockrwd>
Component: dolphin-emuAssignee: Jeremy Newton <alexjnewt>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: alexjnewt
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/dc76d612f1ce3a01ab3b6481895101e7108a3c07
Whiteboard: abrt_hash:701ba25b9bb23297f8daf34a6cd5efbc954a5d64;VARIANT_ID=workstation;
Fixed In Version: dolphin-emu-5.0-10.fc24 dolphin-emu-5.0-10.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-13 07:21:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Robert Hancock 2016-12-24 04:19:39 UTC
Description of problem:
Started dolphin-emu, it just crashes immediately.

Version-Release number of selected component:
dolphin-emu-5.0-7.fc25

Additional info:
reporter:       libreport-2.8.0
backtrace_rating: 4
cmdline:        dolphin-emu
crash_function: pthread_cond_wait@@GLIBC_2.3.2
executable:     /usr/bin/dolphin-emu
global_pid:     26206
kernel:         4.8.13-300.fc25.x86_64
pkg_fingerprint: 4089 D8F2 FDB1 9C98
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 8 (3 frames)
 #0 pthread_cond_wait@@GLIBC_2.3.2 at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
 #1 __gthread_cond_wait at /usr/src/debug/gcc-6.2.1-20160916/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:864
 #2 std::condition_variable::wait at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:53

Comment 1 Robert Hancock 2016-12-24 04:19:43 UTC
Created attachment 1235180 [details]
File: backtrace

Comment 2 Robert Hancock 2016-12-24 04:19:44 UTC
Created attachment 1235181 [details]
File: cgroup

Comment 3 Robert Hancock 2016-12-24 04:19:45 UTC
Created attachment 1235182 [details]
File: core_backtrace

Comment 4 Robert Hancock 2016-12-24 04:19:46 UTC
Created attachment 1235183 [details]
File: dso_list

Comment 5 Robert Hancock 2016-12-24 04:19:47 UTC
Created attachment 1235184 [details]
File: environ

Comment 6 Robert Hancock 2016-12-24 04:19:48 UTC
Created attachment 1235185 [details]
File: limits

Comment 7 Robert Hancock 2016-12-24 04:19:49 UTC
Created attachment 1235186 [details]
File: maps

Comment 8 Robert Hancock 2016-12-24 04:19:50 UTC
Created attachment 1235187 [details]
File: mountinfo

Comment 9 Robert Hancock 2016-12-24 04:19:51 UTC
Created attachment 1235188 [details]
File: namespaces

Comment 10 Robert Hancock 2016-12-24 04:19:52 UTC
Created attachment 1235189 [details]
File: open_fds

Comment 11 Robert Hancock 2016-12-24 04:19:53 UTC
Created attachment 1235190 [details]
File: proc_pid_status

Comment 12 Robert Hancock 2016-12-24 04:19:54 UTC
Created attachment 1235191 [details]
File: var_log_messages

Comment 13 Robert Hancock 2016-12-24 05:45:36 UTC
Workaround is to set GDK_BACKEND=x11 environment variable when running dolphin-emu. It looks like when it tries to run under Wayland it still tries to use XRandR operations, which blows up.

Comment 14 Jeremy Newton 2017-01-03 23:09:48 UTC
Noted, I will look into this, or add this workaround.

Thanks!

Comment 15 Jeremy Newton 2017-01-04 03:48:48 UTC
It seems like the x11 stuff is compile time rather than runtime, so I'll have to just work around the issue by forcing x11 for now. Stay tuned, I'll push an update.

Comment 16 Fedora Update System 2017-01-04 15:47:20 UTC
dolphin-emu-5.0-9.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-589fd56903

Comment 17 Fedora Update System 2017-01-04 15:47:27 UTC
dolphin-emu-5.0-9.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-5f0d90c57b

Comment 18 Jeremy Newton 2017-01-04 15:55:11 UTC
dolphin-emu-5.0-9 includes this work around.

I'll keep this bug open until I can get a better solution working.

Since the X stuff is built in at compile time, either a patch is needed to detect at run time if the application is in X, or possibly it can be built to be more protocol agnostic.

Comment 19 Fedora Update System 2017-01-05 15:50:14 UTC
dolphin-emu-5.0-10.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-e5ac3b7343

Comment 20 Fedora Update System 2017-01-05 15:50:19 UTC
dolphin-emu-5.0-10.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-04d527e226

Comment 21 Jeremy Newton 2017-01-05 15:57:29 UTC
Turns out dolphin dropped Wayland support in 5.0. It maybe re-added in new releases but I would rather not maintain a large patch-set if upstream does not wish to take it.

I've added a cleaner solution to force XWayland with dolphin-emu-5.0-10, which should be good enough for now.

Please let me know if it works for you. I've also turned on LTO for some extra performance.

Comment 22 Fedora Update System 2017-01-05 23:21:01 UTC
dolphin-emu-5.0-10.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-04d527e226

Comment 23 Fedora Update System 2017-01-05 23:51:14 UTC
dolphin-emu-5.0-10.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-e5ac3b7343

Comment 24 Fedora Update System 2017-01-13 07:21:07 UTC
dolphin-emu-5.0-10.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 25 Fedora Update System 2017-01-13 11:51:13 UTC
dolphin-emu-5.0-10.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.