You are not logged in.

#1 2016-10-18 19:42:57

mxfm
Member
Registered: 2015-10-23
Posts: 163

Segfaults of gnome-mplayer and gnome-shell

Hi!

I have some issues with segfaults (suspecting wayland).
First of all, gnome-mplayer segfaults each time, reinstalling does not help.

(gdb) run 1.mp3 
Starting program: /usr/bin/gnome-mplayer 1.mp3
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffeb4b3700 (LWP 18368)]
[New Thread 0x7fffeacb2700 (LWP 18369)]
[New Thread 0x7fffea4b1700 (LWP 18370)]
GMLIB-Message: after init: position=0.000 length=0.000 start_time=0.000 run_time=0.000 volume=0.00 player=dead media=unknown uri=
[New Thread 0x7fffe8ca8700 (LWP 18371)]
[New Thread 0x7fffdbfff700 (LWP 18372)]
[New Thread 0x7fffdb7fe700 (LWP 18373)]
[New Thread 0x7fffdaffd700 (LWP 18374)]
[New Thread 0x7fffda7fc700 (LWP 18375)]
[New Thread 0x7fffd9ffb700 (LWP 18376)]
[New Thread 0x7fffd97fa700 (LWP 18377)]
[New Thread 0x7fffd8ff9700 (LWP 18378)]
[New Thread 0x7fffd87f8700 (LWP 18379)]
[New Thread 0x7fffd7ff7700 (LWP 18380)]

(gnome-mplayer:18350): Gtk-WARNING **: GtkSocket: only works under X11

(gnome-mplayer:18350): Gdk-WARNING **: gdkwindow-x11.c:5554 drawable is not a native X11 window

Thread 1 "gnome-mplayer" received signal SIGSEGV, Segmentation fault.
0x000050be55415641 in ?? ()
(gdb) bt
#0  0x000050be55415641 in  ()
#1  0x00007ffff77c0310 in XGetWindowAttributes () at /usr/lib/libX11.so.6
#2  0x00007ffff7250a14 in  () at /usr/lib/libgtk-3.so.0
#3  0x00007ffff606cf75 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#4  0x00007ffff607e95c in  () at /usr/lib/libgobject-2.0.so.0
#5  0x00007ffff6087bcc in g_signal_emit_valist ()
    at /usr/lib/libgobject-2.0.so.0
#6  0x00007ffff6087faf in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#7  0x00007ffff7218654 in gtk_widget_realize () at /usr/lib/libgtk-3.so.0
#8  0x00007ffff72188d8 in gtk_widget_map () at /usr/lib/libgtk-3.so.0
#9  0x00007ffff6ff6a7f in  () at /usr/lib/libgtk-3.so.0
#10 0x00007ffff606d0f2 in  () at /usr/lib/libgobject-2.0.so.0
#11 0x00007ffff60878bd in g_signal_emit_valist ()
    at /usr/lib/libgobject-2.0.so.0
#12 0x00007ffff6087faf in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#13 0x00007ffff7218890 in gtk_widget_map () at /usr/lib/libgtk-3.so.0
#14 0x00007ffff6ff6a7f in  () at /usr/lib/libgtk-3.so.0
#15 0x00007ffff704248c in  () at /usr/lib/libgtk-3.so.0
#16 0x00007ffff606d0f2 in  () at /usr/lib/libgobject-2.0.so.0
#17 0x00007ffff60878bd in g_signal_emit_valist ()
    at /usr/lib/libgobject-2.0.so.0
#18 0x00007ffff6087faf in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#19 0x00007ffff7218890 in gtk_widget_map () at /usr/lib/libgtk-3.so.0
---Type <return> to continue, or q <return> to quit---
#20 0x00007ffff6face87 in  () at /usr/lib/libgtk-3.so.0
#21 0x00007ffff6ff6a7f in  () at /usr/lib/libgtk-3.so.0
#22 0x00007ffff606d0f2 in  () at /usr/lib/libgobject-2.0.so.0
#23 0x00007ffff60878bd in g_signal_emit_valist ()
    at /usr/lib/libgobject-2.0.so.0
