GNOME Bugzilla – Bug 565536
LDTP server crashed after running update-manager testcase
Last modified: 2014-11-14 22:00:08 UTC
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
+ Trace 211037
Thread 1 (process 8036)
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.
I could not reproduce the LDTP crash at my end. But I could reproduce the issue of update manager disappeared from the application list. Also I tried adding reinitldtp function call in between the script, even that failed to initialize. Internal implementation of reinildtp: SPI_exit () SPI_init () functions of at-cspi are called. SPI_init returns 2, when I checked http://svn.gnome.org/viewvc/at-spi/trunk/cspi/spi_main.c?revision=1137&view=markup line # 391 returns 2. Probably Li can help us here. Assigning the bug to Li Li in /etc/suoders file I have the following entries Defaults env_keep+="GTK_MODULES" Defaults:halim env_keep+="ORBIT_SOCKETDIR DISPLAY" in /root/.orbitrc file I have the following entries ORBIIOPIPv4=1 ORBIIOPUNIX=0 My test machine: Ubuntu 8.10 32bit Please let me know, if you need any other info.
When tests are completed, the update manager window is left opened, if you try to access the application list using accerciser, update-manager will not be listed. But, it will be listed, if you focus the update-manager application once !!! Not sure, why and how this happens :)
By the way, I have tried to launch update-namager as normal in two ways: system->"Update Manager" and in terminal $/usr/bin/update-manager , the update-namager registered successfully, can be seen in accerciser and worked with orca as soon as launched. I did not try to launch using "./bin/ubuntu-desktop-test -a update-manager" , I can not find "ubuntu-desktop-test". :-(
Wang: The test case is about to update some of the packages that are available for updates. Just invoking the application doesn't have any issue. You can get the ubuntu-desktop-test from https://code.launchpad.net/ubuntu-desktop-testing Thanks
(In reply to comment #4) > Wang: The test case is about to update some of the packages that are available > for updates. Just invoking the application doesn't have any issue. > > You can get the ubuntu-desktop-test from > https://code.launchpad.net/ubuntu-desktop-testing > > Thanks > Thanks for your help, I used "./bin/ubuntu-desktop-test -a update-manager" successfully. After "./bin/ubuntu-desktop-test -a update-manager", there is not crash on my box. The situation on my box (ubuntu 8.10 64bit) is different : #Firstly the update manager window is left opened, and appeared in the application list in accerciser. #Then exit itself, disappeared in accerciser, printing three warnings: >Warning: AT-SPI error: getName: Unknown CORBA exception id: 'IDL:omg.org/CORBA/COMM_FAILURE:1.0' > Warning: AT-SPI error: getRole: Unknown CORBA exception id: 'IDL:omg.org/CORBA/COMM_FAILURE:1.0' >Warning: AT-SPI error: getChildCount: Unknown CORBA exception id: 'IDL:omg.org/CORBA/COMM_FAILURE:1.0' #After that, it lunched itself, and appeared in accerciser again. You means the warnings is the bug? Because the expired result is not given, and I know little about test case. So I don't know if I reproduced the bug. :-(
Let me explain a little bit better how to reproduce the bug: * Edit the file ubuntu-desktop-testing/update-manager/data/update_manager_data.xml adding your root password and save. * Rerun the test * The bug can be reproduced now. Anyway, could attach the log files you get under ~/.ubuntu-desktop-tests/ after that change so we can track it better?
Created attachment 126554 [details] log (In reply to comment #6) > Let me explain a little bit better how to reproduce the bug: > > * Edit the file > ubuntu-desktop-testing/update-manager/data/update_manager_data.xml > adding your root password and save. > > * Rerun the test > > * The bug can be reproduced now. > > Anyway, could attach the log files you get under ~/.ubuntu-desktop-tests/ after > that change so we can track it better? > Thanks for your explainations, I tried as you said. Updata manager was run, download and update. The log was here:
oops, the log says, Application not running :( LdtpExecutionError: u'selectmenuitem failed: Application not running'
I'm able to easily reproduce this with vmware-netcfg utility. Just invoke the application, the existing accessibility info of all applications will be off in accerciser. It will be back, only if we manually select each and every application using alt+tab or click them on taskbar and bring them to focus. Note: You can get this only if you have VMware workstation installed on your Linux environment.
Li, Yue: I'm able to reproduce this scenario easily with the following steps: From command line run this gksu gedit In another command line, I invoked accerciser When I tried accessing accerciser, I could not navigate any of the applications. But it worked for only one time, in that instance, the existing applications that were previously listed in accerciser disappeared. To display them back in the list, I selected each individual application manually and they appear in accerciser. I tested this with Ubuntu 8.10, gnome 2.24.1, accerciser 1.4.0 Please let me know, if you need another information.
Correction in last posting /s/another/any other/ Also in the terminal, where I started accerciser, I notice the following info: Traceback (most recent call last):
+ Trace 211781
consume = client(event) or False
(path and self.model[path][COL_FILLED]):
(In reply to comment #10) > Li, Yue: I'm able to reproduce this scenario easily with the following steps: > > From command line run this > > gksu gedit > > In another command line, I invoked > > accerciser > Is this bug is a duplicate of bug#449159 ?
(In reply to comment #12) > Is this bug is a duplicate of bug#449159 ? > Kind of yes. This is the case even if I use sudo and in /root/.orbitrc I have required entries: ORBIIOPUSock=0 ORBIIOPIPv4=1 Thanks
Things are working fine with gksu-polkit, let me close this bug as duplicate of bug#449159 Thanks *** This bug has been marked as a duplicate of 449159 ***
*** Bug 575273 has been marked as a duplicate of this bug. ***