Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 585596

Summary: =gnome-extra/cinnamon-session-2.8.3 - crashes when watching html5 videos in web browsers
Product: Gentoo Linux Reporter: Antoine Lemoine <mail>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: xepher
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: xsession-errors
Ugly patch to disable inhibitor/idle behavior in csm-session

Description Antoine Lemoine 2016-06-11 15:16:54 UTC
Created attachment 437176 [details]
xsession-errors

Cinnamon crashes when I watch html5 videos on Firefox (www-client/firefox-47.0) or Chromium (www-client/chromium-51.0.2704.63).

For example, watching the video on www.w3schools.com/html/html5_video.asp crashes Cinnamon.
Cinnamon crashes on software rendering mode and on accelerated mode.

html5 videos does not crash on Gnome (gnome-base/gnome-3.18.0).

dmesg gives this error without any previous error:
[ 7617.495184] cinnamon-sessio[27707]: segfault at 0 ip 00000000004138b2 sp 00007ffc59af5d60 error 4 in cinnamon-session[400000+3b000]

Please find attached my xsession-errors after the crash.

Some lines of my journalctl before the crash:

juin 11 16:57:12 yuna org.a11y.Bus[27732]: Activating service name='org.a11y.atspi.Registry'
juin 11 16:57:12 yuna cinnamon-session[27707]: GLib-GObject-CRITICAL: t+0,00130s: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
juin 11 16:57:12 yuna org.a11y.Bus[27732]: Successfully activated service 'org.a11y.atspi.Registry'
juin 11 16:57:12 yuna cinnamon-session[27707]: GLib-GObject-CRITICAL: t+0,00138s: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 11 16:57:12 yuna org.a11y.atspi.Registry[27748]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
juin 11 16:57:12 yuna cinnamon-session[27707]: GLib-GObject-CRITICAL: t+0,00235s: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
juin 11 16:57:12 yuna rtkit-daemon[2204]: Successfully made thread 27769 of process 27769 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
juin 11 16:57:12 yuna rtkit-daemon[2204]: Supervising 1 threads of 1 processes of 1 users.
juin 11 16:57:12 yuna pulseaudio[27769]: [pulseaudio] pid.c: Stale PID file, overwriting.
juin 11 16:57:12 yuna rtkit-daemon[2204]: Supervising 1 threads of 1 processes of 1 users.
juin 11 16:57:12 yuna rtkit-daemon[2204]: Successfully made thread 27774 of process 27769 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5.
juin 11 16:57:12 yuna rtkit-daemon[2204]: Supervising 2 threads of 1 processes of 1 users.
juin 11 16:57:13 yuna org.gnome.OnlineAccounts[27732]: goa-daemon-Message: goa-daemon version 3.18.4 starting
juin 11 16:57:14 yuna pulseaudio[27769]: [pulseaudio] source.c: Default and alternate sample rates are the same.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Supervising 2 threads of 1 processes of 1 users.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Successfully made thread 27811 of process 27769 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Supervising 3 threads of 1 processes of 1 users.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Supervising 3 threads of 1 processes of 1 users.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Successfully made thread 27812 of process 27769 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Supervising 4 threads of 1 processes of 1 users.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Supervising 4 threads of 1 processes of 1 users.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Successfully made thread 27813 of process 27769 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Supervising 5 threads of 1 processes of 1 users.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Supervising 5 threads of 1 processes of 1 users.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Successfully made thread 27814 of process 27769 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Supervising 6 threads of 1 processes of 1 users.
juin 11 16:57:14 yuna pulseaudio[27769]: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
juin 11 16:57:14 yuna pulseaudio[27769]: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="0" name="platform-snd_virmidi.0" card_name="alsa_ca
juin 11 16:57:14 yuna dbus[1769]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
juin 11 16:57:14 yuna dbus[1769]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service not found.
juin 11 16:57:14 yuna pulseaudio[27769]: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.bluez.service not found.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Successfully made thread 27819 of process 27819 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
juin 11 16:57:14 yuna rtkit-daemon[2204]: Supervising 7 threads of 2 processes of 1 users.
juin 11 16:57:14 yuna pulseaudio[27819]: [pulseaudio] pid.c: Daemon already running.
juin 11 16:57:14 yuna polkitd[2034]: Registered Authentication Agent for unix-session:40 (system bus name :1.458 [/usr/libexec/polkit-gnome-authentication-agent-1], object path /o
juin 11 16:57:14 yuna cinnamon-killer-daemon[27852]: Bound Cinnamon restart to <Control><Alt>Escape.
juin 11 16:58:07 yuna systemd-logind[1766]: Removed session 37.
juin 11 16:58:58 yuna systemd-logind[1766]: Removed session 39.

emerge --info:

Portage 2.3.0_rc1 (python 3.4.4-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.3.0, glibc-2.23-r2, 4.6.2-gentoo x86_64)
=================================================================
System uname: Linux-4.6.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16311024 total,   1692996 free
KiB Swap:          0 total,         0 free
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.5 [enabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.4::gentoo, 3.5.1-r3::gentoo
dev-util/ccache:          3.2.5::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2-r2::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.fr.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

aidstu
    location: /var/lib/layman/aidstu
    sync-type: laymansync
    sync-uri: git://github.com/etu/aidstu-overlay.git
    masters: gentoo
    priority: 50

bar
    location: /var/lib/layman/bar
    sync-type: laymansync
    sync-uri: git://github.com/tokiclover/bar-overlay.git
    masters: gentoo
    priority: 50

betagarden
    location: /var/lib/layman/betagarden
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/betagarden.git
    masters: gentoo
    priority: 50

laurentb
    location: /var/lib/layman/laurentb
    sync-type: laymansync
    sync-uri: git://github.com/laurentb/gentoo-overlay.git
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

sabayon
    location: /var/lib/layman/sabayon
    sync-type: laymansync
    sync-uri: git://github.com/Sabayon/for-gentoo.git
    masters: gentoo
    priority: 50

sabayon-tools
    location: /var/lib/layman/sabayon-tools
    sync-type: laymansync
    sync-uri: https://github.com/fusion809/sabayon-tools.git
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: git://github.com/gentoo-science/sci.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

stefantalpalaru
    location: /var/lib/layman/stefantalpalaru
    sync-type: laymansync
    sync-uri: https://github.com/stefantalpalaru/gentoo-overlay.git
    masters: gentoo
    priority: 50

vortex
    location: /var/lib/layman/vortex
    sync-type: laymansync
    sync-uri: git://github.com/nE0sIghT/vortex-overlay.git
    masters: gentoo
    priority: 50

Installed sets: @qt5-essentials, @qt5-tools
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy ccache cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ http://de-mirror.org/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding btrfs bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam fat ffmpeg firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gphoto2 gpm gstreamer gtk gtk3 iconv icu introspection ipc ipv6 jpeg jpeg2k lcms ldap libnotify libsecret mad midi mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ntfs ogg opengl openmp pam pango pcre pdf php png policykit ppds pulseaudio qt3support qt4 readline sdl seccomp session spell sse sse2 ssl startup-notification svg symlink systemd tcpd tiff tracker truetype udev udisks unicode upower usb vdpau vim-syntax vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Pacho Ramos gentoo-dev 2016-06-14 19:06:01 UTC
We need a proper backtrace:
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces

Thanks
Comment 2 Antoine Lemoine 2016-06-14 19:13:10 UTC
I will provide a backtrace. What are the packages I need to rebuild with debug flags? I imagine there are at least all *cinnamon* packages to rebuild.
Comment 3 Pacho Ramos gentoo-dev 2016-06-14 19:18:54 UTC
Well, I usually know the needed packages when I look for the packages providing the libs with "???" in the backtrace :/
Comment 4 Antoine Lemoine 2016-06-14 21:37:21 UTC
Thanks. This is the backtrace of cinnamon-session:

#0  0x00000000004138b2 in csm_system_add_inhibitor (system=0x0, id=0x25cc7d0 "/org/gnome/SessionManager/Inhibitor1", 
    flag=(CSM_INHIBITOR_FLAG_SUSPEND | CSM_INHIBITOR_FLAG_IDLE)) at csm-system.c:133
#1  0x000000000041cba7 in on_store_inhibitor_added (store=0x23d8450, id=0x25cc7d0 "/org/gnome/SessionManager/Inhibitor1", 
    manager=0x23802d0) at csm-manager.c:2615
#2  0x00007f3d8c9a3b0a in g_cclosure_marshal_VOID__STRINGv () from /usr/lib64/libgobject-2.0.so.0
#3  0x00007f3d8c9a1284 in _g_closure_invoke_va () from /usr/lib64/libgobject-2.0.so.0
#4  0x00007f3d8c9bba66 in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
#5  0x00007f3d8c9bc157 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#6  0x000000000041a270 in csm_store_add (store=0x23d8450, id=0x246ce00 "/org/gnome/SessionManager/Inhibitor1", 
    object=object@entry=0x25b36e0) at csm-store.c:250
#7  0x0000000000420d0b in csm_manager_inhibit (manager=0x23802d0, app_id=<optimized out>, toplevel_xid=0, reason=<optimized out>, 
    flags=12, context=0x2414e60) at csm-manager.c:3762
#8  0x000000000041c915 in dbus_glib_marshal_csm_manager_VOID__STRING_UINT_STRING_UINT_POINTER (closure=0x7fff46588ca0, 
    return_value=<optimized out>, n_param_values=<optimized out>, param_values=0x25e7c60, invocation_hint=<optimized out>, 
    marshal_data=0x420b00 <csm_manager_inhibit>) at csm-manager-glue.h:382
#9  0x00007f3d8ce399bd in object_registration_message () from /usr/lib64/libdbus-glib-1.so.2
#10 0x00007f3d8cc062a3 in _dbus_object_tree_dispatch_and_unlock () from /usr/lib64/libdbus-1.so.3
#11 0x00007f3d8cbfaa25 in dbus_connection_dispatch () from /usr/lib64/libdbus-1.so.3
#12 0x00007f3d8ce36dc5 in message_queue_dispatch () from /usr/lib64/libdbus-glib-1.so.2
#13 0x00007f3d8c48dea7 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#14 0x00007f3d8c48e100 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#15 0x00007f3d8c48e422 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#16 0x00007f3d8ddfa805 in gtk_main () from /usr/lib64/libgtk-3.so.0
#17 0x000000000040b879 in main (argc=1, argv=0x7fff465892b8) at main.c:425
Comment 5 gerd 2016-06-16 13:10:44 UTC
exactly the same behaviour (crash with identical backtrace) when deleting a file in nemo
Comment 6 Xepher 2016-06-22 02:44:45 UTC
Created attachment 438384 [details, diff]
Ugly patch to disable inhibitor/idle behavior in csm-session

I can confirm this happens with my system as well.

I have attached a patch with a relatively ugly workaround. It simply makes the add/remove inhibitor and session idle functions into no-ops. Been running for several days without issues (save the expected, that the screensaver will still activate when videos are playing, and you might be able to suspend/reboot while a copy/delete is in progress.)

Just to be clear, this is a WORKAROUND patch, not a correction for the underlying issue (which I haven't had time to track down.)
Comment 7 Pacho Ramos gentoo-dev 2016-09-17 11:58:29 UTC
please try with 3.0.1