#24 0x00007ffff6087faf in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#25 0x00007ffff7218890 in gtk_widget_map () at /usr/lib/libgtk-3.so.0
#26 0x00007ffff70fa252 in  () at /usr/lib/libgtk-3.so.0
#27 0x00007ffff6ff6a7f in  () at /usr/lib/libgtk-3.so.0
#28 0x00007ffff606d0f2 in  () at /usr/lib/libgobject-2.0.so.0
#29 0x00007ffff60878bd in g_signal_emit_valist ()
    at /usr/lib/libgobject-2.0.so.0
#30 0x00007ffff6087faf in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#31 0x00007ffff7218890 in gtk_widget_map () at /usr/lib/libgtk-3.so.0
#32 0x00007ffff6face87 in  () at /usr/lib/libgtk-3.so.0
#33 0x00007ffff6ff6a7f in  () at /usr/lib/libgtk-3.so.0
#34 0x00007ffff606d0f2 in  () at /usr/lib/libgobject-2.0.so.0
#35 0x00007ffff60878bd in g_signal_emit_valist ()
    at /usr/lib/libgobject-2.0.so.0
#36 0x00007ffff6087faf in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#37 0x00007ffff7218890 in gtk_widget_map () at /usr/lib/libgtk-3.so.0
#38 0x00007ffff722e718 in  () at /usr/lib/libgtk-3.so.0
#39 0x00007ffff606cf75 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#40 0x00007ffff607e95c in  () at /usr/lib/libgobject-2.0.so.0
#41 0x00007ffff6087bcc in g_signal_emit_valist ()
    at /usr/lib/libgobject-2.0.so.0
#42 0x00007ffff6087faf in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#43 0x00007ffff7218890 in gtk_widget_map () at /usr/lib/libgtk-3.so.0
#44 0x00007ffff72260ab in  () at /usr/lib/libgtk-3.so.0
#45 0x00007ffff606cf75 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#46 0x00007ffff607e95c in  () at /usr/lib/libgobject-2.0.so.0
#47 0x00007ffff6087bcc in g_signal_emit_valist ()
    at /usr/lib/libgobject-2.0.so.0
#48 0x00007ffff6087faf in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#49 0x00007ffff72125d2 in gtk_widget_show () at /usr/lib/libgtk-3.so.0
#50 0x000000000042bc84 in  ()
#51 0x000000000040f693 in  ()
#52 0x00007ffff4803291 in __libc_start_main () at /usr/lib/libc.so.6
#53 0x000000000040fc49 in  ()

In addition to this, gnome-shell sometimes crashes, which kills user session (i. e. session is destroyed and user is thrown into login screen).
Twice this happened during VirtualBox, so I suspected this is related with high load. Currently, I cannot use VirtualBox.

