Bug 522944 - gvfsd-gphoto2 crashed with SIGSEGV in pthread_mutex_lock()
gvfsd-gphoto2 crashed with SIGSEGV in pthread_mutex_lock()
Status: NEW
Product: gvfs
Classification: Core
Component: gphoto backend
0.2.x
Other Linux
: Normal critical
: ---
Assigned To: gvfs-maint
gvfs-maint
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2008-03-17 12:14 UTC by Pedro Villavicencio
Modified: 2011-05-23 21:00 UTC (History)
6 users (show)

See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments

Description Pedro Villavicencio 2008-03-17 12:14:14 UTC
This report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/gvfs/+bug/202304

"when dclick on the Canon A510 icon"

".

Thread 1 (process 8699)

  • #0 pthread_mutex_lock
    from /lib/tls/i686/cmov/libpthread.so.0
  • #1 file_get_info
    at gvfsbackendgphoto2.c line 982
  • #2 try_query_info
    at gvfsbackendgphoto2.c line 1907
  • #3 try
    at gvfsjobqueryinfo.c line 170
  • #4 g_vfs_job_try
    at gvfsjob.c line 216
  • #5 g_vfs_daemon_queue_job
    at gvfsdaemon.c line 453
  • #6 job_source_new_job_callback
    at gvfsdaemon.c line 320
  • #7 IA__g_cclosure_marshal_VOID__UCHAR
    at /build/buildd/glib2.0-2.15.6/gobject/gmarshal.c line 181
  • #8 toggle_refs_notify
    at /build/buildd/glib2.0-2.15.6/gobject/gobject.c line 1631
  • #9 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.15.6/gobject/gsignal.c line 520
  • #10 IA__g_signal_has_handler_pending
    at /build/buildd/glib2.0-2.15.6/gobject/gsignal.c line 1963
  • #11 IA__g_signal_has_handler_pending
    at /build/buildd/glib2.0-2.15.6/glib/gbsearcharray.h line 169
  • #12 g_vfs_job_source_new_job
    at gvfsjobsource.c line 100
  • #13 backend_dbus_handler
    at gvfsbackend.c line 537
  • #14 daemon_message_func
    at gvfsdaemon.c line 981
  • #15 dbus_connection_dispatch
    at dbus-connection.c line 4379
  • #16 message_queue_dispatch
    at dbus-gmain.c line 128
  • #17 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.15.6/glib/gmain.c line 2048
  • #18 g_main_context_iterate
    at /build/buildd/glib2.0-2.15.6/glib/gmain.c line 2653
  • #19 IA__g_main_loop_run
    at /build/buildd/glib2.0-2.15.6/glib/gmain.c line 2893
  • #20 daemon_main
    at daemon-main.c line 270
  • #21 main
    at daemon-main-generic.c line 39
  • #22 __libc_start_main
    from /lib/tls/i686/cmov/libc.so.6
  • #23 _start

    
Comment 1 David Zeuthen (not reading bugmail) 2008-03-17 16:39:49 UTC
This looks similar to bug 520762. Any chance you can reproduce this with the gphoto commandline tools (e.g. run 'gphoto2 -L') and other gphoto2 using apps (e.g. f-spot, gthumb)? Thanks.
Comment 2 Sebastien Bacher 2008-03-17 17:59:53 UTC
I got several similar crashers when mounting my camera using the computer location in nautilus, the camera works correctly using gphoto applications, what debug information would be useful there?
Comment 3 David Zeuthen (not reading bugmail) 2008-03-17 18:10:33 UTC
It would be useful to try a few other devices. That would help determine whether the bug happens in libgphoto2 or in the vfs daemon. What kind of patches and version does Ubuntu have for libgphoto2?

While developing the backend I used four different devices and never seen this. But I'm using Fedora but that shouldn't make any difference. Though if you or others you have access to a Rawhide or other recent distro with this stuff it would be useful to get test reports there too, ideally using the same hardware.
Comment 4 Florent Mertens 2008-03-29 19:31:00 UTC
I also get this bug with a Samsung YP-U3.
Double click on the player icon crash.

flo@flo-laptop:~$ gphoto2 -v
gphoto2 2.4.0

Copyright (c) 2000-2006 Lutz Mueller and others

gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.

This version of gphoto2 is using the following software versions and options:
gphoto2         2.4.0          gcc, popt(m), exif, cdk, no aa, jpeg, readline
libgphoto2      2.4.0          gcc, ltdl, EXIF
libgphoto2_port 0.8.0          gcc, ltdl, USB, serial without locking

Patch with the sansa fix from upstream :
http://patches.ubuntu.com/libg/libgphoto2/extracted/71_sandisk_sansa_crash.dpatch

I also found that mounting with right-clik->mount works.
What is actually the difference between double click and right-click->mount ?
Comment 5 Florent Mertens 2008-03-30 12:07:07 UTC
I get the exact same behavior with rawhide :
Double-click fail, right-click->mount works.

Just for info, 10-camera-libgphoto2.fdi still use the deprecated key info.bus.
Comment 6 Tobias Mueller 2009-01-24 00:44:35 UTC
The question raised in comment #1 has been answered downstream:


I can confirm this bug.
I also can confirm that 'gphoto2 -L' works, so this has nothing to do with the sansa issue.

I also found that when mounting with right-click->mount it works. Can somebody try that ?



I am thus reopening this bug.
Comment 7 Bastien Nocera 2009-01-28 00:26:31 UTC
The last comment on this bug was nearly a year ago. Please test again with an updated distribution, and provide a new backtrace if the problem still occurs.
Comment 8 Sebastien Bacher 2009-03-02 10:59:28 UTC
There is a similar crash using 1.1.6 on https://bugs.launchpad.net/bugs/335017

"#0  0x00007f353641da2a in pthread_mutex_lock () from /lib/libpthread.so.0
  • #1 file_get_info
    at gvfsbackendgphoto2.c line 958
  • #2 try_query_info
    at gvfsbackendgphoto2.c line 1860
  • #3 g_vfs_job_try
    at gvfsjob.c line 216
  • #4 g_vfs_daemon_queue_job
    at gvfsdaemon.c line 453
  • #5 IA__g_closure_invoke
    at /build/buildd/glib2.0-2.19.8/gobject/gclosure.c line 767
  • #6 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.19.8/gobject/gsignal.c line 3244
  • #7 IA__g_signal_emit_valist
    at /build/buildd/glib2.0-2.19.8/gobject/gsignal.c line 2977
  • #8 IA__g_signal_emit
    at /build/buildd/glib2.0-2.19.8/gobject/gsignal.c line 3034
  • #9 backend_dbus_handler
    at gvfsbackend.c line 587
  • #10 daemon_message_func
    at gvfsdaemon.c line 981
  • #11 dbus_connection_dispatch
    at dbus-connection.c line 4406
  • #12 message_queue_dispatch
    at dbus-gmain.c line 127
  • #13 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.19.8/glib/gmain.c line 1814
  • #14 g_main_context_iterate
    at /build/buildd/glib2.0-2.19.8/glib/gmain.c line 2448
  • #15 IA__g_main_loop_run
    at /build/buildd/glib2.0-2.19.8/glib/gmain.c line 2656
  • #16 daemon_main
    at daemon-main.c line 270
  • #17 main
    at daemon-main-generic.c line 39

    
Comment 9 Kjartan Maraas 2011-05-23 20:50:19 UTC
And now, two years later, are there still similar crashes happening?
Comment 10 Shahar Or 2011-05-23 21:00:00 UTC
I don't remember when I last got this.

Note You need to log in before you can comment on or make changes to this bug.