GNOME Bugzilla – Bug 789150
gvfs-mtp backend crashes on plug/unplug/unlock of Android phone, file transfer to Android phone does not work
Last modified: 2018-01-02 23:34:53 UTC
I am Using Ubuntu 17.10 (Artful) with GNOME desktop (default in this Ubuntu version). I have connected an Android phone (Samsung Galaxy Note 3 or Motorola Z2 Play) to USB and want to transfer MP3 music files from the computer to the phone. For several weeks already I have observed crashes of gvfs-mtp, one on each day where I have connected the phone to USB simply to charge the battery. As Ubuntu's crash reporter only pops up the message after a certain delay I am not sure whether the crash was caused by plugging, unplugging, or unlocking the device (there is already a bug reported here in Bugzilla for a crash on unplug: bug 787992). The crash reports in Ubuntu generated this bug report and its duplicates: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1706097 The reports have threaded backtraces attached. Crash happens in unregister_mount_got_proxy_cb(), so most probably they are bug 787992. Yesterday I have tried to transfer MP3 music files to the mentioned phones using Rhythmbox, which did not work. Rhythmbox complained that it could not write to the phone. Then I got the hint to run gvfsd-mtp through valgrind to avoid it crashing. For that I have done sudo mv /usr/lib/gvfs/gvfsd-mtp /usr/lib/gvfs/gvfsd-mtp.bin and created a new executable file /usr/lib/gvfs/gvfsd-mtp containing ---------- #!/bin/sh export G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind -v --tool=memcheck --leak-check=no --log-file=/tmp/gvfs.%p /usr/lib/gvfs/gvfsd-mtp.bin $@ ---------- Now there are no automatic crash reports on gvfsd-mtp any more, but once I got the following automatic crash report: https://bugs.launchpad.net/bugs/1724323 File transfer still does not work. With the phone connected and its screen unlocked Rhythmbox gives the message "Error transferring track, Could not open resource for writing.". A log file of the wrapper script shown above is pasted below (all debug symbol packages installed and gvfsd-mtp.bin replaced by unstripped version). ---------- ==3653== Memcheck, a memory error detector ==3653== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==3653== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==3653== Command: /usr/lib/gvfs/gvfsd-mtp.bin --spawner :1.22 /org/gtk/gvfs/exec_spaw/0 ==3653== Parent PID: 3652 ==3653== --3653-- --3653-- Valgrind options: --3653-- -v --3653-- --tool=memcheck --3653-- --leak-check=no --3653-- --log-file=/tmp/gvfs.%p --3653-- Contents of /proc/version: --3653-- Linux version 4.13.0-16-generic (buildd@lcy01-02) (gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu2)) #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 --3653-- --3653-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi --3653-- Page sizes: currently 4096, max supported 4096 --3653-- Valgrind library directory: /usr/lib/valgrind --3653-- Reading syms from /usr/lib/gvfs/gvfsd-mtp.bin --3653-- Reading syms from /lib/x86_64-linux-gnu/ld-2.26.so --3653-- Considering /lib/x86_64-linux-gnu/ld-2.26.so .. --3653-- .. CRC mismatch (computed 8e133c77 wanted 4706bdfa) --3653-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.26.so .. --3653-- .. CRC is valid --3653-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux --3653-- Considering /usr/lib/valgrind/memcheck-amd64-linux .. --3653-- .. CRC mismatch (computed eb774b19 wanted 9c8eee1f) --3653-- object doesn't have a symbol table --3653-- object doesn't have a dynamic symbol table --3653-- Scheduler: using generic scheduler lock implementation. --3653-- Reading suppressions file: /usr/lib/valgrind/default.supp ==3653== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-3653-by-till-on-??? ==3653== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-3653-by-till-on-??? ==3653== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-3653-by-till-on-??? ==3653== ==3653== TO CONTROL THIS PROCESS USING vgdb (which you probably ==3653== don't want to do, unless you know exactly what you're doing, ==3653== or are doing some strange experiment): ==3653== /usr/lib/valgrind/../../bin/vgdb --pid=3653 ...command... ==3653== ==3653== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==3653== /path/to/gdb /usr/lib/gvfs/gvfsd-mtp.bin ==3653== and then give GDB the following command ==3653== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=3653 ==3653== --pid is optional if only one valgrind process is running ==3653== --3653-- REDIR: 0x401f7b0 (ld-linux-x86-64.so.2:strlen) redirected to 0x58060901 (???) --3653-- REDIR: 0x401f590 (ld-linux-x86-64.so.2:index) redirected to 0x5806091b (???) --3653-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so --3653-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so .. --3653-- .. CRC mismatch (computed 03b2196b wanted a4aa32fd) --3653-- object doesn't have a symbol table --3653-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64
653-- Valgrind options: --3653-- -v --3653-- --tool=memcheck --3653-- --leak-check=no --3653-- --log-file=/tmp/gvfs.%p --3653-- Contents of /proc/version: --3653-- Linux version 4.13.0-16-generic (buildd@lcy01-02) (gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu2)) #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 --3653-- --3653-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi --3653-- Page sizes: currently 4096, max supported 4096 --3653-- Valgrind library directory: /usr/lib/valgrind --3653-- Reading syms from /usr/lib/gvfs/gvfsd-mtp.bin --3653-- Reading syms from /lib/x86_64-linux-gnu/ld-2.26.so --3653-- Considering /lib/x86_64-linux-gnu/ld-2.26.so .. --3653-- .. CRC mismatch (computed 8e133c77 wanted 4706bdfa) --3653-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.26.so .. --3653-- .. CRC is valid --3653-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux --3653-- Considering /usr/lib/valgrind/memcheck-amd64-linux .. --3653-- .. CRC mismatch (computed eb774b19 wanted 9c8eee1f) --3653-- object doesn't have a symbol table --3653-- object doesn't have a dynamic symbol table --3653-- Scheduler: using generic scheduler lock implementation. --3653-- Reading suppressions file: /usr/lib/valgrind/default.supp ==3653== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-3653-by-till-on-??? ==3653== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-3653-by-till-on-??? ==3653== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-3653-by-till-on-??? ==3653== ==3653== TO CONTROL THIS PROCESS USING vgdb (which you probably ==3653== don't want to do, unless you know exactly what you're doing, ==3653== or are doing some strange experiment): ==3653== /usr/lib/valgrind/../../bin/vgdb --pid=3653 ...command... ==3653== ==3653== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==3653== /path/to/gdb /usr/lib/gvfs/gvfsd-mtp.bin ==3653== and then give GDB the following command ==3653== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=3653 ==3653== --pid is optional if only one valgrind process is running ==3653== --3653-- REDIR: 0x401f7b0 (ld-linux-x86-64.so.2:strlen) redirected to 0x58060901 (???) --3653-- REDIR: 0x401f590 (ld-linux-x86-64.so.2:index) redirected to 0x5806091b (???) --3653-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so --3653-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so .. --3653-- .. CRC mismatch (computed 03b2196b wanted a4aa32fd) --3653-- object doesn't have a symbol table --3653-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so --3653-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so .. --3653-- .. CRC mismatch (computed 830dc4ed wanted 1b335a81) --3653-- object doesn't have a symbol table ==3653== WARNING: new redirection conflicts with existing -- ignoring it --3653-- old: 0x0401f7b0 (strlen ) R-> (0000.0) 0x58060901 ??? --3653-- new: 0x0401f7b0 (strlen ) R-> (2007.0) 0x04c32db0 strlen --3653-- REDIR: 0x401d820 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c33ee0 (strcmp) --3653-- REDIR: 0x401fcf0 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c374f0 (mempcpy) --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/gvfs/libgvfsdaemon.so --3653-- object doesn't have a symbol table --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so --3653-- object doesn't have a symbol table --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.5400.1 --3653-- Considering /usr/lib/debug/.build-id/0f/c71a3966f9e2efac55a5296c5950b024b0f2af.debug .. --3653-- .. build-id is valid --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/libmtp.so.9.3.0 --3653-- object doesn't have a symbol table --3653-- Reading syms from /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0 --3653-- object doesn't have a symbol table --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/libgudev-1.0.so.0.2.0 --3653-- object doesn't have a symbol table --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.1 --3653-- Considering /usr/lib/debug/.build-id/f0/3b72efec1c0b52c78f825339edd9a28c4f96b1.debug .. --3653-- .. build-id is valid --3653-- Reading syms from /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.1 --3653-- Considering /usr/lib/debug/.build-id/2a/8899f5ee9751d93a537d477fa0b5f6df53b859.debug .. --3653-- .. build-id is valid --3653-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.26.so --3653-- Considering /usr/lib/debug/.build-id/4a/08084aa956dcb4ad3e4c2295b927f237767bfe.debug .. --3653-- .. build-id is valid --3653-- Reading syms from /lib/x86_64-linux-gnu/libc-2.26.so --3653-- Considering /lib/x86_64-linux-gnu/libc-2.26.so .. --3653-- .. CRC mismatch (computed cc2bbe88 wanted e29f45fb) --3653-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.26.so .. --3653-- .. CRC is valid --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/libsecret-1.so.0.0.0 --3653-- object doesn't have a symbol table --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/libgcr-base-3.so.1.0.0 --3653-- object doesn't have a symbol table --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.5400.1 --3653-- Considering /usr/lib/debug/.build-id/73/eb1e1ec97a2f0a47181cac4560a58827301718.debug .. --3653-- .. build-id is valid --3653-- Reading syms from /lib/x86_64-linux-gnu/libz.so.1.2.11 --3653-- object doesn't have a symbol table --3653-- Reading syms from /lib/x86_64-linux-gnu/libselinux.so.1 --3653-- object doesn't have a symbol table --3653-- Reading syms from /lib/x86_64-linux-gnu/libresolv-2.26.so --3653-- Considering /lib/x86_64-linux-gnu/libresolv-2.26.so .. --3653-- .. CRC mismatch (computed 2f05920e wanted b60231d6) --3653-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libresolv-2.26.so .. --3653-- .. CRC is valid --3653-- Reading syms from /lib/x86_64-linux-gnu/libmount.so.1.1.0 --3653-- object doesn't have a symbol table --3653-- Reading syms from /lib/x86_64-linux-gnu/libgcrypt.so.20.1.8 --3653-- object doesn't have a symbol table --3653-- Reading syms from /lib/x86_64-linux-gnu/libudev.so.1.6.6 --3653-- object doesn't have a symbol table --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4 --3653-- object doesn't have a symbol table --3653-- Reading syms from /lib/x86_64-linux-gnu/libpcre.so.3.13.3 --3653-- Considering /lib/x86_64-linux-gnu/libpcre.so.3.13.3 .. --3653-- .. CRC mismatch (computed 39dfe97e wanted 835fd1fa) --3653-- object doesn't have a symbol table --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/libgck-1.so.0.0.0 --3653-- object doesn't have a symbol table --3653-- Reading syms from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.3.0 --3653-- object doesn't have a symbol table --3653-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.26.so --3653-- Considering /lib/x86_64-linux-gnu/libdl-2.26.so .. --3653-- .. CRC mismatch (computed 955eacd9 wanted 658a4628) --3653-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.26.so .. --3653-- .. CRC is valid --3653-- Reading syms from /lib/x86_64-linux-gnu/libblkid.so.1.1.0 --3653-- object doesn't have a symbol table --3653-- Reading syms from /lib/x86_64-linux-gnu/librt-2.26.so --3653-- Considering /lib/x86_64-linux-gnu/librt-2.26.so .. --3653-- .. CRC mismatch (computed c1cf01a6 wanted 30e48b9c) --3653-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/librt-2.26.so .. --3653-- .. CRC is valid --3653-- Reading syms from /lib/x86_64-linux-gnu/libgpg-error.so.0.22.0 --3653-- object doesn't have a symbol table --3653-- Reading syms from /lib/x86_64-linux-gnu/libuuid.so.1.3.0 --3653-- object doesn't have a symbol table --3653-- REDIR: 0x64e9ef0 (libc.so.6:memmove) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e8fb0 (libc.so.6:strncpy) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64ea1d0 (libc.so.6:strcasecmp) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e8a00 (libc.so.6:strcat) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e8fe0 (libc.so.6:rindex) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64ebb50 (libc.so.6:rawmemchr) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64ea060 (libc.so.6:mempcpy) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e9e80 (libc.so.6:bcmp) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e8f70 (libc.so.6:strncmp) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e8a70 (libc.so.6:strcmp) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e9fc0 (libc.so.6:memset) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x6507eb0 (libc.so.6:wcschr) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e8f10 (libc.so.6:strnlen) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e8ae0 (libc.so.6:strcspn) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64ea220 (libc.so.6:strncasecmp) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e8ab0 (libc.so.6:strcpy) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64ea360 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e9010 (libc.so.6:strpbrk) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e8a30 (libc.so.6:index) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e8ee0 (libc.so.6:strlen) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64f44b0 (libc.so.6:memrchr) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64ea270 (libc.so.6:strcasecmp_l) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e9e50 (libc.so.6:memchr) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x6508c60 (libc.so.6:wcslen) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e92f0 (libc.so.6:strspn) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64ea1a0 (libc.so.6:stpncpy) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64ea170 (libc.so.6:stpcpy) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64ebb80 (libc.so.6:strchrnul) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64ea2c0 (libc.so.6:strncasecmp_l) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x6579370 (libc.so.6:__memcpy_chk) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x64e9d90 (libc.so.6:strstr) redirected to 0x4a2a6e0 (_vgnU_ifunc_wrapper) --3653-- REDIR: 0x65d36a0 (libc.so.6:__strrchr_avx2) redirected to 0x4c32730 (rindex) --3653-- REDIR: 0x65d3870 (libc.so.6:__strlen_avx2) redirected to 0x4c32cf0 (strlen) --3653-- REDIR: 0x64e3e90 (libc.so.6:malloc) redirected to 0x4c2faa0 (malloc) --3653-- REDIR: 0x65d3db0 (libc.so.6:__memcpy_avx_unaligned_erms) redirected to 0x4c366e0 (memmove) --3653-- REDIR: 0x65af060 (libc.so.6:__strcmp_ssse3) redirected to 0x4c33da0 (strcmp) --3653-- REDIR: 0x65ca810 (libc.so.6:__strncmp_sse42) redirected to 0x4c33570 (__strncmp_sse42) --3653-- REDIR: 0x65d0260 (libc.so.6:__strcasecmp_avx) redirected to 0x4c335f0 (strcasecmp) --3653-- REDIR: 0x65cf4b0 (libc.so.6:__strpbrk_sse42) redirected to 0x4c37860 (strpbrk) --3653-- REDIR: 0x64e54f0 (libc.so.6:calloc) redirected to 0x4c31a70 (calloc) --3653-- REDIR: 0x64e49b0 (libc.so.6:realloc) redirected to 0x4c31cb0 (realloc) --3653-- REDIR: 0x65d3280 (libc.so.6:__strchr_avx2) redirected to 0x4c32950 (index) --3653-- REDIR: 0x64fd7b0 (libc.so.6:__strcat_ssse3) redirected to 0x4c32990 (strcat) --3653-- REDIR: 0x64e4390 (libc.so.6:free) redirected to 0x4c30cd0 (free) --3653-- REDIR: 0x65d4230 (libc.so.6:__memset_avx2_unaligned_erms) redirected to 0x4c365d0 (memset) --3653-- REDIR: 0x64e97f0 (libc.so.6:__GI_strstr) redirected to 0x4c37760 (__strstr_sse2) --3653-- REDIR: 0x65cf700 (libc.so.6:__memchr_avx2) redirected to 0x4c33f80 (memchr) --3653-- REDIR: 0x6490b60 (libc.so.6:setenv) redirected to 0x4c37de0 (setenv) --3653-- REDIR: 0x65d3d90 (libc.so.6:__mempcpy_avx_unaligned_erms) redirected to 0x4c37130 (mempcpy) --3653-- REDIR: 0x65d34b0 (libc.so.6:__strchrnul_avx2) redirected to 0x4c37020 (strchrnul) --3653-- REDIR: 0x65c4f80 (libc.so.6:__stpcpy_ssse3) redirected to 0x4c35f60 (stpcpy) --3653-- REDIR: 0x65d0270 (libc.so.6:__strcasecmp_l_avx) redirected to 0x4c33890 (strcasecmp_l) --3653-- REDIR: 0x65c2400 (libc.so.6:__strncpy_ssse3) redirected to 0x4c32fb0 (strncpy) --3653-- REDIR: 0x65c0c50 (libc.so.6:__strcpy_ssse3) redirected to 0x4c32dd0 (strcpy) --3653-- REDIR: 0x65cf5e0 (libc.so.6:__strspn_sse42) redirected to 0x4c37990 (strspn) --3653-- REDIR: 0x65d3da0 (libc.so.6:__memcpy_chk_avx_unaligned_erms) redirected to 0x4c375e0 (__memcpy_chk) --3653-- REDIR: 0x65cf370 (libc.so.6:__strcspn_sse42) redirected to 0x4c378d0 (strcspn) --3653-- REDIR: 0x65cfe80 (libc.so.6:__memcmp_avx2_movbe) redirected to 0x4c35e00 (bcmp) --3653-- REDIR: 0x65d3a00 (libc.so.6:__strnlen_avx2) redirected to 0x4c32c90 (strnlen) --3653-- REDIR: 0x65cf9d0 (libc.so.6:__rawmemchr_avx2) redirected to 0x4c37050 (rawmemchr) ==3653== Thread 4 pool: ==3653== Conditional jump or move depends on uninitialised value(s) ==3653== at 0x65D48A7: __wmemchr_avx2 (memchr-avx2.S:250) ==3653== by 0x6533E70: internal_fnwmatch (fnmatch_loop.c:171) ==3653== by 0x6537268: fnmatch@@GLIBC_2.2.5 (fnmatch.c:440) ==3653== by 0x53B3F3D: cache_glob_lookup_fnmatch (xdgmimecache.c:464) ==3653== by 0x53B3F3D: cache_glob_lookup_file_name (xdgmimecache.c:689) ==3653== by 0x53B3F3D: __gio_xdg_cache_get_mime_types_from_file_name (xdgmimecache.c:870) ==3653== by 0x539193F: g_content_type_guess (gcontenttype.c:671) ==3653== by 0x10E3B4: get_file_info.isra.1 (gvfsbackendmtp.c:1276) ==3653== by 0x112679: do_enumerate (gvfsbackendmtp.c:1398) ==3653== by 0x4E4C7C9: g_vfs_job_run (in /usr/lib/x86_64-linux-gnu/gvfs/libgvfsdaemon.so) ==3653== by 0x4E46B7E: ??? (in /usr/lib/x86_64-linux-gnu/gvfs/libgvfsdaemon.so) ==3653== by 0x5F9500F: g_thread_pool_thread_proxy (gthreadpool.c:307) ==3653== by 0x5F94644: g_thread_proxy (gthread.c:784) ==3653== by 0x623D7FB: start_thread (pthread_create.c:465) ==3653==