Oct 14 19:33:12 localhost org.gnome.Shell.desktop[989]: syntax error: line 1 of stdin
Oct 14 19:33:12 localhost org.gnome.Shell.desktop[989]: Errors encountered in stdin; not compiled.
Oct 14 19:40:56 localhost org.gnome.Shell.desktop[989]: (EE)
Oct 14 19:41:02 localhost org.gnome.Shell.desktop[989]: Fatal server error:
Oct 14 19:41:02 localhost org.gnome.Shell.desktop[989]: (EE) dup failed: Bad file descriptor
Oct 14 19:41:02 localhost org.gnome.Shell.desktop[989]: (EE)
Oct 14 19:41:03 localhost firefox.desktop[1133]: [Child 1178] WARNING: pipe error (17): Connection reset by peer: file /build/firefox/src/firefox-49.0
Oct 14 19:41:03 localhost firefox.desktop[1133]: [133B blob data]
Oct 14 19:41:04 localhost firefox.desktop[1133]: [Child 1178] ###!!! ABORT: Aborting on channel error.: file /build/firefox/src/firefox-49.0.1/ipc/glu
Oct 14 19:41:04 localhost org.a11y.atspi.Registry[1025]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Oct 14 19:41:05 localhost org.a11y.atspi.Registry[1025]:       after 1111 requests (1111 known processed) with 0 events remaining.
Oct 14 19:41:05 localhost amule.desktop[1388]: amule: Fatal IO error 104 (Connection reset by peer) on X server :0.
Oct 14 19:41:05 localhost amule.desktop[1388]:  2016-10-14 19:32:08: Initialising aMule SVN compiled with wxGTK2 v2.8.12 (Snapshot: rev. 10965)
Oct 14 19:41:05 localhost amule.desktop[1388]:  2016-10-14 19:32:08: Checking if there is an instance already running...
Oct 14 19:41:05 localhost amule.desktop[1388]:  2016-10-14 19:32:09: No other instances are running.
Oct 14 19:41:05 localhost amule.desktop[1388]:  2016-10-14 19:32:09: ListenSocket: Ok.
Oct 14 19:41:05 localhost amule.desktop[1388]:  2016-10-14 19:32:09: Loading temp files from /home/user/.aMule/Temp.
Oct 14 19:41:05 localhost amule.desktop[1388]:  2016-10-14 19:32:09: Loading PartFile 1 of 1
Oct 14 19:41:05 localhost amule.desktop[1388]:  2016-10-14 19:32:09: All PartFiles Loaded.
Oct 14 19:41:05 localhost amule.desktop[1388]:  2016-10-14 19:32:09: Adding file /home/user/.aMule/Temp/001.part.met to shares
Oct 14 19:40:59 localhost gnome-session-binary[973]: WARNING: App 'gnome-settings-daemon.desktop' exited with code 1
Oct 14 19:41:06 localhost pulseaudio[1031]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Oct 14 19:41:06 localhost pulseaudio[1031]:       after 14 requests (6 known processed) with 0 events remaining.
Oct 14 19:41:06 localhost virtualbox.desktop[1325]: Qt WARNING: The X11 connection broke (error 1). Did the X11 server die?
Oct 14 19:40:58 localhost gnome-shell[989]: Connection to xwayland lost
Oct 14 19:41:06 localhost gnome-session[973]: gnome-session-binary[973]: WARNING: App 'gnome-settings-daemon.desktop' exited with code 1
Oct 14 19:41:06 localhost gnome-session[973]: gnome-session-binary[973]: WARNING: App 'gnome-settings-daemon.desktop' exited with code 1
Oct 14 19:41:06 localhost pulseaudio[1492]: W: [pulseaudio] pid.c: Stale PID file, overwriting.
Oct 14 19:41:02 localhost gnome-session-binary[973]: WARNING: App 'gnome-settings-daemon.desktop' exited with code 1
Oct 14 19:40:58 localhost unknown[1061]: gnome-settings-daemon: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Oct 14 19:40:58 localhost unknown[1133]: firefox: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Oct 14 19:40:59 localhost systemd[956]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Oct 14 19:40:59 localhost systemd[956]: pulseaudio.service: Unit entered failed state.
Oct 14 19:40:59 localhost systemd[956]: pulseaudio.service: Failed with result 'exit-code'.
Oct 14 19:41:00 localhost systemd[956]: pulseaudio.service: Service hold-off time over, scheduling restart.
Oct 14 19:41:00 localhost systemd[956]: Stopped Sound Service.
Oct 14 19:41:00 localhost systemd[956]: Starting Sound Service...
Oct 14 19:41:02 localhost unknown[1493]: Unable to initialize GTK+
Oct 14 19:41:04 localhost systemd[956]: Started Sound Service.
Oct 14 19:41:25 localhost gnome-session[973]: gnome-session-binary[973]: GnomeDesktop-WARNING: Failed to acquire idle monitor proxy: Timeout was reach
Oct 14 19:41:25 localhost gnome-session-binary[973]: GnomeDesktop-WARNING: Failed to acquire idle monitor proxy: Timeout was reached
Oct 14 19:41:48 localhost gnome-session[973]: gnome-session-binary[973]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 5
Oct 14 19:41:47 localhost gnome-session-binary[973]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 5
Oct 14 19:41:47 localhost gnome-session-binary[973]: Unrecoverable failure in required component org.gnome.Shell.desktop
Oct 14 19:41:56 localhost systemd[957]: pam_unix(systemd-user:session): session closed for user userOct 14 19:41:56 localhost systemd[956]: Received SIGRTMIN+24 from PID 1516 (kill).
Oct 14 19:42:00 localhost systemd-coredump[1499]: Process 989 (gnome-shell) of user 1000 dumped core.
                                                  
                                                  Stack trace of thread 989:
                                                  #0  0x00007f0e3d1eeff1 n/a (libglib-2.0.so.0)
                                                  #1  0x00007f0e3d1f0047 g_log_default_handler (libglib-2.0.so.0)
                                                  #2  0x00000000004024d8 n/a (gnome-shell)
                                                  #3  0x00007f0e3d1f0354 g_logv (libglib-2.0.so.0)
                                                  #4  0x00007f0e3d1f055f g_log (libglib-2.0.so.0)
                                                  #5  0x00007f0e3e9bf7ee n/a (libmutter.so.0)
                                                  #6  0x00007f0e3a3567ae _XIOError (libX11.so.6)
                                                  #7  0x00007f0e3a3547f3 _XReply (libX11.so.6)
                                                  #8  0x00007f0e3a34ffed XSync (libX11.so.6)
                                                  #9  0x00007f0e39e75402 n/a (libgdk-3.so.0)
                                                  #10 0x00007f0e39e47dbe n/a (libgdk-3.so.0)
                                                  #11 0x00007f0e3e9bb589 meta_window_x11_new (libmutter.so.0)
                                                  #12 0x00007f0e3e9b03b8 n/a (libmutter.so.0)
                                                  #13 0x00007f0e3e9b0f6b n/a (libmutter.so.0)
                                                  #14 0x00007f0e39e7d9c1 n/a (libgdk-3.so.0)
                                                  #15 0x00007f0e39e7dc79 n/a (libgdk-3.so.0)
                                                  #16 0x00007f0e39e480e9 gdk_display_get_event (libgdk-3.so.0)
                                                  #17 0x00007f0e39e7da32 n/a (libgdk-3.so.0)
                                                  #18 0x00007f0e3d1e9587 g_main_context_dispatch (libglib-2.0.so.0)
                                                  #19 0x00007f0e3d1e97f0 n/a (libglib-2.0.so.0)
                                                  #20 0x00007f0e3d1e9b12 g_main_loop_run (libglib-2.0.so.0)
                                                  #21 0x00007f0e3e99156c meta_run (libmutter.so.0)
                                                  #22 0x0000000000402197 main (gnome-shell)
                                                  #23 0x00007f0e3cc04291 __libc_start_main (libc.so.6)
                                                  #24 0x00000000004022ca n/a (gnome-shell)

