[LDTP-Dev] Please help me

WANG Ping wangping at nfs-china.com
Mon Dec 29 17:34:16 PST 2008


Hi,everyone,

I am the user of  LDTP1.4. At present, I want to migrate the LDTP to Midinux
development platform, a embedded environment. But I have happended some
problem, it seriously bothered me, when I start to record, it is good,but
when I click to the stop button, the trace will display "sys.exit", and the
page display the LDTPeditor application can't response, and it will crash.

I have analysed it, the "sys.exit" code is from the libldtpcodegen.py
script, select.poll() clause exception. I don't know why?
My python version is python2.4,it is the reason?

Thanks you for your advice.


wangping




-----邮件原件-----
发件人: ldtp-dev-bounces at lists.freedesktop.org
[mailto:ldtp-dev-bounces at lists.freedesktop.org] 代表 ldtp-dev-request at lists.
freedesktop.org
发送时间: 2008年12月30日 4:00
收件人: ldtp-dev at lists.freedesktop.org
主题: LDTP-dev Digest, Vol 35, Issue 2

Send LDTP-dev mailing list submissions to
	ldtp-dev at lists.freedesktop.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
or, via email, send a message with subject or body 'help' to
	ldtp-dev-request at lists.freedesktop.org

You can reach the person managing the list at
	ldtp-dev-owner at lists.freedesktop.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of LDTP-dev digest..."


Today's Topics:

   1. Bug on ldtp.getapplist() ??? (Sandro MILLIEN)
   2. [Bug 565536] New: LDTP server crashed after running
      update-manager testcase (LDTP (bugzilla.gnome.org))


----------------------------------------------------------------------

Message: 1
Date: Mon, 29 Dec 2008 13:42:13 +0100
From: Sandro MILLIEN <sandro.millien at gmail.com>
Subject: [LDTP-Dev] Bug on ldtp.getapplist() ???
To: LDTP Dev Mailinglist <ldtp-dev at lists.freedesktop.org>
Message-ID: <1230554533.11632.11.camel at ll0.awk>
Content-Type: text/plain; charset="us-ascii"

Hi brothers,

I did the following in a python console :

>>>import ldtp
>>>ldtp.getapplist()

I got an exception.

Is there any know issue with ldtp.getapplist() ?

I want to make sure I didn't do anything wrong before filling a bug.

Attached below is a log of my console.


-------------- next part --------------
Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22) 
Type "copyright", "credits" or "license" for more information.

IPython 0.8.1 -- An enhanced Interactive Python.
?       -> Introduction to IPython's features.
%magic  -> Information about IPython's 'magic' % functions.
help    -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: import ldtp

In [2]: ldtp.getapplist()
Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id:
'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0'
Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id:
'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0'
Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id:
'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0'
Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id:
'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0'
Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id:
'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0'
Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id:
'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0'
---------------------------------------------------------------------------
<class 'ldtplib.ldtplibutils.LdtpExecutionError'>Traceback (most recent call
last)

/home/rhass/<ipython console> in <module>()

/var/lib/python-support/python2.5/ldtp.py in getapplist()
   2815         _message = generatexml (command.GETAPPLIST, _requestId)
   2816         sendpacket (_message)
-> 2817         _responseStatus, _responseData = getresponse (_requestId)
   2818         if _responseStatus [0] != 0:
   2819             raise LdtpExecutionError ('getapplist failed: %s' %
_responseStatus [1])

/var/lib/python-support/python2.5/ldtp.py in getresponse(packetId, sockfd,
timeOut)
    223         raise LdtpExecutionError ('Server aborted')
    224     try:
--> 225         _responseType, _responseStatus, _responseData = parsexml
(_responsePacket)
    226         if _responseType == 'response':
    227             # If response type is response, then let us enforce
checking packetId

/var/lib/python-support/python2.5/ldtp.py in parsexml(xmlpacket)
    191         if xml.parsers.expat.ErrorString (msg.code) ==
xml.parsers.expat.errors.XML_ERROR_NO_ELEMENTS:
    192             return None
--> 193         raise LdtpExecutionError ('Parsing XML error: ' + str (msg))
    194 
    195     # Return all the respective values, let the calling function
decide what to do with the values

<class 'ldtplib.ldtplibutils.LdtpExecutionError'>: 'Parsing XML error: not
well-formed (invalid token): line 1, column 273'

In [3]: 



------------------------------

Message: 2
Date: Wed, 24 Dec 2008 06:31:13 +0000 (UTC)
From: "LDTP (bugzilla.gnome.org)" <bugzilla-daemon at bugzilla.gnome.org>
Subject: [LDTP-Dev] [Bug 565536] New: LDTP server crashed after
	running	update-manager testcase
To: ldtp-dev at lists.freedesktop.org
Message-ID: <bug-565536-111798 at http.bugzilla.gnome.org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text
at
the end of this email. Replies to this email are NOT read, please see the
text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=565536

  LDTP | ldtp | Ver: unspecified
           Summary: LDTP server crashed after running update-manager
                    testcase
           Product: LDTP
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: Normal
         Component: ldtp
        AssignedTo: ldtp-maint at gnome.bugs
        ReportedBy: apulido at gmail.com
         QAContact: ldtp-dev at lists.freedesktop.org
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Steps to reproduce:
1. bzr branch lp:ubuntu-desktop-tests 
2. cd ubuntu-desktop-tests
3. ./bin/ubuntu-desktop-test -a update-manager

