<AWT Dev> [8] Review request for 8005607: Recursion in J2DXErrHandler() Causes a Stack Overflow on Linux
Anton Litvinov
anton.litvinov at oracle.com
Sat Dec 29 05:44:12 PST 2012
Hello,
Please review the following fix for a bug.
Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8005607
https://jbs.oracle.com/bugs/browse/JDK-8005607
Webrev: http://cr.openjdk.java.net/~alitvinov/8005607/webrev.00
The bug consists in a crash which is caused by a stack overflow for the
reason of an infinite recursion in AWT native function J2DXErrHandler()
under certain circumstances on 32-bit Linux OS. The fix is based on
introduction of the logic, which detects indirect recursive calls to
J2DXErrHandler() by means of a simple counter, to J2DXErrHandler()
native function. Such a solution requires minimum code changes, does not
alter the handler's code significantly and eliminates this bug.
Adding 2d-dev at openjdk.java.net e-mail alias to the list of recipients of
this letter, because the edited function's name is related to Java 2D
area of JDK, despite of the fact that the edited file is located in AWT
directory.
Thank you,
Anton
More information about the awt-dev
mailing list