Recently gnome-session started crashing indeterministically.

Oct 18 21:51:48 localhost org.gnome.Shell.desktop[894]: (EE)
Oct 18 21:51:49 localhost org.gnome.Shell.desktop[894]: Fatal server error:
Oct 18 21:51:49 localhost org.gnome.Shell.desktop[894]: (EE) failed to dispatch Wayland events: Broken pipe
Oct 18 21:51:49 localhost org.gnome.Shell.desktop[894]: (EE)
Oct 18 21:51:49 localhost gnome-session[878]: gnome-session-binary[878]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 11
Oct 18 21:51:48 localhost gnome-session-binary[878]: Unrecoverable failure in required component org.gnome.Shell.desktop
Oct 18 21:51:49 localhost pulseaudio[939]: ICE default IO error handler doing an exit(), pid = 939, errno = 11
Oct 18 21:51:48 localhost gnome-session-binary[878]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 11
Oct 18 21:51:49 localhost pulseaudio[4524]: W: [pulseaudio] pid.c: Stale PID file, overwriting.
Oct 18 21:51:48 localhost systemd[845]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Oct 18 21:51:48 localhost systemd[845]: pulseaudio.service: Unit entered failed state.
Oct 18 21:51:49 localhost org.a11y.atspi.Registry[919]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Oct 18 21:51:49 localhost org.a11y.atspi.Registry[919]:       after 1253 requests (1253 known processed) with 0 events remaining.
Oct 18 21:51:48 localhost systemd[845]: pulseaudio.service: Failed with result 'exit-code'.
Oct 18 21:51:49 localhost systemd[845]: pulseaudio.service: Service hold-off time over, scheduling restart.
Oct 18 21:51:49 localhost systemd[845]: Stopped Sound Service.
Oct 18 21:51:49 localhost systemd[845]: Starting Sound Service...
Oct 18 21:51:49 localhost systemd[845]: Started Sound Service.
Oct 18 21:51:49 localhost systemd[845]: Stopping Virtual filesystem metadata service...
Oct 18 21:51:49 localhost systemd[845]: Stopping Accessibility services bus...
Oct 18 21:51:49 localhost systemd[853]: pam_unix(systemd-user:session): session closed for user user
Oct 18 21:51:49 localhost systemd[845]: Stopping Sound Service...
Oct 18 21:51:49 localhost systemd[845]: Stopping Virtual filesystem service...
Oct 18 21:51:49 localhost systemd[845]: Stopping D-Bus User Message Bus...
Oct 18 21:51:49 localhost systemd[845]: Stopped target Default.
Oct 18 21:51:49 localhost systemd[845]: Stopping Virtual filesystem service - disk device monitor...
Oct 18 21:51:49 localhost systemd[845]: Stopped Virtual filesystem metadata service.
Oct 18 21:51:49 localhost systemd[845]: Stopped Accessibility services bus.
Oct 18 21:51:49 localhost systemd[845]: Stopped Virtual filesystem service - disk device monitor.
Oct 18 21:51:49 localhost systemd[845]: Stopped D-Bus User Message Bus.
Oct 18 21:51:49 localhost systemd[845]: Stopped Sound Service.
Oct 18 21:51:49 localhost systemd[845]: Stopped Virtual filesystem service.
Oct 18 21:51:49 localhost systemd[845]: Stopped target Basic System.
Oct 18 21:51:49 localhost systemd[845]: Stopped target Sockets.
Oct 18 21:51:49 localhost systemd[845]: Closed D-Bus User Message Bus Socket.
Oct 18 21:51:49 localhost systemd[845]: Closed Sound System.
Oct 18 21:51:49 localhost systemd[845]: Reached target Shutdown.
Oct 18 21:51:49 localhost systemd[845]: Starting Exit the Session...
Oct 18 21:51:49 localhost systemd[845]: Stopped target Timers.
Oct 18 21:51:49 localhost systemd[845]: Stopped target Paths.
Oct 18 21:51:49 localhost systemd[845]: Received SIGRTMIN+24 from PID 4540 (kill).
Oct 18 21:51:54 localhost systemd-coredump[4108]: Process 894 (gnome-shell) of user 1000 dumped core.
                                                  
                                                  Stack trace of thread 894:
                                                  #0  0x00007f154e7cc349 wl_resource_post_event (libwayland-server.so.0)
                                                  #1  0x00007f1558969c77 meta_wayland_pointer_send_motion (libmutter.so.0)
                                                  #2  0x00007f155896a3fa meta_wayland_pointer_handle_event (libmutter.so.0)
                                                  #3  0x00007f155892c69f n/a (libmutter.so.0)
                                                  #4  0x00007f1557cc82cd n/a (libmutter-clutter-1.0.so)
                                                  #5  0x00007f1557cdaba3 n/a (libmutter-clutter-1.0.so)
                                                  #6  0x00007f1557cf1029 n/a (libmutter-clutter-1.0.so)
                                                  #7  0x00007f1557cdcd29 n/a (libmutter-clutter-1.0.so)
                                                  #8  0x00007f155718b587 g_main_context_dispatch (libglib-2.0.so.0)
                                                  #9  0x00007f155718b7f0 n/a (libglib-2.0.so.0)
                                                  #10 0x00007f155718bb12 g_main_loop_run (libglib-2.0.so.0)
                                                  #11 0x00007f155893356c meta_run (libmutter.so.0)
                                                  #12 0x0000000000402197 main (gnome-shell)
                                                  #13 0x00007f1556ba6291 __libc_start_main (libc.so.6)
                                                  #14 0x00000000004022ca n/a (gnome-shell)

