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 565536 - LDTP server crashed after running update-manager testcase
LDTP server crashed after running update-manager testcase
Status: RESOLVED DUPLICATE of bug 449159
Product: at-spi
Classification: Platform
Component: cbindings
1.24.x
Other All
: Normal critical
: ---
Assigned To: Li Yuan
Li Yuan
: 575273 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-24 06:31 UTC by Ara Pulido
Modified: 2014-11-14 22:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
log (4.09 KB, application/octet-stream)
2009-01-16 05:40 UTC, yue.wang
Details

Description Ara Pulido 2008-12-24 06:31:11 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

Thread 1 (process 8036)

  • #0 __kernel_vsyscall
  • #1 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #2 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #3 g_assertion_message
    from /usr/lib/libglib-2.0.so.0
  • #4 g_assertion_message_expr
    from /usr/lib/libglib-2.0.so.0
  • #5 ??
    from /usr/lib/libcspi.so.0
  • #6 ??
    from /usr/lib/libcspi.so.0
  • #7 g_cclosure_marshal_VOID__POINTER
    from /usr/lib/libgobject-2.0.so.0
  • #8 ??
    from /usr/lib/libgobject-2.0.so.0
  • #9 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #10 ??
    from /usr/lib/libgobject-2.0.so.0
  • #11 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #12 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #13 ??
    from /usr/lib/libspi.so.0
  • #14 _ORBIT_skel_small_Accessibility_EventListener_notifyEvent
    from /usr/lib/libspi.so.0
  • #15 ??
    from /usr/lib/libORBit-2.so.0
  • #16 ORBit_OAObject_invoke
    from /usr/lib/libORBit-2.so.0
  • #17 ORBit_small_invoke_adaptor
    from /usr/lib/libORBit-2.so.0
  • #18 ??
    from /usr/lib/libORBit-2.so.0
  • #19 ??
    from /usr/lib/libORBit-2.so.0
  • #20 giop_thread_queue_process
    from /usr/lib/libORBit-2.so.0
  • #21 ??
    from /usr/lib/libORBit-2.so.0
  • #22 ??
    from /usr/lib/libORBit-2.so.0
  • #23 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #24 ??
    from /usr/lib/libglib-2.0.so.0
  • #25 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #26 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #27 ??
    from /usr/lib/libcspi.so.0
  • #28 SPI_event_main
    from /usr/lib/libcspi.so.0
  • #29 ??
  • #30 __libc_start_main
    from /lib/tls/i686/cmov/libc.so.6
  • #31 ??


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.
Comment 1 Nagappan Alagappan 2008-12-29 23:12:15 UTC
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.
Comment 2 Nagappan Alagappan 2008-12-29 23:15:46 UTC
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 :)
Comment 3 yue.wang 2008-12-31 03:04:04 UTC
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". :-( 
Comment 4 Nagappan Alagappan 2008-12-31 19:12:43 UTC
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
Comment 5 yue.wang 2009-01-15 07:32:42 UTC
(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. :-(
Comment 6 Ara Pulido 2009-01-15 16:14:58 UTC
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? 


Comment 7 yue.wang 2009-01-16 05:40:48 UTC
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:
Comment 8 Nagappan Alagappan 2009-01-16 06:40:22 UTC
oops, the log says, Application not running :(

LdtpExecutionError: u'selectmenuitem failed: Application not running'
Comment 9 Nagappan Alagappan 2009-01-20 02:24:24 UTC
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.
Comment 10 Nagappan Alagappan 2009-01-23 01:28:44 UTC
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.
Comment 11 Nagappan Alagappan 2009-01-23 01:35:57 UTC
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):
  • File "/usr/lib/python2.5/site-packages/pyatspi/registry.py", line 654 in _dispatchEvent
    consume = client(event) or False
  • File "/usr/lib/python2.5/site-packages/accerciser/accessible_treeview.py", line 499 in _accEventChildChanged
    (path and self.model[path][COL_FILLED]):
UnboundLocalError: local variable 'path' referenced before assignment

Comment 12 yue.wang 2009-02-11 06:37:23 UTC
(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 ?

Comment 13 Nagappan Alagappan 2009-02-11 11:54:42 UTC
(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
Comment 14 Nagappan Alagappan 2009-02-13 01:37:01 UTC
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 ***
Comment 15 Magdalen Berns (irc magpie) 2014-11-14 22:00:08 UTC
*** Bug 575273 has been marked as a duplicate of this bug. ***