GNOME Bugzilla – Bug 354611
Segfault in dbus_pending_call_get_completed()
Last modified: 2006-12-30 01:23:31 UTC
Steps to reproduce: 1. Start F-Spot 2. Attach & turn on camera 3. Select camera in import dialog Stack trace: gdb backtrace: (gdb) bt full
+ Trace 71729
---Type <return> to continue, or q <return> to quit--- Similar info on the console from another system: ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: at (wrapper managed-to-native) LibGPhoto2.PortInfoList.gp_port_info_list_load (System.Runtime.InteropServices.HandleRef) <0x00012> at (wrapper managed-to-native) LibGPhoto2.PortInfoList.gp_port_info_list_load (System.Runtime.InteropServices.HandleRef) <0xffffffff> at LibGPhoto2.PortInfoList.Load () <0x00037> at GPhotoCamera..ctor () <0x0005c> at SourceMenu..ctor (ImportCommand) <0x004ec> at ImportCommand.ImportFromFile (PhotoStore,string) <0x00231> at MainWindow.HandleImportCommand (object,System.EventArgs) <0x00080> at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void_object_EventArgs (object,System.EventArgs) <0xffffffff> at GLib.Signal.voidObjectCallback (intptr,intptr) <0x000d4> at (wrapper native-to-managed) GLib.Signal.voidObjectCallback (intptr,intptr) <0xffffffff> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x0000b> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff> at Gtk.Application.Run () <0x00008> at Gnome.Program.Run () <0x0000c> at FSpot.Driver.Main (string[]) <0x0086e> at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff> Native stacktrace: mono(mono_handle_native_sigsegv+0xe2) [0x502932] mono [0x4d03dd] /lib/libpthread.so.0 [0x2aafecd8c2a0] /usr/lib/libdbus-1.so.3(dbus_pending_call_get_completed+0x11) [0x2aaaabada961] /usr/lib/libdbus-1.so.3 [0x2aaaabace8b6] /usr/lib/libdbus-1.so.3(dbus_connection_send_with_reply_and_block+0x73) [0x2aaaabacee13] /usr/lib/libhal.so.1(libhal_find_device_by_capability+0xc0) [0x2aaab5a6ec20] /usr/lib/libgphoto2_port/0.6.1/disk.so(gp_port_library_list+0xc0) [0x2aaab59510a0] /usr/lib/libgphoto2_port.so.0 [0x2aaab56e4b11] /usr/lib/libgphoto2_port.so.0 [0x2aaab56e9696] /usr/lib/libgphoto2_port.so.0 [0x2aaab56e923e] /usr/lib/libgphoto2_port.so.0(gp_port_info_list_load+0x7d) [0x2aaab56e49dd] [0x406efb98] Other information: Crash occurs with F-Spot 0.2.0 on Ubuntu Edgy, with libgphoto2 2.2.1, and dbus 0.92 This appears to be related to issues with newer versions of dbus & applications not initialising dbus threading lately. I have tried calling dbus_g_thread_init() in src/Main.cs, but with no effect.
are you enabling the options hal support in libgphoto2? Hub seems to think it might not be 100% stable.
Yes, libgphoto2 is built with hal support, and disabling hal support stops it segfaulting. I'll check what needs hal support & why it's turned on - hopefully we can fix it & keep what functionality it adds. Thanks for the quick followup
*** Bug 354795 has been marked as a duplicate of this bug. ***
Thanks, Andrew. According to the stacktrace and comment 2 this is an issue with libgphoto2, thus... Thanks for the bug report. However, this application does not track its bugs in the GNOME Bugzilla. We kindly ask you to report the bug to the application authors. For a selective list of other bug tracking systems please consult http://live.gnome.org/Bugsquad/TriageGuide/NonGnome. If the affected third party application has a bug tracking system you should investigate whether a bug for the reported issue is already filed in this system. If it has not been filed yet please do so. Also ensure that both bug reports contain a link to each other. libgphoto2 project page: http://www.gphoto.org/ bugtracker: http://sourceforge.net/tracker/?group_id=8874&atid=108874
*** Bug 390800 has been marked as a duplicate of this bug. ***