Unfortunately I don't have any ideas how to fix segfaults from mainstream binaries. Stracktrace points into wayland, but it is not clear what can be done.

P.S. I provided stack traces for relevant thread, other threads were in waiting mode (in poll() or pthread_wait..()).

Offline

#2 2016-10-19 04:47:54

mxfm
Member
Registered: 2015-10-23
Posts: 163

Re: Segfaults of gnome-mplayer and gnome-shell

I tried to compile gnome-mplayer with debug options, but when I installed abs and copied gnome-mplayer directory to user folder to compile, I received error.

 ERROR: Failure while downloading https://gnome-mplayer.googlecode.com/svn/packages/gnome-mplayer-1.0.9.tar.gz
    Aborting... 

It seems that PKGFILE is broken ...

Offline

#3 2016-10-19 06:32:22

seth
Member
Registered: 2012-09-03
Posts: 51,023

Re: Segfaults of gnome-mplayer and gnome-shell

Installing gnome-mplayer from elsewhere will hardly do.
It segfaults because it tries to query X11 window attributes. On wayland. It's simply not ported (and I frankly don't know whether those approaches of wrapping mplayer into a GUI will ever work on wayland)

Online

#4 2016-10-19 11:30:01

mxfm
Member
Registered: 2015-10-23
Posts: 163

Re: Segfaults of gnome-mplayer and gnome-shell

seth wrote:

Installing gnome-mplayer from elsewhere will hardly do.
It segfaults because it tries to query X11 window attributes. On wayland. It's simply not ported (and I frankly don't know whether those approaches of wrapping mplayer into a GUI will ever work on wayland)

Well, gnome-mplayer was working fine for at least a year. Probably the segfault was caused because internally something was changed (for example, from X11 to wayland), but I am not sure.
So it means, that gnome-mplayer will never work, doesn't it?
But this does not explain indeterministic crashes of gnome-shell ...

EDIT:

I have looked at neighbour threads and see that others also have problems (segfaults) with gnome on wayland.
https://bbs.archlinux.org/viewtopic.php?id=218467
https://bbs.archlinux.org/viewtopic.php?id=218425

EDIT 2.0:

Oh, it seems that number of troubles with gnome on wayland is much bigger, pretty sad...

Last edited by mxfm (2016-10-19 11:58:27)

Offline

#5 2016-10-19 13:43:28

seth
Member
Registered: 2012-09-03
Posts: 51,023

Re: Segfaults of gnome-mplayer and gnome-shell

It means that one requires a generic way to embed windows on wayland and then implement that for gnome-mplayer. As you figured, gnome on wayland is premature. Setting it default is an upstream move which I personally consider questionable. It's good for testing, but not for production. *shrug*

Online

Board footer

Powered by FluxBB