Bug 229071 - VM crash with screen reader on
Summary: VM crash with screen reader on
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact: Carolyn MacLeod CLA
URL:
Whiteboard:
Keywords: accessibility
Depends on: 364241
Blocks:
  Show dependency tree
 
Reported: 2008-04-28 10:40 EDT by Martin Aeschlimann CLA
Modified: 2017-12-06 03:22 EST (History)
7 users (show)

See Also:


Attachments
Log of Eclipse crash in libgail.so if Assistive Technologies are enabled (85.56 KB, application/octet-stream)
2009-12-16 10:00 EST, nh2 CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2008-04-28 10:40:25 EDT
20080427-2000

Linux GTK, Open Client 2.1

Accessibility testing (screenreader on)
VM crash occurred when opening the new class wizard. Can't reproduce. 

Not sure if its a problem in the screen reader, or SWT. Feel free to close if the information is not helpful enough.

I can also provide the full core dump file (1.1 MB)

------------------------------------------------------------------------
0SECTION       TITLE subcomponent dump routine
NULL           ===============================
1TISIGINFO     signal 11 received 
1TIDATETIME    Date:                 2008/04/28 at 11:42:41
1TIFILENAME    Javacore filename:    /home/aes/I20080427-2000/eclipse/javacore.20080428.114241.4078.txt
NULL           ------------------------------------------------------------------------
0SECTION       XHPI subcomponent dump routine
NULL           ==============================
1HPTIME        Mon Apr 28 11:42:41 2008
1HPSIGRECV     SIGSEGV received in g_list_index at 0xb59b58 in /lib/libglib-2.0.so.0. Processing terminated.
1HPFULLVERSION J2RE 1.4.2 IBM build cxia32142-20070708 (SR9)
NULL           
1HPOPENV       Operating Environment
NULL           ---------------------
2HPHOSTNAME    Host             : paganica.zurich.ibm.com.(none)
2HPOSLEVEL     OS Level         : 2.6.18-53.el5.#1 SMP Wed Oct 10 16:34:02 EDT 2007
2HPLIBCVER     glibc Version    : 2.5
2HPCPUS        Processors -
3HPARCH          Architecture     : (not implemented)
3HPNUMCPUS       How Many         : (not implemented)
3HPCPUSENABLED   Enabled          : 2

...

3HPREGISTERS           Register Values
NULL                   ---------------
3HPREGVALUES            EAX : 00000004, EBX : 0035884C, ECX : 0B8DE9F8
3HPREGVALUES            EDX : 7D7A154D, ESI : FFFFFFFF, EDI : 0B8DE9F8
3HPREGVALUES            EBP : BFF86644, ESP : BFF86644, EIP : 00B59B58
3HPREGVALUES            EFLAGS : 00210202
NULL           
3HPNATIVESTACK         Native Stack of "main" PID 4078
NULL                   -------------------------
3HPSTACKLINE     g_list_index at B59B58 in libglib-2.0.so.0
3HPSTACKLINE     ?? at 343739 in libgail.so
3HPSTACKLINE     atk_object_get_index_in_parent at 5F3372 in libatk-1.0.so.0
3HPSTACKLINE     ?? at 389926 in libspi.so.0
3HPSTACKLINE     _ORBIT_skel_small_Accessibility_Accessible_getIndexInParent at 385B86 in libspi.so.0
3HPSTACKLINE     ?? at 39A35F7 in libORBit-2.so.0
3HPSTACKLINE     ORBit_OAObject_invoke at 39A9765 in libORBit-2.so.0
3HPSTACKLINE     ORBit_small_invoke_adaptor at 3996B0C in libORBit-2.so.0
3HPSTACKLINE     ?? at 39A7326 in libORBit-2.so.0
3HPSTACKLINE     ?? at 39A79D2 in libORBit-2.so.0
3HPSTACKLINE     ?? at 39A8523 in libORBit-2.so.0
3HPSTACKLINE     ORBit_handle_request at 39A9902 in libORBit-2.so.0
3HPSTACKLINE     giop_connection_handle_input at 3992997 in libORBit-2.so.0
3HPSTACKLINE     ?? at 39B04FD in libORBit-2.so.0
3HPSTACKLINE     ?? at 39B33DE in libORBit-2.so.0
3HPSTACKLINE     g_main_context_dispatch at B5C342 in libglib-2.0.so.0
3HPSTACKLINE     ?? at B5F31F in libglib-2.0.so.0
3HPSTACKLINE     g_main_context_iteration at B5F885 in libglib-2.0.so.0
3HPSTACKLINE     Java_org_eclipse_swt_internal_gtk_OS__1g_1main_1context_1iteration at 3E3463F in libswt-pi-gtk-3440.so
3HPSTACKLINE            19DE55F
NULL           

