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 336139 - Core dumps when using LDTP and GOK.
Core dumps when using LDTP and GOK.
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: pyldtp
0.3.x
Other Solaris
: Normal critical
: ---
Assigned To: Nagappan Alagappan
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2006-03-27 02:32 UTC by Tim Miao
Modified: 2006-05-02 11:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
guiexist crash patch (2.88 KB, patch)
2006-03-27 04:32 UTC, Nagappan Alagappan
needs-work Details | Review
guiexist crash patch (2.87 KB, patch)
2006-03-28 07:23 UTC, Nagappan Alagappan
committed Details | Review

Description Tim Miao 2006-03-27 02:32:18 UTC
Steps to reproduce:
1. Enable the desktop accessibility support, then invoke GOK.
2. Launch python and import LDTP package.
3. Execute the LDTP command 'guiexist' to try to capture the GOK frame.

Expected result:
LDTP could capture the GOK frame and return 1.

Actual result:
LDTP hangs. And if you Ctrl+C and Ctrl+D to terminate it, it dumps core. I
posted stack trace below.

Stack trace:
-bash-3.00$ pstack core
core 'core' of 2397:
-----------------  lwp# 1 / thread# 1  --------------------
 d2f68d25 __pollsys (80fb290, 2, 0, 0) + 15
 d2f2b292 poll     (80fb290, 2, ffffffff) + 52
 d2d3aa61 g_main_context_iterate (80a4540, 1, 1, 80a0950) + 399
 d2d3b09e g_main_loop_run (80aa568) + 1ba
 d291f3b2 bonobo_main (d2ba00e0, d2d00960, 80473c8, d2b8c098, d2ffb840, 80473ec)
+ 5e
 d2b8ea30 cspi_main (d2ffb840, 80473ec, d2ffd8f0, 80473ec, 8061ae8, 7fffffff) + 18
 d2b8c098 SPI_event_main (7fffffff, 7fffffff, 2, 0, 0, 0) + 18
 08061ae8 main     (0, 8047414, 8047418) + 108
 08060eda _start   (0, 0, 8047548, 8047569, 804758a, 80476c7) + 7a
-----------------  lwp# 2 / thread# 2  --------------------
 d2f68d25 __pollsys (d2cb9fc4, 1, 0, 0) + 15
 d2f2b292 poll     (d2cb9fc4, 1, ffffffff) + 52
 080618b2 ldtp_server_thread (0) + 62
 d2f67a28 _thr_setup (d2ce2400) + 51
 d2f67c80 _lwp_start (d2ce2400, 0, 0, 0, 0, 0)
-----------------  lwp# 3 / thread# 3  --------------------
 d2f04b90 strlen   (8087fdc, d27edd6c, d27edc80, 0) + 30
 d2f42735 vsnprintf (d27edcd0, 1, 8087fbc, d27edd6c) + 70
 d2d41e10 g_printf_string_upper_bound (8087fbc, d27edd6c) + 28
 d2d5f447 g_vasprintf (d27edd30, 8087fbc, d27edd6c) + 2f
 d2d4f93b g_strdup_vprintf (8087fbc, d27edd6c) + 2b
 d2d41b4d g_print  (8087fbc, 80ab158, 81033d9, 0) + 2d
 08067f4d get_child_window_handle (81032f8, 80ab158) + dd
 08068172 get_window_handle (0, 80ab158) + e2
 08068298 update_cur_window_appmap_handle (80faa10, d27edfa0) + 88
 080685cc ldtp_gui_get_gui_handle (80faa10, d27edfa0) + ec
 0806957a ldtp_gui_gui_exist (80faa10, d27edfa0) + 1a
 08064665 handle_request (80faa10, 80ab0b8, d27edfa0) + 555
 08065b28 handle_client (80ab058) + 338
 d2f67a28 _thr_setup (d26d0000) + 51
 d2f67c80 _lwp_start (d26d0000, 0, 0, 0, 0, 0)
-----------------  lwp# 4 / thread# 4  --------------------
 d2f68d25 __pollsys (80a8478, 9, 0, 0) + 15
 d2f2b292 poll     (80a8478, 9, ffffffff) + 52
 d2d3aa61 g_main_context_iterate (80faa78, 1, 1, 80f8630) + 399
 d2d3b09e g_main_loop_run (81004f8) + 1ba
 d2ac773a link_io_thread_fn (0) + 1e
 d2d54267 g_thread_create_proxy (80f8630) + 11b
 d2f67a28 _thr_setup (d26d0400) + 51
 d2f67c80 _lwp_start (d26d0400, 0, 0, 0, 0, 0)


Other information:
I could get GOK captured by at-poke, so I think this may be another bug for LDTP.

This bug could be seen on vermillion_07/snv_35 x86.
Comment 1 Nagappan Alagappan 2006-03-27 04:32:07 UTC
Created attachment 62088 [details] [review]
guiexist crash patch

Tim: Can you please try with this patch and update the bug ?
Comment 2 Tim Miao 2006-03-27 09:21:33 UTC
I'm so sorry for the absence of build machine, I could not verify this bug with your patch. It looks I have to wait for your latest release. Thanks for your quick response!
Comment 3 Nagappan Alagappan 2006-03-28 07:23:08 UTC
Created attachment 62181 [details] [review]
guiexist crash patch
Comment 4 Calum Benson 2006-04-26 17:13:38 UTC
Apologies for spam... ensuring Sun a11y folks are cc'ed on all current accessibility bugs.
Comment 5 Nagappan Alagappan 2006-05-02 11:14:09 UTC
Fix available in CVS