Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550304 - gnome-base/gvfs-1.22.4 with USE=bluray: /usr/libexec/gvfs-udisks2-volume-monitor crashes with media-libs/libbluray-0.8.0 when a blank DVD is inserted
Summary: gnome-base/gvfs-1.22.4 with USE=bluray: /usr/libexec/gvfs-udisks2-volume-moni...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-24 15:08 UTC by Anton Gubarkov
Modified: 2015-07-04 17:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
log of gvfs merges (emerge-gvfs.log,6.38 KB, text/x-log)
2015-05-28 06:54 UTC, Anton Gubarkov
Details
log of libbluray merges (emerge-libbluray.log,4.14 KB, text/x-log)
2015-05-28 06:55 UTC, Anton Gubarkov
Details
stack backtrace (core.pool.16378.trace,22.35 KB, text/plain)
2015-06-01 13:42 UTC, Anton Gubarkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Gubarkov 2015-05-24 15:08:05 UTC
when gvfs is compiled with USE=bluray, it crashes, and the automount doesn't work.



....
May 24 17:46:19 r9-008cln org.gtk.Private.UDisks2VolumeMonitor[563]: bluray.c:1338: No device path provided!
May 24 17:46:19 r9-008cln kernel: pool[819]: segfault at 20 ip 00007f05b8c73568 sp 00007f05af1ceb00 error 4 in libbluray.so.1.8.0[7f05b8c57000+2e000]
....



When I added -bluray to the gvfs package use flags and recompiled, I got a working automount again.
Comment 1 Anton Gubarkov 2015-05-24 15:08:53 UTC
r9-008cln ~ # emerge --info gvfs
Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.4, glibc-2.20-r2, 4.0.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:    16307148 total,  11455764 free
KiB Swap:   20971516 total,  20971516 free
Timestamp of repository gentoo: Sat, 23 May 2015 10:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.3::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

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

rugubara
    location: /home/anton/devel/rugubara
    masters: gentoo
    priority: 0

anders-larsson
    location: /var/lib/layman/anders-larsson
    masters: gentoo
    priority: 50

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

bumblebee
    location: /var/lib/layman/bumblebee
    masters: gentoo
    priority: 50

fw-overlay
    location: /var/lib/layman/fw-overlay
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

proaudio
    location: /var/lib/layman/pro-audio
    masters: gentoo
    priority: 50

sabayon
    location: /var/lib/layman/sabayon
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam
    masters: gentoo
    priority: 50

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

tlp
    location: /var/lib/layman/tlp
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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/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 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://gentoo.bloodhost.ru/ http://mirror.yandex.ru/gentoo-distfiles/ http://mirror.bytemark.co.uk/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/etersoft"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes alsa amd64 archive avahi avx avx2 bash-completion berkdb bluetooth bluray branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx cycles dbus dri dri3 dts dvd dvdr eds egl emboss encode evo exif extras fam ffmpeg firefox flac fma3 fortran frei0r g711 g722 g7221 gbm gdbm gif gimp glamor gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 http iconv ieee1394 introspection ios ipv6 jack jpeg jpeg2k kms lcms ldap libnotify libsamplerate libsecret lv2 mad midi mmx mmxext mng modules mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl nsplugin nvenc ogg opengl openmp pam pango pcre pdf png policykit popcnt postproc ppds pulseaudio qt3support qt4 rar raw readline realtime samba sdl sendto session smp speex spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff tracker truetype udev udisks unicode upower usb uxa v4l vaapi vdpau vorbis vpx wayland wxwidgets x264 x265 xa xcb xml xv xvid zlib" ABI_X86="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 avx2 fma3 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="multiboot efi-64 pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20 ruby22" USERLAND="GNU" VIDEO_CARDS="intel 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

gnome-base/gvfs-1.22.4::gentoo was built with the following:
USE="archive cdda gnome-online-accounts gtk http ios libsecret mtp samba systemd udev udisks -afp -bluray -fuse -gphoto2 -test -zeroconf" ABI_X86="64"
Comment 2 Pacho Ramos gentoo-dev 2015-05-26 20:42:33 UTC
You need to get a proper backtrace:
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces

Also post the media-libs/libbluray version that you are using as it looks like the bug is really there
Comment 3 Anton Gubarkov 2015-05-27 14:56:25 UTC
I did 

r9-008cln ~ # USE="bluray debug" CFLAGS="-march=native -O2 -pipe -ggdb" FEATURES="nostrip" emerge -v libbluray gvfs 