...

3XMTHREADINFO      "main" (TID:1006E1B8, sys_thread_t:8EBB3B0, state:R, native ID:B7F088D0) prio=6
4XESTACKTRACE          at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
4XESTACKTRACE          at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.swt.widgets.Shell.setVisible(Shell.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.swt.widgets.Shell.open(Shell.java:1100)
4XESTACKTRACE          at org.eclipse.jface.window.Window.open(Window.java:797)
4XESTACKTRACE          at org.eclipse.jdt.ui.actions.AbstractOpenWizardAction.run(AbstractOpenWizardAction.java:85)
4XESTACKTRACE          at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
4XESTACKTRACE          at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:582)
4XESTACKTRACE          at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:499)
4XESTACKTRACE          at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:410)
4XESTACKTRACE          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
4XE
Comment 1 Martin Aeschlimann CLA 2008-04-28 12:25:17 EDT
An other crash at an unrelated place but with a similar trace:

3HPNATIVESTACK         Native Stack of "main" PID 32468
NULL                   -------------------------
3HPSTACKLINE            g_list_index at B59B58 in libglib-2.0.so.0
3HPSTACKLINE            ?? at EA6739 in libgail.so
3HPSTACKLINE            atk_object_get_index_in_parent at 5F3372 in libatk-1.0.so.0
3HPSTACKLINE            ?? at 846926 in libspi.so.0
3HPSTACKLINE            _ORBIT_skel_small_Accessibility_Accessible_getIndexInParent at 842B86 in libspi.so.0
3HPSTACKLINE            ?? at 39A35F7 in libORBit-2.so.0
3HPSTACKLINE            ORBit_OAObject_invoke at 39A9765 in libORBit-2.so.0
3HPSTACKLINE            ORBit_small_invoke_adaptor at 3996B0C in libORBit-2.so.0
3HPSTACKLINE            ?? at 39A7326 in libORBit-2.so.0
3HPSTACKLINE            ?? at 39A79D2 in libORBit-2.so.0
3HPSTACKLINE            ?? at 39A8523 in libORBit-2.so.0
3HPSTACKLINE            ORBit_handle_request at 39A9902 in libORBit-2.so.0
3HPSTACKLINE            giop_connection_handle_input at 3992997 in libORBit-2.so.0
3HPSTACKLINE            ?? at 39B04FD in libORBit-2.so.0
3HPSTACKLINE            ?? at 39B33DE in libORBit-2.so.0
3HPSTACKLINE            g_main_context_dispatch at B5C342 in libglib-2.0.so.0
3HPSTACKLINE            ?? at B5F31F in libglib-2.0.so.0
3HPSTACKLINE            g_main_context_iteration at B5F885 in libglib-2.0.so.0
3HPSTACKLINE            link_main_iteration at 39AECD7 in libORBit-2.so.0
3HPSTACKLINE            giop_recv_buffer_get at 3992177 in libORBit-2.so.0
3HPSTACKLINE            ORBit_small_invoke_stub at 39963BD in libORBit-2.so.0
3HPSTACKLINE            ORBit_small_invoke_stub_n at 39965BE in libORBit-2.so.0
3HPSTACKLINE            ORBit_c_stub_invoke at 39A3822 in libORBit-2.so.0
3HPSTACKLINE            Accessibility_EventListener_notifyEvent at 834674 in libspi.so.0
3HPSTACKLINE            ?? at 17C7DD in libatk-bridge.so
3HPSTACKLINE            ?? at 17D5CC in libatk-bridge.so
3HPSTACKLINE            ?? at D15C5E in libgobject-2.0.so.0
3HPSTACKLINE            g_signal_emit_valist at D1737F in libgobject-2.0.so.0
3HPSTACKLINE            g_signal_emit at D17539 in libgobject-2.0.so.0
3HPSTACKLINE            atk_object_notify_state_change at 5F2B28 in libatk-1.0.so.0
3HPSTACKLINE            ?? at EA5501 in libgail.so
3HPSTACKLINE            ?? at EA47A1 in libgail.so
3HPSTACKLINE            g_cclosure_marshal_VOID__PARAM at D11979 in libgobject-2.0.so.0
3HPSTACKLINE            g_closure_invoke at D04F0B in libgobject-2.0.so.0
3HPSTACKLINE            ?? at D15E83 in libgobject-2.0.so.0
3HPSTACKLINE            g_signal_emit_valist at D1737F in libgobject-2.0.so.0
3HPSTACKLINE            g_signal_emit at D17539 in libgobject-2.0.so.0
3HPSTACKLINE            ?? at D092E1 in libgobject-2.0.so.0
3HPSTACKLINE            ?? at D05CCF in libgobject-2.0.so.0
3HPSTACKLINE            g_object_notify at D0AE92 in libgobject-2.0.so.0
3HPSTACKLINE            gtk_widget_set_sensitive at 38269BB in libgtk-x11-2.0.so.0
3HPSTACKLINE            Java_org_eclipse_swt_internal_gtk_OS__1gtk_1widget_1set_1sensitive at 2085568 in libswt-pi-gtk-3440.so
3HPSTACKLINE            2245DDF
N

3XMTHREADINFO      "main" (TID:1006E1B8, sys_thread_t:9AABCE0, state:R, native ID:B7F228D0) prio=6
4XESTACKTRACE          at org.eclipse.swt.internal.gtk.OS._gtk_widget_set_sensitive(Native Method)
4XESTACKTRACE          at org.eclipse.swt.internal.gtk.OS.gtk_widget_set_sensitive(OS.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.swt.widgets.MenuItem.setEnabled(MenuItem.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.jface.action.ActionContributionItem.update(ActionContributionItem.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.jface.action.ActionContributionItem.actionPropertyChange(ActionContributionItem.java:174)
4XESTACKTRACE          at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:168)
4XESTACKTRACE          at org.eclipse.jface.action.ActionContributionItem$2.propertyChange(ActionContributionItem.java:135)
4XESTACKTRACE          at org.eclipse.jface.action.AbstractAction.firePropertyChange(AbstractAction.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.jface.action.AbstractAction.firePropertyChange(AbstractAction.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.jface.action.Action.setEnabled(Action.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.ui.internal.actions.CommandAction$1.commandChanged(CommandAction.java:96)
4XESTACKTRACE          at org.eclipse.core.commands.Command$1.run(Command.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.core.commands.Command.fireCommandChanged(Command.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.core.commands.Command.access$0(Command.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.core.commands.Command$2.handlerChanged(Command.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.core.commands.AbstractHandler.fireHandlerChanged(AbstractHandler.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.ui.internal.handlers.HandlerProxy.access$0(HandlerProxy.java:1)
4XESTACKTRACE          at org.eclipse.ui.internal.handlers.HandlerProxy$1.propertyChange(HandlerProxy.java:245)
4XESTACKTRACE          at org.eclipse.ui.internal.services.EvaluationAuthority.firePropertyChange(EvaluationAuthority.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.ui.internal.services.EvaluationAuthority.refsWithSameExpression(EvaluationAuthority.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.ui.internal.services.EvaluationAuthority.sourceChanged(EvaluationAuthority.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.ui.AbstractSourceProvider.fireSourceChanged(AbstractSourceProvider.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.ui.internal.services.ActiveShellSourceProvider.access$13(ActiveShellSourceProvider.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.ui.internal.services.ActiveShellSourceProvider$3.handleEvent(ActiveShellSourceProvider.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.swt.widgets.Display.filterEvent(Display.java(Compiled Code))
4XESTACKTRACE          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
4XESTAC
Comment 2 nh2 CLA 2009-12-16 09:57:03 EST
The same problem with Eclipse 3.5 in Aptana Studio.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb401d8e2, pid=7473, tid=3086378688
#
# JRE version: 6.0-b16
# Java VM: OpenJDK Client VM (14.0-b16 mixed mode, sharing linux-x86 )
# Distribution: Ubuntu karmic (development branch), package 6b16-1.6.1-1ubuntu3
# Problematic frame:
# C  [libgail.so+0x388e2]
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Full error log attached. Only happens if Assistive Technologies in System Settings.
Seems to be a similar problem like Bug 291128.
Comment 3 nh2 CLA 2009-12-16 10:00:06 EST
Created attachment 154566 [details]
Log of Eclipse crash in libgail.so if Assistive Technologies are enabled
Comment 4 jose vilmar estacio de souza CLA 2009-12-16 10:24:31 EST
I'm not sure if there is any relationship, but I can not finish the eclipse if the assistive technologies are enabled. After I close eclipse, I need to kill eclipse and java.
Comment 5 jose vilmar estacio de souza CLA 2009-12-16 14:34:01 EST
Actually I am running version 3.6 M4 and everytime I close eclipse eclipse doesn't finish. Also the VM doesn't finish too. I need to kill both, eclipse end java. The same happens with eclipse 3.5 and 3.4.
Comment 6 Carolyn MacLeod CLA 2009-12-16 14:55:59 EST
I am not going to be able to look at this until January.
I have set the target milestone to 3.6.
Comment 7 Silenio Quarti CLA 2010-01-14 14:33:13 EST
(In reply to comment #2)
> The same problem with Eclipse 3.5 in Aptana Studio.
> 
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0xb401d8e2, pid=7473, tid=3086378688
> #
> # JRE version: 6.0-b16
> # Java VM: OpenJDK Client VM (14.0-b16 mixed mode, sharing linux-x86 )
> # Distribution: Ubuntu karmic (development branch), package 6b16-1.6.1-1ubuntu3
> # Problematic frame:
> # C  [libgail.so+0x388e2]
> #
> # If you would like to submit a bug report, please include
> # instructions how to reproduce the bug and visit:
> #   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
> # The crash happened outside the Java Virtual Machine in native code.
> # See problematic frame for where to report the bug.
> #
> 
> Full error log attached. Only happens if Assistive Technologies in System
> Settings.
> Seems to be a similar problem like Bug 291128.

I release the fix for bug#291128 to 3.5.2. Please try the next maintenance build. Maybe it fixes this problem as well. It is hard to tell since there is no steps to reproduce this one.
Comment 8 Carolyn MacLeod CLA 2010-06-03 14:35:26 EDT
We will look again at these crashes and hangs for 3.7, however if anyone has any steps to repeat in 3.6, then please list them here.

Regarding the hang on exit mentioned in comment 4 and comment 5, this hang does not happen if an IBM Java VM is used, so there is some interaction somewhere in the Sun Java VM shutdown sequence. I read that a VM can hang if System.exit() is called from a shutdown hook, so that might be one thing we look for. (They are supposed to call Runtime.halt() from a shutdown hook. I don't know if or how many shutdown hooks Eclipse has).

http://dtm.livejournal.com/29433.html
http://codeidol.com/java/java-concurrency/Cancellation-and-Shutdown/JVM-Shutdown/
Comment 9 Carolyn MacLeod CLA 2012-06-03 16:57:16 EDT
Jose, I saw your comment on the Orca list that you no longer have the Sun JVM hanging on exit when you use Eclipse 3.7 on Ubuntu 11.10 and Ubuntu 12.04. Which Sun VM version are you using?
Comment 10 jose vilmar estacio de souza CLA 2012-06-03 18:47:40 EDT
(In reply to comment #9)
> Jose, I saw your comment on the Orca list that you no longer have the Sun JVM
> hanging on exit when you use Eclipse 3.7 on Ubuntu 11.10 and Ubuntu 12.04.
> Which Sun VM version are you using?

java version "1.6.0_31"
Comment 11 Alexander Kurtakov CLA 2017-12-06 03:22:27 EST
Eclipse a117 under linux have changed significantly and I can't reproduce this issue. Please reopen if you can reproduce it with latest SWT.