Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6860824

serialized object causes StackOverflowError independently of -Xss setting on Windows

XMLWordPrintable

      J2RE 1.4.2 Update 13, 19, and 21 gives java.lang.StackOverflowError, when
      trying to deserialize a serialized object, independently of -Xss setting.

      The issue is strictly reproducible on Windows platform:
       
      > java -Xss20m -classpath ./classes;./lib/jaxrpc-api.jar;./lib/s
      ap.com~xapps~osp~infra~ejbmodule_assembly.jar;./lib/sap.com~xapps~osp~infra~serv
      ices~ejbmodule.jar;./lib/sap.com~xapps~osp~itemhandler~ejbmodule.jar;./lib/webse
      rvices_api.jar;./lib/sap.com~xapps~osp~formatter~wsproxy.jar;./lib/webservices_l
      ib.jar;./lib/logging.jar;./lib/exception.jar;./lib/sapxmltoolkit.jar test.jms.De
      serializeTest 11470100_bad.ser
      Exception in thread "main" java.lang.StackOverflowError
             at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
             at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
             at java.io.ObjectInputStream$BlockDataInputStream.readInt(Unknown Source
      )
             at java.io.ObjectInputStream.readHandle(Unknown Source)
             at java.io.ObjectInputStream.readClassDesc(Unknown Source)
             at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
             at java.io.ObjectInputStream.readObject0(Unknown Source)
             at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
             at java.io.ObjectInputStream.readSerialData(Unknown Source)
             at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
             at java.io.ObjectInputStream.readObject0(Unknown Source)
             at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
             at java.io.ObjectInputStream.readSerialData(Unknown Source)
             at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
             at java.io.ObjectInputStream.readObject0(Unknown Source)
             at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
             at java.io.ObjectInputStream.readSerialData(Unknown Source)
      [ ... ]
      >

            miroslawzn Miroslaw Niemiec (Inactive)
            thlenz Thomas Lenz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: