[Bug 381] New: Stackoverflow error with security manager and signed jars

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Thu Aug 20 10:43:12 PDT 2009


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=381

           Summary: Stackoverflow error with security manager and signed
                    jars
           Product: IcedTea
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: IcedTea
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: anilsaldhana at gmail.com


With signed jars and when you start the JVM with security manager enabled, the
following recursion is shown with -Djava.security.debug=access,failure,debug

=============================
<posting bottm of the stack trace which runs into pages>

        at java.lang.StringBuilder.append(StringBuilder.java:132)
        at sun.security.provider.PolicyFile.printPD(PolicyFile.java:1865)
        at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1228)
        at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1183)
        at sun.security.provider.PolicyFile.implies(PolicyFile.java:1138)
        at java.security.ProtectionDomain.implies(ProtectionDomain.java:229)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:320)
        at
java.security.AccessController.checkPermission(AccessController.java:553)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
        at java.io.File.exists(File.java:748)
        at
sun.util.calendar.ZoneInfoFile.readZoneInfoFile(ZoneInfoFile.java:1034)
        at sun.util.calendar.ZoneInfoFile.createZoneInfo(ZoneInfoFile.java:575)
        at sun.util.calendar.ZoneInfoFile.getZoneInfo(ZoneInfoFile.java:545)
        at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:600)
        at java.util.TimeZone.getTimeZone(TimeZone.java:486)
        at java.util.TimeZone.setDefaultZone(TimeZone.java:583)
        at java.util.TimeZone.getDefaultRef(TimeZone.java:550)
        at java.util.Date.normalize(Date.java:1193)
        at java.util.Date.toString(Date.java:1027)
        at
sun.security.x509.CertificateValidity.toString(CertificateValidity.java:137)
        at sun.security.x509.X509CertInfo.toString(X509CertInfo.java:310)
        at sun.security.x509.X509CertImpl.toString(X509CertImpl.java:763)
        at java.lang.String.valueOf(String.java:2838)
        at java.lang.StringBuilder.append(StringBuilder.java:132)
        at java.security.CodeSource.toString(CodeSource.java:465)
        at java.lang.String.valueOf(String.java:2838)
        at java.lang.StringBuilder.append(StringBuilder.java:132)
        at sun.security.provider.PolicyFile.printPD(PolicyFile.java:1865)
        at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1228)
        at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1183)
        at sun.security.provider.PolicyFile.implies(PolicyFile.java:1138)
        at java.security.ProtectionDomain.implies(ProtectionDomain.java:229)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:320)
        at
java.security.AccessController.checkPermission(AccessController.java:553)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
        at java.io.File.exists(File.java:748)
        at
sun.util.calendar.ZoneInfoFile.readZoneInfoFile(ZoneInfoFile.java:1034)
        at sun.util.calendar.ZoneInfoFile.createZoneInfo(ZoneInfoFile.java:575)
        at sun.util.calendar.ZoneInfoFile.getZoneInfo(ZoneInfoFile.java:545)
        at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:600)
        at java.util.TimeZone.getTimeZone(TimeZone.java:486)
        at java.util.TimeZone.setDefaultZone(TimeZone.java:583)
        at java.util.TimeZone.getDefaultRef(TimeZone.java:550)
        at java.util.Date.normalize(Date.java:1193)
        at java.util.Date.toString(Date.java:1027)
        at
sun.security.x509.CertificateValidity.toString(CertificateValidity.java:137)
        at sun.security.x509.X509CertInfo.toString(X509CertInfo.java:310)
        at sun.security.x509.X509CertImpl.toString(X509CertImpl.java:763)
        at java.lang.String.valueOf(String.java:2838)
        at java.lang.StringBuilder.append(StringBuilder.java:132)
        at java.security.CodeSource.toString(CodeSource.java:465)
        at java.lang.String.valueOf(String.java:2838)
        at java.lang.StringBuilder.append(StringBuilder.java:132)
        at sun.security.provider.PolicyFile.printPD(PolicyFile.java:1865)
        at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1228)
        at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1183)
        at sun.security.provider.PolicyFile.implies(PolicyFile.java:1138)
        at java.security.ProtectionDomain.implies(ProtectionDomain.java:229)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:320)
        at
java.security.AccessController.checkPermission(AccessController.java:553)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
        at java.io.File.exists(File.java:748)
        at
sun.util.calendar.ZoneInfoFile.readZoneInfoFile(ZoneInfoFile.java:1034)
        at sun.util.calendar.ZoneInfoFile.createZoneInfo(ZoneInfoFile.java:575)
        at sun.util.calendar.ZoneInfoFile.getZoneInfo(ZoneInfoFile.java:545)
        at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:600)
        at java.util.TimeZone.getTimeZone(TimeZone.java:486)
        at java.util.TimeZone.setDefaultZone(TimeZone.java:583)
        at java.util.TimeZone.getDefaultRef(TimeZone.java:550)
        at java.util.Date.normalize(Date.java:1193)
        at java.util.Date.toString(Date.java:1027)
        at
sun.security.x509.CertificateValidity.toString(CertificateValidity.java:137)
        at sun.security.x509.X509CertInfo.toString(X509CertInfo.java:310)
        at sun.security.x509.X509CertImpl.toString(X509CertImpl.java:763)
        at java.lang.String.valueOf(String.java:2838)
        at java.lang.StringBuilder.append(StringBuilder.java:132)
        at java.security.CodeSource.toString(CodeSource.java:465)
        at java.lang.String.valueOf(String.java:2838)
        at java.lang.StringBuilder.append(StringBuilder.java:132)
        at sun.security.provider.PolicyFile.printPD(PolicyFile.java:1865)
        at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1228)
        at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1183)
        at sun.security.provider.PolicyFile.implies(PolicyFile.java:1138)
        at java.security.ProtectionDomain.implies(ProtectionDomain.java:229)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:320)
        at
java.security.AccessController.checkPermission(AccessController.java:553)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
        at java.io.File.exists(File.java:748)
        at
sun.util.calendar.ZoneInfoFile.readZoneInfoFile(ZoneInfoFile.java:1034)
        at sun.util.calendar.ZoneInfoFile.createZoneInfo(ZoneInfoFile.java:575)
        at sun.util.calendar.ZoneInfoFile.getZoneInfo(ZoneInfoFile.java:545)
        at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:600)
        at java.util.TimeZone.getTimeZone(TimeZone.java:486)
        at java.util.TimeZone.setDefaultZone(TimeZone.java:583)
        at java.util.TimeZone.getDefaultRef(TimeZone.java:550)
        at java.util.Date.normalize(Date.java:1193)
        at java.util.Date.toString(Date.java:1027)
        at
sun.security.x509.CertificateValidity.toString(CertificateValidity.java:137)
        at sun.security.x509.X509CertInfo.toString(X509CertInfo.java:310)
        at sun.security.x509.X509CertImpl.toString(X509CertImpl.java:763)
        at java.lang.String.valueOf(String.java:2838)
        at java.lang.StringBuilder.append(StringBuilder.java:132)
        at java.security.CodeSource.toString(CodeSource.java:465)
        at java.lang.String.valueOf(String.java:2838)
        at java.lang.StringBuilder.append(StringBuilder.java:132)
        at sun.security.provider.PolicyFile.printPD(PolicyFile.java:1865)
        at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1228)
        at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1183)
        at sun.security.provider.PolicyFile.implies(PolicyFile.java:1138)
        at java.security.ProtectionDomain.implies(ProtectionDomain.java:229)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:320)
        at
java.security.AccessController.checkPermission(AccessController.java:553)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
        at java.io.File.exists(File.java:748)
        at
sun.util.calendar.ZoneInfoFile.readZoneInfoFile(ZoneInfoFile.java:1034)
        at sun.util.calendar.ZoneInfoFile.createZoneInfo(ZoneInfoFile.java:575)


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list