I think that gphoto2_backend->lock is also not NULL, as g_mutex_clear() derefs it: g_mutex_impl_free (mutex->p); it seems it's gphoto2_backend->lock->p which is NULL then, i. e. the mutex was not initialized properly.
The only access to this aside from the _lock()/_unlock() calls is in do_mount() line 1715, i. e. it gets initialized _after_ release_device() is called (which tries to free it again). ** Changed in: gvfs (Ubuntu Precise) Status: Confirmed => In Progress ** Changed in: gvfs (Ubuntu Precise) Assignee: Canonical Desktop Team (canonical-desktop-team) => Martin Pitt (pitti) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gvfs in Ubuntu. https://bugs.launchpad.net/bugs/968186 Title: gvfsd-gphoto2 crashed with SIGSEGV in __pthread_mutex_destroy() Status in GVFS: Unknown Status in “gvfs” package in Ubuntu: In Progress Status in “gvfs” source package in Precise: In Progress Bug description: I plugged in my Nokia 5800 to import the photos with Shotwell, something I do regularly, and received this bug. My details: 1) Ubuntu 12.04 2) Shotwell 0.11.93 3) Nokia 5800 I would like to help with more information regarding this, if necessary, so let me know if it is needed. ProblemType: Crash DistroRelease: Ubuntu 12.04 Package: gvfs-backends 1.11.5-1ubuntu1 ProcVersionSignature: Ubuntu 3.2.0-20.33-generic 3.2.12 Uname: Linux 3.2.0-20-generic x86_64 ApportVersion: 1.95-0ubuntu1 Architecture: amd64 CrashCounter: 1 Date: Thu Mar 29 18:21:55 2012 ExecutablePath: /usr/lib/gvfs/gvfsd-gphoto2 ProcCmdline: /usr/lib/gvfs/gvfsd-gphoto2 --spawner :1.5 /org/gtk/gvfs/exec_spaw/8 ProcEnviron: SHELL=/bin/bash LANG=en_US.UTF-8 SegvReason: writing NULL VMA Signal: 11 SourcePackage: gvfs Title: gvfsd-gphoto2 crashed with SIGSEGV in pthread_mutex_destroy() UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxusers To manage notifications about this bug go to: https://bugs.launchpad.net/gvfs/+bug/968186/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp