Autopilot-gtk crashes when a query returns no results.

Bug #1177161 reported by Thomi Richards
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopilot-gtk
Fix Released
Critical
Unassigned
autopilot-gtk (Ubuntu)
Fix Released
Undecided
Unassigned
Raring
Won't Fix
Undecided
Unassigned

Bug Description

Stack trace:

#0 0x00007ffff5873037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff5876698 in __GI_abort () at abort.c:90
#2 0x00007fffef91be8d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007fffef919f76 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007fffef919fa3 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007fffef91a1de in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007fffef96c7ad in std::__throw_logic_error(char const*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007fffef978b59 in char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag)
    () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#8 0x00007fffef978bc3 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)
    () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9 0x00007fffede206b7 in GtkNode::MatchProperty (this=0x555555e69578, name=..., value=...)
    at /home/thomi/code/canonical/autopilot-gtk/lp1176234/lib/GtkNode.cpp:198
#10 0x00007fffedbf8841 in SelectNodes () from /usr/lib/x86_64-linux-gnu/libxpathselect.so.1.3
#11 0x00007fffede23648 in GetNodesThatMatchQuery (query_string=...) at /home/thomi/code/canonical/autopilot-gtk/lp1176234/lib/Introspection.cpp:101
#12 0x00007fffede23447 in Introspect (query_string=...) at /home/thomi/code/canonical/autopilot-gtk/lp1176234/lib/Introspection.cpp:80
#13 0x00007fffede233a3 in handle_get_state (introspection_service=0x5555557c6050, invocation=0x555555df0700,
    arg=0x555555e608a0 "//GtkTextCellAccessible[accessible_name=FakeOAuth]", user_data=0x0)
    at /home/thomi/code/canonical/autopilot-gtk/lp1176234/lib/Introspection.cpp:69
#14 0x00007ffff2470c18 in ffi_call_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#15 0x00007ffff2470580 in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#16 0x00007ffff6467f7b in g_cclosure_marshal_generic (closure=0x555555cd25c0, return_gvalue=0x7fffffffd980, n_param_values=<optimized out>,
    param_values=<optimized out>, invocation_hint=<optimized out>,
    marshal_data=0x7fffede2335b <handle_get_state(_AutopilotIntrospection*, _GDBusMethodInvocation*, char const*, void*)>)
    at /build/buildd/glib2.0-2.36.0/./gobject/gclosure.c:1454
#17 0x00007ffff6467620 in g_closure_invoke (closure=0x555555cd25c0, return_value=0x7fffffffd980, n_param_values=3, param_values=0x555555e22070,
    invocation_hint=0x7fffffffd9d0) at /build/buildd/glib2.0-2.36.0/./gobject/gclosure.c:777
#18 0x00007ffff6478f00 in signal_emit_unlocked_R (node=node@entry=0x5555557c6c40, detail=detail@entry=0, instance=instance@entry=0x5555557c6050,
    emission_return=emission_return@entry=0x7fffffffdb30, instance_and_params=instance_and_params@entry=0x555555e22070)
    at /build/buildd/glib2.0-2.36.0/./gobject/gsignal.c:3584
#19 0x00007ffff647fe3b in g_signal_emitv (instance_and_params=0x555555e22070, signal_id=<optimized out>, detail=0, return_value=0x7fffffffdb30)
    at /build/buildd/glib2.0-2.36.0/./gobject/gsignal.c:3059
#20 0x00007fffede261bf in _autopilot_introspection_skeleton_handle_method_call ()
   from /home/thomi/code/canonical/autopilot-gtk/lp1176234/build/lib/libautopilot.so
#21 0x00007ffff677ef16 in g_dbus_interface_method_dispatch_helper (invocation=0x555555df0700,
    method_call_func=0x7fffede25dc4 <_autopilot_introspection_skeleton_handle_method_call>, interface=0x5555557c6050)
    at /build/buildd/glib2.0-2.36.0/./gio/gdbusinterfaceskeleton.c:610
#22 skeleton_intercept_handle_method_call (connection=<optimized out>, sender=<optimized out>, object_path=<optimized out>,
    interface_name=<optimized out>, method_name=<optimized out>, parameters=<optimized out>, invocation=0x555555df0700, user_data=0x5555557c6050)
    at /build/buildd/glib2.0-2.36.0/./gio/gdbusinterfaceskeleton.c:651
#23 0x00007ffff6767555 in call_in_idle_cb (user_data=0x555555df0700) at /build/buildd/glib2.0-2.36.0/./gio/gdbusconnection.c:4737
---Type <return> to continue, or q <return> to quit---
#24 0x00007ffff61a3f05 in g_main_dispatch (context=0x5555557a7050) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3054
#25 g_main_context_dispatch (context=context@entry=0x5555557a7050) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3630
#26 0x00007ffff61a4248 in g_main_context_iterate (context=context@entry=0x5555557a7050, block=block@entry=1, dispatch=dispatch@entry=1,
    self=<optimized out>) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3701
#27 0x00007ffff61a4304 in g_main_context_iteration (context=0x5555557a7050, context@entry=0x0, may_block=may_block@entry=1)
    at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3762
#28 0x00007ffff674452c in g_application_run (application=0x5555557d33b0, argc=<optimized out>, argv=0x7fffffffdf28)
    at /build/buildd/glib2.0-2.36.0/./gio/gapplication.c:1623
#29 0x000055555555b2ba in main ()

To reproduce, build the library (or use the one built in the PPA), and run:

autopilot launch gnome-control-center credentials

Then send the query string:

"//GtkTextCellAccessible[accessible_name=FakeOAuth]"

To the DBus backend. Bang!

Related branches

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:autopilot-gtk at revision 37, scheduled for release in autopilot-gtk, milestone Unknown

Changed in autopilot-gtk:
status: In Progress → Fix Committed
Changed in autopilot-gtk:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.4 KiB)

This bug was fixed in the package autopilot-gtk - 1.3daily13.06.05-0ubuntu1

---------------
autopilot-gtk (1.3daily13.06.05-0ubuntu1) saucy; urgency=low

  [ Alberto Mardegan ]
  * Export the ATK objects hierarchy as well AtkObject interfaces are
    meant for accessibility, and expose more information which can be
    useful for automated testing. For instance, it is possible to
    enumerate and introspect all the cells in a GtkTreeView. This patch
    exposes the ATK objects hierarchies as children of the root node;
    the existing GtkWidget hierarchy is left untouched, and can still be
    used. . (LP: #1160827)

  [ Thomi Richards ]
  * fix property searching. (LP: #1175738)
  * Fix crashing bug. (LP: #1177161)
  * This change fixes an issue with queries that look for gtk windows
    matching a particular property value. A set of 2 tests has been
    added to verify the queries that were otherwise failing with a void
    return set.

  [ Christopher Lee ]
  * Add GetVersion to the DBus introspection.

  [ David Barth ]
  * This change fixes an issue with queries that look for gtk windows
    matching a particular property value. A set of 2 tests has been
    added to verify the queries that were otherwise failing with a void
    return set.

  [ Allan LeSage ]
  * This change fixes an issue with queries that look for gtk windows
    matching a particular property value. A set of 2 tests has been
    added to verify the queries that were otherwise failing with a void
    return set.

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 42

autopilot-gtk (1.3daily13.05.24ubuntu.unity.next-0ubuntu1) raring; urgency=low

  [ Thomi Richards ]
  * This change fixes an issue with queries that look for gtk windows
    matching a particular property value. A set of 2 tests has been
    added to verify the queries that were otherwise failing with a void
    return set.

  [ Allan LeSage ]
  * This change fixes an issue with queries that look for gtk windows
    matching a particular property value. A set of 2 tests has been
    added to verify the queries that were otherwise failing with a void
    return set.

  [ David Barth ]
  * This change fixes an issue with queries that look for gtk windows
    matching a particular property value. A set of 2 tests has been
    added to verify the queries that were otherwise failing with a void
    return set.

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 41 (ubuntu-unity/next)

autopilot-gtk (1.3daily13.05.09ubuntu.unity.next-0ubuntu1) raring; urgency=low

  * Automatic snapshot from revision 39 (ubuntu-unity/next)

autopilot-gtk (1.3daily13.05.08ubuntu.unity.next-0ubuntu1) raring; urgency=low

  [ Thomi Richards ]
  * Autopilot-gtk crashes when a query returns no results. (LP:
    #1177161)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 37 (ubuntu-unity/next)

autopilot-gtk (1.3daily13.05.03ubuntu.unity.next-0ubuntu1) raring; urgency=low

  [ Christopher Lee ]
  * Bump version number

  [ Thomi Richards ]
  * property matching is broken (LP: #1175738)

  [ Christopher Lee <email address hidden>, Thomi Richards ]
  * DBus wire protocol changes required (...

Read more...

Changed in autopilot-gtk (Ubuntu):
status: New → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

raring has seen the end of its life and is no longer receiving any updates. Marking the raring task for this ticket as "Won't Fix".

Changed in autopilot-gtk (Ubuntu Raring):
status: New → Won't Fix
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.