On the next restart, I can't observe the problem. Automount works as expected.
Comment 4 Anton Gubarkov 2015-05-27 15:02:24 UTC
rebuild with USE=bluray and other options and CFLAGS @their defaults = working.
Comment 5 Anton Gubarkov 2015-05-27 15:03:11 UTC
I can't reproduce the problem anymore. Sorry.
Comment 6 Pacho Ramos gentoo-dev 2015-05-27 21:07:08 UTC
Maybe the problem appears when gvfs was built with older libblueray version, then, you update the lib but don't re-emerge gvfs... Could you check that?
Comment 7 Anton Gubarkov 2015-05-28 06:54:48 UTC
Created attachment 404140 [details]
log of gvfs merges
Comment 8 Anton Gubarkov 2015-05-28 06:55:18 UTC
Created attachment 404142 [details]
log of libbluray merges
Comment 9 Anton Gubarkov 2015-05-28 06:55:27 UTC
I did
r9-008cln ~ # emerge -1v =media-libs/libbluray-0.7.0 gvfs
<reboot>
r9-008cln ~ # emerge -1puv libbluray
<reboot>

everything is working fine. Maybe I need to go back to an earlier version of libbluray?

My last normal merge of gvfs was on the 20150320 (via a world update).
There was some manual merge on the 20150321 (emerge --oneshot --verbose gvfs)


I don't have history of my merges before 2014-10-09. the 1st merge of libbluray is on the 20150214, media-libs/libbluray-0.7.0 was merged. 
another merge on the 20150315, media-libs/libbluray-0.7.0 was merged
another merge on the 20150508, media-libs/libbluray-0.7.0 was merged
and finally on the 20150512, media-libs/libbluray-0.8.0 was merged.

Please advise how to analyze this bug further.
Comment 10 Pacho Ramos gentoo-dev 2015-05-28 20:46:16 UTC
Will need to wait until it reappears and we can get a backtrace :/
Comment 11 Anton Gubarkov 2015-05-31 19:08:23 UTC
Ok, I can reproduce the problem now. The gvfs crashes when an empty DVD is inserted.
Will recompile with debug options and collect a trace.
Comment 12 Anton Gubarkov 2015-05-31 19:45:56 UTC
Let me know if this has any meaning....


r9-008cln core # gdb /usr/libexec/gvfs-udisks2-volume-monitor --core core.pool.29549.29549 --batch --quiet -ex "thread apply all bt full" -ex "quit"

warning: core file may not match specified executable file.
[New LWP 29822]
[New LWP 29823]
[New LWP 29549]
[New LWP 29551]
[New LWP 29824]
[New LWP 29550]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/gvfs-udisks2-volume-monitor'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  disc_open_dir (p=p@entry=0x0, dir=dir@entry=0x7f9318adbce0 "BDMV/META/DL") at /var/tmp/portage/media-libs/libbluray-0.8.0/work/libbluray-0.8.0/src/libbluray/disc/disc.c:356
356	/var/tmp/portage/media-libs/libbluray-0.8.0/work/libbluray-0.8.0/src/libbluray/disc/disc.c: No such file or directory.

Thread 6 (Thread 0x7f9315940700 (LWP 29550)):
#0  0x00007f93185e22cd in poll () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f9318d32b94 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#2  0x00007f9318d32f22 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#3  0x00007f9319350bf6 in ?? () from /usr/lib64/libgio-2.0.so.0
No symbol table info available.
#4  0x00007f9318d594f5 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#5  0x00007f93188a52d4 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00007f93185eb1fd in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 5 (Thread 0x7f930e7c6700 (LWP 29824)):
#0  0x00007f93185e6df9 in syscall () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f9318d77177 in g_cond_wait_until () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#2  0x00007f9318d07b49 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#3  0x00007f9318d59e60 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#4  0x00007f9318d594f5 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#5  0x00007f93188a52d4 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00007f93185eb1fd in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 4 (Thread 0x7f930ffff700 (LWP 29551)):
#0  0x00007f93185e22cd in poll () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f9318d32b94 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#2  0x00007f9318d32cac in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#3  0x00007f9318d32ce9 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#4  0x00007f9318d594f5 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#5  0x00007f93188a52d4 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00007f93185eb1fd in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 3 (Thread 0x7f9319c20780 (LWP 29549)):
#0  0x00007f93185e22cd in poll () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f9318d32b94 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#2  0x00007f9318d32f22 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#3  0x0000000000418788 in g_vfs_proxy_volume_monitor_daemon_main (argc=<optimized out>, argv=<optimized out>, dbus_name=<optimized out>, volume_monitor_type=19557696) at gvfsproxyvolumemonitordaemon.c:2009
        name_owner_id = 1
#4  0x00007f9318520fa0 in __libc_start_main () from /lib64/libc.so.6
No symbol table info available.
#5  0x000000000040a82d in _start ()
No symbol table info available.

