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 333089 - ldtp-0.3.1 crash when I run modify_task.py
ldtp-0.3.1 crash when I run modify_task.py
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: general
unspecified
Other opensolaris
: Normal critical
: ---
Assigned To: Nagappan Alagappan
LDTP maintainers
: 333092 333093 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-03-02 07:23 UTC by Patrick
Modified: 2006-12-08 10:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (4.18 KB, patch)
2006-03-15 11:08 UTC, Nagappan Alagappan
committed Details | Review
Sun CBE build environment patch based on comment #10 (3.59 KB, patch)
2006-04-18 10:24 UTC, Nagappan Alagappan
needs-work Details | Review

Description Patrick 2006-03-02 07:23:43 UTC
Evolution 2.5.91 opensoalris(5)

ldtp crash at getcellvalue in modify_task.py

log ( Task has been modified successfully , info )
getrowcount ( frmEvolution-Tasks , tblTasks )
getcellvalue ( frmEvolution-Tasks , tblTasks , 0 , 2 )
getcellvalue ( frmEvolution-Tasks , tblTasks , 1 , 2 )


bash-3.00$ pstack core
core 'core' of 5545:    ldtp
-----------------  lwp# 1 / thread# 1  --------------------
 d1cf8a35 __pollsys (80face0, 2, 0, 0) + 15
 d1cbafde poll     (80face0, 2, ffffffff) + 52
 d1d9ab35 g_main_context_iterate (80a5038, 1, 1, 80a3728) + 399
 d1d9b172 g_main_loop_run (80ab400) + 1ba
 d24bf40e bonobo_main (d25800e0, d2590440, 80472fc, d256c098, d27fb840, 1) + 5e
 d256ea30 cspi_main (d27fb840, 1, 804732c, d27fd8f0, 804732c, 8060cd0) + 18
 d256c098 SPI_event_main (8047430, 8047318, d27fb840, 7fffffff, 7fffffff, 2) + 18
 08060cd0 main     (1, 804735c, 8047364) + 110
 0805ff5a _start   (1, 8047498, 0, 804749d, 80474d1, 80474e6) + 7a
-----------------  lwp# 2 / thread# 2  --------------------
 d1cf8a35 __pollsys (d0b49fc4, 1, 0, 0) + 15
 d1cbafde poll     (d0b49fc4, 1, ffffffff) + 52
 08060a78 ldtp_server_thread (0) + 68
 d1cf7744 _thr_setup (d0b72400) + 51
 d1cf7990 _lwp_start (d0b72400, 0, 0, 0, 0, 0)
-----------------  lwp# 3 / thread# 3  --------------------
 080643a0 handle_client(), exit value = 0x00000001
        ** zombie (exited, not detached, not yet joined) **
-----------------  lwp# 4 / thread# 4  --------------------
 d1cf8a35 __pollsys (80a9118, 9, 0, 0) + 15
 d1cbafde poll     (80a9118, 9, ffffffff) + 52
 d1d9ab35 g_main_context_iterate (80fc078, 1, 1, 80fb7d0) + 399
 d1d9b172 g_main_loop_run (81011d8) + 1ba
 d2147732 link_io_thread_fn (0) + 1e
 d1db4383 g_thread_create_proxy (80fb7d0) + 11b
 d1cf7744 _thr_setup (d08d0400) + 51
 d1cf7990 _lwp_start (d08d0400, 0, 0, 0, 0, 0)
-----------------  lwp# 5 / thread# 5  --------------------
 080643a0 handle_client(), exit value = 0x00000001
        ** zombie (exited, not detached, not yet joined) **
-----------------  lwp# 6 / thread# 6  --------------------
 080643a0 handle_client(), exit value = 0x00000001
        ** zombie (exited, not detached, not yet joined) **
-----------------  lwp# 7 / thread# 7  --------------------
 080643a0 handle_client(), exit value = 0x00000001
        ** zombie (exited, not detached, not yet joined) **
-----------------  lwp# 8 / thread# 8  --------------------
 080643a0 handle_client(), exit value = 0x00000001
        ** zombie (exited, not detached, not yet joined) **
-----------------  lwp# 9 / thread# 9  --------------------
 080643a0 handle_client(), exit value = 0x00000001
        ** zombie (exited, not detached, not yet joined) **
-----------------  lwp# 10 / thread# 10  --------------------
 080643a0 handle_client(), exit value = 0x00000001
        ** zombie (exited, not detached, not yet joined) **
-----------------  lwp# 11 / thread# 11  --------------------
 080643a0 handle_client(), exit value = 0x00000001
        ** zombie (exited, not detached, not yet joined) **
-----------------  lwp# 12 / thread# 12  --------------------
 d1cb37c2 realfree (809d164) + 48
 d1cb3e34 cleanfree (0) + 59
 d1cb32c3 _malloc_unlocked (20, d09edee0, 1b, d1e03fa8, d09ede6c, d1d9fba7) + d7 d1cb31c7 malloc   (1b) + 37
 d1d9fba7 standard_malloc (1b) + 1b
 d1d9fc56 g_malloc (1b) + 32
 d1dbf580 g_vasprintf (d09edee0, 80883ec, d09edf1c) + 38
 d1dafa57 g_strdup_vprintf (80883ec, d09edf1c) + 2b
 d1da1c69 g_print  (80883ec, 81e1560) + 2d
 08064ea7 ldtp_request_fill_request (8195868, 81eecf8, de, d09edfa0) + 1b7
 08063761 handle_request (8101b20, 81d4b60, d09edfa0) + 41
 08064688 handle_client (81ad8b0) + 2e8
 d1cf7744 _thr_setup (d08d0000) + 51
 d1cf7990 _lwp_start (d08d0000, 0, 0, 0, 0, 0)
Comment 1 Nagappan Alagappan 2006-03-02 07:43:27 UTC
Patrick,
  This bug looks like dup of bug #332427
Comment 2 Nagappan Alagappan 2006-03-02 08:36:54 UTC
*** Bug 333092 has been marked as a duplicate of this bug. ***
Comment 3 Nagappan Alagappan 2006-03-02 08:37:06 UTC
*** Bug 333093 has been marked as a duplicate of this bug. ***
Comment 4 Patrick 2006-03-13 06:43:42 UTC
I tried more steps in console and I found log will be crash after call getcellvalue.
Comment 5 Nagappan Alagappan 2006-03-13 07:01:49 UTC
Patrick: Trace for log crash ?
Comment 6 Patrick 2006-03-14 07:52:43 UTC
Steps:
1. Go to Evolution-Tasks
2. In python,
   from ldtp import *
   getcellvalue ('frmEvolution-Tasks','tblTasks',0,2)
   log ('test','info')

Crash:
 pstack core
core 'core' of 2797:
-----------------  lwp# 1 / thread# 1  --------------------
 d2768a35 __pollsys (80fa320, 2, 0, 0) + 15
 d272afde poll     (80fa320, 2, ffffffff) + 52
 d253ab35 g_main_context_iterate (80a4438, 1, 1, 80a4d20) + 399
 d253b172 g_main_loop_run (80aa800) + 1ba
 d211f40e bonobo_main (d23a00e0, d2500960, 80472f8, d238c098, d27fb840, 804731c) + 5e
 d238ea30 cspi_main (d27fb840, 804731c, d27fd8f0, 804731c, 8061b08, 7fffffff) + 18
 d238c098 SPI_event_main (7fffffff, 7fffffff, 2, 0, 0, 0) + 18
 08061b08 main     (0, 804734c, 8047350) + 108
 08060efa _start   (0, 0, 8047484, 80474a5, 80474c6, 8047603) + 7a
-----------------  lwp# 2 / thread# 2  --------------------
 d2768a35 __pollsys (d24b9fc4, 1, 0, 0) + 15
 d272afde poll     (d24b9fc4, 1, ffffffff) + 52
 080618d2 ldtp_server_thread (0) + 62
 d2767744 _thr_setup (d24e2400) + 51
 d2767990 _lwp_start (d24e2400, 0, 0, 0, 0, 0)
-----------------  lwp# 3 / thread# 3  --------------------
 d27237c2 realfree (809c49c) + 48
 d2723e34 cleanfree (0) + 59
 d272328e _malloc_unlocked (8, 0, 3, d26c3f84, 7ffffff2, 8100b9d) + a2
 d27231c7 malloc   (4) + 37
 d263e113 xmlStrndup (8110f48, 3) + 37
 d263e180 xmlStrdup (8110f48) + 34
 d263e8dd xmlStrcat (0, 8110f48) + 49
 d25f04c6 xmlNodeListGetString (810ee88, 8103ca0, 1) + 13a
 080661f4 ldtp_request_fill_request (80a7940, 8103f78, 80, d1fedfa0) + 194
 080641fb handle_request (80fd800, 810b7b8, d1fedfa0) + 3b
 08065a78 handle_client (80ab2e0) + 338
 d2767744 _thr_setup (d1ed0000) + 51
 d2767990 _lwp_start (d1ed0000, 0, 0, 0, 0, 0)
-----------------  lwp# 4 / thread# 4  --------------------
 d2768a35 __pollsys (8100090, 9, 0, 0) + 15
 d272afde poll     (8100090, 9, ffffffff) + 52
 d253ab35 g_main_context_iterate (8100f40, 1, 1, 80fe7d0) + 399
 d253b172 g_main_loop_run (80ffb50) + 1ba
 d22c7732 link_io_thread_fn (0) + 1e
 d2554383 g_thread_create_proxy (80fe7d0) + 11b
 d2767744 _thr_setup (d1ed0400) + 51
 d2767990 _lwp_start (d1ed0400, 0, 0, 0, 0, 0)
Comment 7 Nagappan Alagappan 2006-03-15 11:08:32 UTC
Created attachment 61288 [details] [review]
Proposed patch

Assuming that this patch should fix the crash
Comment 8 Nagappan Alagappan 2006-03-15 11:16:35 UTC
Patrick: Comitted in CVS, can you please check it ?
Comment 9 Patrick 2006-03-16 08:18:28 UTC
Verified.
Comment 10 Patrick 2006-04-18 09:55:09 UTC
I checkout and build by gcc. This bug fixed. But I still got crash when I use Dave's build. We use the same source but Dave use Sun CBE build environment.

bash-3.00$ pstack ./core
core './core' of 748:   ldtp
-----------------  lwp# 1 / thread# 1  --------------------
 d2768d25 __pollsys (80faab0, 2, 0, 0) + 15
 d272b292 poll     (80faab0, 2, ffffffff) + 52
 d253aa61 g_main_context_iterate (80a5778, 1, 1, 809ebc8) + 399
 d253b09e g_main_loop_run (80ab900) + 1ba
 d210f3b2 bonobo_main (d2390050, d2500960, 8047238, d237c00c, d27fb840, 804725c) + 5e
 d237e9a4 cspi_main (d27fb840, 804725c, d27fd8f0, 804725c, 8061c18, 7fffffff) + 18
 d237c00c SPI_event_main (7fffffff, 7fffffff, 2, 0, 0, 0) + 18
 08061c18 main     (1, 8047284, 804728c) + 108
 0806100a _start   (1, 80473d4, 0, 80473d9, 804740d, 8047422) + 7a
-----------------  lwp# 2 / thread# 2  --------------------
 d2768d25 __pollsys (d24b9fc4, 1, 0, 0) + 15
 d272b292 poll     (d24b9fc4, 1, ffffffff) + 52
 080619e2 ldtp_server_thread (0) + 62
 d2767a34 _thr_setup (d24e2400) + 51
 d2767c80 _lwp_start (d24e2400, 0, 0, 0, 0, 0)
-----------------  lwp# 3 / thread# 3  --------------------
 d27238c2 realfree (809d1fc) + 48
 d2723f34 cleanfree (0) + 59
 d27233c3 _malloc_unlocked (20, d1fddef0, 1b, d25a3e38, d1fdde7c, d253fad3) + d7 d27232c7 malloc   (1b) + 37
 d253fad3 standard_malloc (1b) + 1b
 d253fb82 g_malloc (1b) + 32
 d255f450 g_vasprintf (d1fddef0, 8088224, d1fddf38) + 38
 d254f93b g_strdup_vprintf (8088224, d1fddf38) + 2b
 d2541b4d g_print  (8088224, 80aba38) + 2d
 080664e9 ldtp_request_fill_request (80a8a60, 80ff700, f6, d1fddfa0) + 1e9
 080642bb handle_request (80fe800, 811f168, d1fddfa0) + 3b
 08065cc8 handle_client (80ac440) + 338
 d2767a34 _thr_setup (d1ec0000) + 51
 d2767c80 _lwp_start (d1ec0000, 0, 0, 0, 0, 0)
