<AWT Dev> [9] Review Request: 8032864 [macosx] sigsegv (0Xb) Being Generated When Starting JDev With Voiceover Running

Petr Pchelko petr.pchelko at oracle.com
Thu Jul 10 13:02:53 UTC 2014


Hello, AWT team.

Please review a small fix for the issue:
https://bugs.openjdk.java.net/browse/JDK-8032864
The fix is available at:
http://cr.openjdk.java.net/~pchelko/9/8032864/webrev.01/

I failed to create a general fix for the core problem, so I've made a point fix for this bug. The problem is that CAccessible.getFocusOwner opens a nested loop and goes to EDT. 
This leads to some unknown reordering of selectors, and we crash. retain/releasing the window around the call to getFocusOwner fixes this particular bug. 
I've trued to make a minimal fix as it needs to be backported to 8 and 7. I've checked for memory leaks using Instruments.

With best regards. Petr.


More information about the awt-dev mailing list