After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 354611 - Segfault in dbus_pending_call_get_completed()
Segfault in dbus_pending_call_get_completed()
Status: RESOLVED NOTGNOME
Product: f-spot
Classification: Other
Component: General
0.2.0
Other All
: Normal critical
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 354795 390800 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-09-06 12:39 UTC by Andrew Mitchell
Modified: 2006-12-30 01:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrew Mitchell 2006-09-06 12:39:01 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
  • #0 dbus_pending_call_get_completed
    from /usr/lib/libdbus-1.so.3
  • #1 dbus_connection_flush
    from /usr/lib/libdbus-1.so.3
  • #2 dbus_pending_call_block
    from /usr/lib/libdbus-1.so.3
  • #3 dbus_connection_send_with_reply_and_block
    from /usr/lib/libdbus-1.so.3
  • #4 libhal_find_device_by_capability
    from /usr/lib/libhal.so.1
  • #5 gp_port_library_list
    from /usr/lib/libgphoto2_port/0.6.1/disk.so
  • #6 gp_port_info_list_load
    from /usr/lib/libgphoto2_port.so.0
  • #7 gp_port_result_as_string
    from /usr/lib/libgphoto2_port.so.0
  • #8 gp_port_result_as_string
    from /usr/lib/libgphoto2_port.so.0
---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.
Comment 1 Larry Ewing 2006-09-06 22:00:41 UTC
are you enabling the options hal support in libgphoto2?  Hub seems to think it might not be 100% stable.
Comment 2 Andrew Mitchell 2006-09-07 01:16:15 UTC
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
Comment 3 Karsten Bräckelmann 2006-09-12 10:52:14 UTC
*** Bug 354795 has been marked as a duplicate of this bug. ***
Comment 4 Karsten Bräckelmann 2006-09-12 10:58:39 UTC
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
Comment 5 Michael Chudobiak 2006-12-30 01:23:31 UTC
*** Bug 390800 has been marked as a duplicate of this bug. ***