-----------------  lwp# 4 / thread# 4  --------------------
 d2768d25 __pollsys (80f99d8, 9, 0, 0) + 15
 d272b292 poll     (80f99d8, 9, ffffffff) + 52
 d253aa61 g_main_context_iterate (8103c00, 1, 1, 8103c88) + 399
 d253b09e g_main_loop_run (81005c8) + 1ba
 d22b773a link_io_thread_fn (0) + 1e
 d2554267 g_thread_create_proxy (8103c88) + 11b
 d2767a34 _thr_setup (d1ec0400) + 51
 d2767c80 _lwp_start (d1ec0400, 0, 0, 0, 0, 0)
Comment 11 Nagappan Alagappan 2006-04-18 10:21:51 UTC
Based on comment #10 reopening the bug.
Comment 12 Nagappan Alagappan 2006-04-18 10:24:41 UTC
Created attachment 63786 [details] [review]
Sun CBE build environment patch based on comment #10

Patrick, can you please verify this ?
Comment 13 Patrick 2006-07-04 16:01:44 UTC
Sorry for so late. Now I tried July 4th build. 
getcellvalue ( frmEvolution-Tasks , tblTasks , 0 , 2 ) 
return nothing. May be a regression on getcellvalue.

Comment 14 Prashanth Mohan 2006-07-05 10:25:00 UTC
getcellvalue ( frmEvolution-Tasks , tblTasks , 0 , 2 ) 

gives me the right answer
Comment 15 Patrick 2006-07-05 10:41:30 UTC
It should return the title of the first task.
I tried gecellvalue for tblMessage in Mail and it also return nothing.
Comment 16 Prashanth Mohan 2006-07-05 12:59:37 UTC
yes, I am seeing expected behaviour only. I get

getcellvalue ('frmEvolution-Inbox*','ttblMessages',0,4) --> Mail subject
getcellvalue ('frmEvolution-Tasks','tblTasks',0,2) --> Task name
Comment 17 Patrick 2006-07-06 17:09:15 UTC
Output in my system:

