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 575690 - Crash on getobjectproperty, when both window and object arguments are same
Crash on getobjectproperty, when both window and object arguments are same
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp
1.5.0
Other Linux
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2009-03-17 13:16 UTC by Nagappan Alagappan
Modified: 2009-03-17 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nagappan Alagappan 2009-03-17 13:16:41 UTC
Crash on getobjectproperty, when both window and object arguments are same

Steps to reproduce:

In python prompt

>>> from ldtp import *
>>> getobjectproperty ('*-gedit', '*-gedit', 'children')

Stack trace of crash

Thread 1 (process 15217)

  • #0 handle_client
    at client-handler.c line 1446
  • #1 start_thread
    at pthread_create.c line 297
  • #2 clone
    at ../sysdeps/unix/sysv/linux/i386/clone.S line 130

Comment 1 Nagappan Alagappan 2009-03-17 13:22:07 UTC
Patch fixes the crash

1443c1443
< 		if (!cctxt->app_map) {
---
> 		if (cctxt && !cctxt->app_map) {
1446c1446
< 			if (accessible->handle != cctxt->app_handle)
---
> 			if (accessible && cctxt && accessible->handle != cctxt->app_handle)

Fixed in trunk.