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 751053 - SwingSet2 crashes when Orca is switched off.
SwingSet2 crashes when Orca is switched off.
Status: RESOLVED FIXED
Product: java-atk-wrapper
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Magdalen Berns (irc magpie)
java-atk-wrapper maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-06-16 15:21 UTC by Magdalen Berns (irc magpie)
Modified: 2015-07-07 19:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix bug (1.84 KB, patch)
2015-06-17 13:29 UTC, Magdalen Berns (irc magpie)
committed Details | Review

Description Magdalen Berns (irc magpie) 2015-06-16 15:21:46 UTC
To reproduce:

 1. Run SwingSet2
 2. Switch the screenreader on
 3. Check out SwingSet2
 4. Switch the screeenreader off

Expected result:
 
 4. SwingSet2 continues running as accessible app with screenreader off

Actual result:

 4. Causes SwingSet2 to crash with a SIGSEGV

Trace:

  • #0 g_int_hash
  • #1 g_hash_table_lookup
  • #2 jaw_util_remove_global_event_listener
    at jawutil.c line 147
  • #3 spi_atk_deregister_event_listeners
  • #4 signal_filter
  • #5 dbus_connection_dispatch
  • #6 message_queue_dispatch
  • #7 g_main_context_dispatch
  • #8 g_main_context_iterate.isra
  • #9 g_main_loop_run
  • #10 jni_loop_callback
    at AtkWrapper.c line 76
  • #11 g_thread_proxy
  • #12 start_thread
  • #13 clone

Comment 1 Magdalen Berns (irc magpie) 2015-06-17 13:29:33 UTC
Created attachment 305473 [details] [review]
patch to fix bug

Tested this and "only" 1/5 tests resulted in a crash. I am not sure whether I had cleaned the libraries properly for that test which failed, so I'll leave this bug open just in case there is more to do.
Comment 2 Jose Vilmar Estacio de Souza 2015-06-22 08:01:00 UTC
This bug is present in my environment and is reproducible every time 
I restart orca.
I am sending a trace.

vilmar@jve:~/java-atk-wrapper[vilmar@jve java-atk-wrapper]$ coredumpctl  gdb 19509
           PID: [1;39m19509[0m (java)
           UID: 1000 (vilmar)
           GID: 1000 (vilmar)
        Signal: 6 (ABRT)
     Timestamp: Mon 2015-06-22 04:52:59 BRT (1min 40s ago)
  Command Line: java -jar SwingSet2.jar
    Executable: [1;39m/usr/lib/jvm/java-7-jdk/jre/bin/java[0m
 Control Group: /user.slice/user-1000.slice/session-c4.scope
          Unit: session-c4.scope
         Slice: user-1000.slice
       Session: c4
     Owner UID: 1000 (vilmar)
       Boot ID: 742123671cc3474a8026a5e0a2c447a5
    Machine ID: bb106a91062544e595ca975c0fb2973f
      Hostname: jve
      Coredump: /var/lib/systemd/coredump/core.java.1000.742123671cc3474a8026a5e0a2c447a5.19509.1434959579000000.lz4
       Message: Process 19509 (java) of user 1000 dumped core.

GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/jvm/java-7-jdk/jre/bin/java...(no debugging symbols found)...done.
[New LWP 19530]
[New LWP 19532]
[New LWP 19520]
[New LWP 19511]
[New LWP 19535]
[New LWP 19513]
[New LWP 19512]
[New LWP 19515]
[New LWP 19528]
[New LWP 19514]
[New LWP 19522]
[New LWP 19517]
[New LWP 19527]
[New LWP 19519]
[New LWP 19529]
[New LWP 19521]
[New LWP 19531]
[New LWP 19509]
[New LWP 19518]
[New LWP 19524]
[New LWP 19516]
[New LWP 19523]
[New LWP 19525]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `java -jar SwingSet2.jar'.
Program terminated with signal SIGABRT, Aborted.
  • #0 raise
    from /usr/lib/libc.so.6
  • #0 raise
    from /usr/lib/libc.so.6
  • #1 abort
    from /usr/lib/libc.so.6
  • #2 ??
    from /usr/lib/jvm/java-7-jdk/jre/lib/amd64/server/libjvm.so
  • #3 ??
    from /usr/lib/jvm/java-7-jdk/jre/lib/amd64/server/libjvm.so
  • #4 JVM_handle_linux_signal
    from /usr/lib/jvm/java-7-jdk/jre/lib/amd64/server/libjvm.so
  • #5 <signal handler called>
  • #6 g_int_hash
    from /usr/lib/libglib-2.0.so.0
  • #7 g_hash_table_lookup
    from /usr/lib/libglib-2.0.so.0
  • #8 jaw_util_remove_global_event_listener
    at jawutil.c line 147
  • #9 ??
    from /usr/lib/libatk-bridge-2.0.so.0
  • #10 ??
    from /usr/lib/libatk-bridge-2.0.so.0
  • #11 dbus_connection_dispatch
    from /usr/lib/libdbus-1.so.3
  • #12 ??
    from /usr/lib/libatspi.so.0
  • #13 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #14 ??
    from /usr/lib/libglib-2.0.so.0
  • #15 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #16 jni_loop_callback
  • #17 ??
    from /usr/lib/libglib-2.0.so.0
  • #18 start_thread
    from /usr/lib/libpthread.so.0
  • #19 clone
    from /usr/lib/libc.so.6

Comment 3 Magdalen Berns (irc magpie) 2015-07-07 18:10:19 UTC
(In reply to Jose Vilmar Estacio de Souza from comment #2)
> This bug is present in my environment and is reproducible every time 
> I restart orca.
> I am sending a trace.

Thanks for the update. Would you mind applying attachment 307027 [details] [review] and letting me know if this allows you to to turn orca off without the wrapper crashing? The patch for bug 751267 seems to fix this issue for me.
Comment 4 Jose Vilmar Estacio de Souza 2015-07-07 19:31:19 UTC
(In reply to Magdalen Berns (irc magpie) from comment #3)
> Thanks for the update. Would you mind applying attachment 307027 [details] [review]
> [review] and letting me know if this allows you to to turn orca off without
> the wrapper crashing? The patch for bug 751267 seems to fix this issue for
> me.

After apply  attachment 307027 [details] [review], I can restart orca without crashes in the wrapper.
I tried to restart orca at least 10 times without a crash.
Comment 5 Magdalen Berns (irc magpie) 2015-07-07 19:44:44 UTC
(In reply to Jose Vilmar Estacio de Souza from comment #4)
> (In reply to Magdalen Berns (irc magpie) from comment #3)
> > Thanks for the update. Would you mind applying attachment 307027 [details] [review] [review]
> > [review] and letting me know if this allows you to to turn orca off without
> > the wrapper crashing? The patch for bug 751267 seems to fix this issue for
> > me.
> 
> After apply  attachment 307027 [details] [review] [review], I can restart orca
> without crashes in the wrapper.
> I tried to restart orca at least 10 times without a crash.

Great. Thanks for confirming! I shall close this now attachment 307027 [details] [review] has been pushed to master.

Thanks again!