bash-3.00$ python
Python 2.4.2 (#1, Jun  2 2006, 20:49:53) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> from ldtp import *
>>> getcellvalue ('frmEvolution-Inbox*','ttblMessages',0,4)
getcellvalue ( frmEvolution-Inbox* , ttblMessages , 0 , 4 )
>>>



Search key based on regular expression: frmEvolution-Inbox*
Search key based on regular expression: frmEvolution-Inbox*
Property: parent - Value: evolution-2.6
app_name: evolution-2.6
Property: label - Value: Evolution - Inbox (9 total)
window_name: Evolution - Inbox (9 total)
Appname: evolution-2.6
Accessible application name: evolution-2.6
Application: evolution-2.6      - Role: application
Child count: 1 of evolution-2.6
Stripped space: Evolution-Inbox(9total)
Before strip Evolution - Inbox (9 total) - After Evolution-Inbox(9total)
Locale MSG: Evolution - Inbox (9 total) - UTF8 - Evolution - Inbox (9 total)
Context: Evolution - Inbox (9 total) In_Locale:  D     ution - Inbox (9 total) Child_name: Evolution - Inbox (9 total)
Window: frmEvolution-Inbox* - Object: ttblMessages
Property: child_index - Value: 0
Property: parent - Value: uknMessages
Parent name: uknMessages - Context name: frmEvolution-Inbox*
Property: uknMessages - Value:

Property: child_index - Value: 0
Property: parent - Value: scpn1
Parent name: scpn1 - Context name: frmEvolution-Inbox*
Property: scpn1 - Value:

Property: child_index - Value: 0
Property: parent - Value: splt1
Parent name: splt1 - Context name: frmEvolution-Inbox*
Property: splt1 - Value:

Property: child_index - Value: 1
Property: parent - Value: flr6
Parent name: flr6 - Context name: frmEvolution-Inbox*
Property: flr6 - Value:

Property: child_index - Value: 0
Property: parent - Value: pnl29
Parent name: pnl29 - Context name: frmEvolution-Inbox*
Property: pnl29 - Value:

Property: child_index - Value: 0
Property: parent - Value: pnl28
Parent name: pnl28 - Context name: frmEvolution-Inbox*
Property: pnl28 - Value:

Property: child_index - Value: 0
Property: parent - Value: ptab1
Parent name: ptab1 - Context name: frmEvolution-Inbox*
Property: ptab1 - Value:

Property: child_index - Value: 0
Property: parent - Value: ptl1
Parent name: ptl1 - Context name: frmEvolution-Inbox*
Property: ptl1 - Value:

Property: child_index - Value: 1
Property: parent - Value: splt0
Parent name: splt0 - Context name: frmEvolution-Inbox*
Property: splt0 - Value:

Property: child_index - Value: 0
Property: parent - Value: flr2
Parent name: flr2 - Context name: frmEvolution-Inbox*
Property: flr2 - Value:

Property: child_index - Value: 2
Property: parent - Value: pnl0
Parent name: pnl0 - Context name: frmEvolution-Inbox*
Property: pnl0 - Value:

Property: child_index - Value: 0
Property: parent - Value: flr0
Parent name: flr0 - Context name: frmEvolution-Inbox*
Property: flr0 - Value:

Property: child_index - Value: 0
Property: parent - Value: frmEvolution-Inbox(9total)
Parent name: frmEvolution-Inbox(9total) - Context name: frmEvolution-Inbox*
Property: label - Value: Messages
Label: Messages - Messages
Locale MSG: Messages - UTF8 - Messages
Object matches
Tree table - number of rows:9   Column: 6
Child type is 55 Table cell is a text object
resp_len = 117
Sending..
149
Response packet: <?xml version="1.0" encoding="utf-8"?><RESPONSE><ID>944590199</ID><STATUS><CODE>0</CODE><MESSAGE>Successfully completed</MESSAGE></STATUS></RESPONSE>
Msg:
Bytes sent: 153
Client packet len: 0
<cause>Packet received from client is not valid</cause>
handle_client: error:
resp_len = 117
Sending..
170
Comment 18 Prashanth Mohan 2006-07-06 17:20:00 UTC
the response packet that I receive is something like this:

Response packet: <?xml version="1.0" encoding="utf-8"?><RESPONSE><ID>466343861</ID><STATUS><CODE>0</CODE><MESSAGE>Successfully completed</MESSAGE></STATUS><DATA><LENGTH>14</LENGTH><VALUE><![CDATA[Happy New year]]></VALUE></DATA></RESPONSE>
Msg:
Bytes sent: 226


Patrick: Are you using the latest CVS code for ldtp? or are you running ldtp 0.3.1 (as indicated in the title?) I think you will not face this problem in the latest code.
Comment 19 Patrick 2006-07-07 09:03:07 UTC
(In reply to comment #18)
> the response packet that I receive is something like this:
> 
> Response packet: <?xml version="1.0"
> encoding="utf-8"?><RESPONSE><ID>466343861</ID><STATUS><CODE>0</CODE><MESSAGE>Successfully
> completed</MESSAGE></STATUS><DATA><LENGTH>14</LENGTH><VALUE><![CDATA[Happy New
> year]]></VALUE></DATA></RESPONSE>
> Msg:
> Bytes sent: 226
> 
> 
> Patrick: Are you using the latest CVS code for ldtp? or are you running ldtp
> 0.3.1 (as indicated in the title?) I think you will not face this problem in
> the latest code.
> 

I guess so. I got ldtp latest package from our RE, Dave who did some automatic nightly build from cvs. I will make sure with him about this build. 

Comment 20 Prashanth Mohan 2006-08-14 05:40:11 UTC
I think this has been fixed Upstream. Can someone verify this?
Comment 21 Rodney Dawes 2006-12-07 20:28:59 UTC
Patrick, can you verify that this is fixed? 
Comment 22 Patrick 2006-12-08 10:06:34 UTC
Verified in latest build.