Thread 2 (Thread 0x7f930efc7700 (LWP 29823)):
#0  0x00007f93185e6df9 in syscall () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f9318d77177 in g_cond_wait_until () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#2  0x00007f9318d07b49 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#3  0x00007f9318d59e60 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#4  0x00007f9318d594f5 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#5  0x00007f93188a52d4 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00007f93185eb1fd in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 1 (Thread 0x7f930cfc3700 (LWP 29822)):
#0  disc_open_dir (p=p@entry=0x0, dir=dir@entry=0x7f9318adbce0 "BDMV/META/DL") at /var/tmp/portage/media-libs/libbluray-0.8.0/work/libbluray-0.8.0/src/libbluray/disc/disc.c:356
        dp_rom = <optimized out>
        dp_ovl = 0x0
#1  0x00007f9318ac5a96 in _findMetaXMLfiles (meta=meta@entry=0x7f92f000ae30, disc=disc@entry=0x0) at /var/tmp/portage/media-libs/libbluray-0.8.0/work/libbluray-0.8.0/src/libbluray/bdnav/meta_parse.c:119
        dir = <optimized out>
        ent = {d_name = "\001\000\000\000\000\000\000\000\314\371\324\030\223\177\000\000\001\000\000\000\000\000\000\000\260\240\000\374\222\177\000\000\060\241\000\374\222\177\000\000\360\201\060\001", '\000' <repeats 12 times>, "\306R\005\031\223\177\000\000\001", '\000' <repeats 23 times>, "\003\000\000\000\000\000\000\000\001\020", '\000' <repeats 14 times>, "x\000\000\360\222\177\000\000p\000\000\360\222\177\000\000\000\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000\330\031\000\000\000\000\000\000\f\000\000\000\000\000\000\000\004\000\000\000\222\177\000\000\000\336\374y\320\024\240b\004\000\000\000\000\000\000\000\070\000\000\000\000\000\000\000`\000\000\000\000\000\000\000"...}
        res = <optimized out>
#2  0x00007f9318ac5c28 in meta_parse (disc=0x0) at /var/tmp/portage/media-libs/libbluray-0.8.0/work/libbluray-0.8.0/src/libbluray/bdnav/meta_parse.c:151
        root = 0x7f92f000ae30
        doc = <optimized out>
        i = <optimized out>
#3  0x00007f9318ac1eb9 in _meta_open (bd=0x7f92f0008310, bd=0x7f92f0008310) at /var/tmp/portage/media-libs/libbluray-0.8.0/work/libbluray-0.8.0/src/libbluray/bluray.c:813
No locals.
#4  bd_get_meta (bd=bd@entry=0x7f92f0008310) at /var/tmp/portage/media-libs/libbluray-0.8.0/work/libbluray-0.8.0/src/libbluray/bluray.c:3474
        meta = 0x0
        psr_menu_lang = <optimized out>
#5  0x00000000004146d4 in bdmv_metadata_thread (result=0x131c020, object=<optimized out>, cancellable=<optimized out>) at gvfsmountinfo.c:503
        bd = 0x7f92f0008310
        meta = <optimized out>
        error = <optimized out>
        file = 0x7f9310003600
        disc_root = 0x0
        icon = <optimized out>
        name = <optimized out>
#6  0x00007f93192e842f in ?? () from /usr/lib64/libgio-2.0.so.0
No symbol table info available.
#7  0x00007f93192d5246 in ?? () from /usr/lib64/libgio-2.0.so.0
No symbol table info available.
#8  0x00007f93192f8925 in ?? () from /usr/lib64/libgio-2.0.so.0
No symbol table info available.
#9  0x00007f9318d59e88 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#10 0x00007f9318d594f5 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#11 0x00007f93188a52d4 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#12 0x00007f93185eb1fd in clone () from /lib64/libc.so.6
No symbol table info available.
Comment 13 Pacho Ramos gentoo-dev 2015-05-31 20:17:30 UTC
You need to compile glib with debugging symbols as I see from that "??" in the traces
Comment 14 Anton Gubarkov 2015-06-01 13:42:49 UTC
Created attachment 404414 [details]
stack backtrace

this time with glib symbols
Comment 15 Anton Gubarkov 2015-06-01 13:50:07 UTC
It seems that the issue is fixed upstream. libbluray-0.8.1 works fine.
Comment 16 Pacho Ramos gentoo-dev 2015-07-04 17:05:20 UTC
(In reply to Anton Gubarkov from comment #15)
> It seems that the issue is fixed upstream. libbluray-0.8.1 works fine.

ok, thanks for feedback