Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-1895

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Classlib
    • None
    • 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.

      Attachments

        1. H-1895.ClassTest.patch
          1 kB
          Alexey Varlamov

        Issue Links

          Activity

            People

              nbeyer Nathan Beyer
              varlax Alexey Varlamov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: