Harmony
  1. Harmony
  2. HARMONY-1895

[classlib] [luni/tests] endless recursion in ClassTest.test_getClasses_subtest0

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Environment:
      DRLVM

      Description

      The test_getClasses_subtest0 in modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ClassTest.java leads to endless recursion on DRLVM, because of the following:
      The test tries to detect presence of privileged frames on stack during various calls to SecurityManager, via calling AccessController.checkPermission(). If the latter happens to invoke any code guarded by security checks in a privileged block, it will loop endlessly (actually until stack space exhausted, but this may take very long).
      We have exactly this sutiation in DRLVM, due to lazy loading of security policy and AccessController impl nuances.

        Issue Links

          Activity

          Alexey Varlamov created issue -
          Alexey Varlamov made changes -
          Field Original Value New Value
          Link This issue is part of HARMONY-1688 [ HARMONY-1688 ]
          Alexey Varlamov made changes -
          Attachment H-1895.ClassTest.patch [ 12343070 ]
          Nathan Beyer made changes -
          Assignee Nathan Beyer [ nbeyer ]
          Nathan Beyer made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Alexei Fedotov made changes -
          Link This issue is duplicated by HARMONY-1956 [ HARMONY-1956 ]
          Alexey Varlamov made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Nathan Beyer
              Reporter:
              Alexey Varlamov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development