Mono segfaults in dbus_pending_call_get_completed()

Bug #59166 reported by Andrew Mitchell
34
Affects Status Importance Assigned to Milestone
F-Spot
Unknown
Critical
f-spot (Ubuntu)
Fix Released
High
Andrew Mitchell
libgphoto2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

gdb backtrace:

(gdb) bt full
#0 0xb6410ecd in dbus_pending_call_get_completed ()
   from /usr/lib/libdbus-1.so.3
No symbol table info available.
#1 0xb6403d3f in dbus_connection_flush () from /usr/lib/libdbus-1.so.3
No symbol table info available.
#2 0xb64111fd in dbus_pending_call_block () from /usr/lib/libdbus-1.so.3
No symbol table info available.
#3 0xb6404299 in dbus_connection_send_with_reply_and_block ()
   from /usr/lib/libdbus-1.so.3
No symbol table info available.
#4 0xb2c84ac9 in libhal_find_device_by_capability () from /usr/lib/libhal.so.1
No symbol table info available.
#5 0xb3123d27 in gp_port_library_list ()
   from /usr/lib/libgphoto2_port/0.6.1/disk.so
No symbol table info available.
#6 0xb2e93081 in gp_port_info_list_load () from /usr/lib/libgphoto2_port.so.0
No symbol table info available.
#7 0xb2e98538 in gp_port_result_as_string ()
   from /usr/lib/libgphoto2_port.so.0
No symbol table info available.
#8 0xb2e980b2 in gp_port_result_as_string ()
   from /usr/lib/libgphoto2_port.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---

Revision history for this message
Andrew Mitchell (ajmitch) wrote :

F-Spot appears to crash on selecting the camera in the import dialog, giving a backtrace of:

=================================================================
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]

Changed in f-spot:
importance: Untriaged → High
status: Unconfirmed → In Progress
assignee: nobody → ajmitch
Revision history for this message
Andrew Mitchell (ajmitch) wrote :

Rebuilding libgphoto2 without hal support (dropping libhal-dev build dependency) works around this issue - apparantly the code in libgphoto2 isn't particularly well tested & may be broken.

Changed in f-spot:
status: Unknown → Unconfirmed
Changed in f-spot:
status: Unconfirmed → Rejected
Revision history for this message
Andrew Mitchell (ajmitch) wrote :

Uploaded libgphoto2 2.2.1-2ubuntu3 without libhal-dev build-dependency

Changed in libgphoto2:
status: Unconfirmed → Fix Committed
Changed in f-spot:
status: In Progress → Fix Committed
Changed in libgphoto2:
status: Fix Committed → Fix Released
Changed in f-spot:
status: Fix Committed → Fix Released
Changed in f-spot:
importance: Unknown → Critical
status: Invalid → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.