Each time that the application goes back to the user level, LDTP looses its
trace. Eventually, the server will crash.



Stack trace:
(gdb) thread apply all bt

Thread 4 (process 8038):
#0  0xb7f64422 in __kernel_vsyscall ()
#1  0xb7d110e5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/i686/cmov/libpthread.so.0
#2  0xb7bd9895 in giop_recv_buffer_get () from /usr/lib/libORBit-2.so.0
#3  0xb7bde806 in ORBit_small_invoke_stub () from /usr/lib/libORBit-2.so.0
#4  0xb7bdea39 in ORBit_small_invoke_stub_n () from /usr/lib/libORBit-2.so.0
#5  0xb7beb78a in ORBit_c_stub_invoke () from /usr/lib/libORBit-2.so.0
#6  0xb7cc39f3 in Accessibility_Accessible_getChildAtIndex () from
/usr/lib/libspi.so.0
#7  0xb7cfc52a in Accessible_getChildAtIndex () from /usr/lib/libcspi.so.0
#8  0x08053127 in ?? ()
#9  0x0804d891 in ?? ()
#10 0x0804eb5d in ?? ()
#11 0xb7d0d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#12 0xb7b2e33e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (process 8037):
#0  0xb7f64422 in __kernel_vsyscall ()
#1  0xb7b239b7 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0x0804ca07 in ?? ()
#3  0xb7d0d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0xb7b2e33e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (process 8051):
#0  0xb7f64422 in __kernel_vsyscall ()
#1  0xb7b239b7 in poll () from /lib/tls/i686/cmov/libc.so.6
---Type <return> to continue, or q <return> to quit---
#2  0xb7d6a74b in g_poll () from /usr/lib/libglib-2.0.so.0
#3  0xb7d5d022 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0xb7d5d6b2 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#5  0xb7bf7890 in ?? () from /usr/lib/libORBit-2.so.0
#6  0xb7d8499f in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb7d0d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb7b2e33e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (process 8036):
#0  0xb7f64422 in __kernel_vsyscall ()
#1  0xb7a756d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7a77098 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7d813f3 in g_assertion_message () from /usr/lib/libglib-2.0.so.0
#4  0xb7d81a1d in g_assertion_message_expr () from /usr/lib/libglib-2.0.so.0
#5  0xb7cfee9a in ?? () from /usr/lib/libcspi.so.0
#6  0xb7d035b2 in ?? () from /usr/lib/libcspi.so.0
#7  0xb7df1c7a in g_cclosure_marshal_VOID__POINTER () from
/usr/lib/libgobject-2.0.so.0
#8  0xb7de2409 in ?? () from /usr/lib/libgobject-2.0.so.0
#9  0xb7de3cab in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#10 0xb7dfb33d in ?? () from /usr/lib/libgobject-2.0.so.0
#11 0xb7dfcdae in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#12 0xb7dfd256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#13 0xb7ce080f in ?? () from /usr/lib/libspi.so.0
#14 0xb7cd260f in _ORBIT_skel_small_Accessibility_EventListener_notifyEvent
()
   from /usr/lib/libspi.so.0
#15 0xb7beb507 in ?? () from /usr/lib/libORBit-2.so.0
---Type <return> to continue, or q <return> to quit---
#16 0xb7bf1b15 in ORBit_OAObject_invoke () from /usr/lib/libORBit-2.so.0
#17 0xb7bdde13 in ORBit_small_invoke_adaptor () from /usr/lib/libORBit-2.so.
0
#18 0xb7bef619 in ?? () from /usr/lib/libORBit-2.so.0
#19 0xb7befcf2 in ?? () from /usr/lib/libORBit-2.so.0
#20 0xb7bd6555 in giop_thread_queue_process () from /usr/lib/libORBit-2.so.0
#21 0xb7bd6782 in ?? () from /usr/lib/libORBit-2.so.0
#22 0xb7bfbfe6 in ?? () from /usr/lib/libORBit-2.so.0
#23 0xb7d59ae8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0xb7d5d193 in ?? () from /usr/lib/libglib-2.0.so.0
#25 0xb7d5d6b2 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#26 0xb7c65cf3 in bonobo_main () from /usr/lib/libbonobo-2.so.0
#27 0xb7d02a07 in ?? () from /usr/lib/libcspi.so.0
#28 0xb7cff1c7 in SPI_event_main () from /usr/lib/libcspi.so.0
#29 0x0804c086 in ?? ()
#30 0xb7a60775 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#31 0x0804bce1 in ?? ()


Other information:
The problem seems related to the fact that this test uses policy kit to gain
root access. Once the test is back to the user level, the application is not
recognize anymore by LDTP.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why
you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=565536.


------------------------------

_______________________________________________
LDTP-dev mailing list
LDTP-dev at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/ldtp-dev


End of LDTP-dev Digest, Vol 35, Issue 2
***************************************



More information about the LDTP-dev mailing list