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

Redefine class corrupts the Java stack frames.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0_01
    • vm-legacy
    • None
    • sparc
    • solaris_2.6


      The stack frame get corrupted after the redefine class.

      Java code on the stack before Redefine Class.

        [14] 0xf9c2b930(0xf18bd2f0, 0xf18bd2f0, 0x4, 0xf9c286ac, 0x8, 0xffbedd20), at 0xf9c2b92f
        [15] 0xf9d4fc34(0xf18bd2f0, 0xf59bf0e0, 0x3, 0xf18bcf58, 0x9, 0x1), at 0xf9d4fc33
        [16] 0xf9dd7968(0xf18bd2f0, 0xf18bd120, 0xffffffff, 0xffffffff, 0xffffffff, 0x1), at 0xf9dd7967
        [17] 0xf9d49900(0xf18bd2f0, 0xf18bd2d8, 0xf591d298, 0xf591d2c8, 0xf591d298, 0x67), at 0xf9d498ff
        [18] 0xf9c00528(0xffbedfdc, 0xffbee2d0, 0xa, 0xf591cdd8, 0xf9c0d7ac, 0xffbee1c8), at 0xf9c00527

      Stack frame after redefine class:

        [14] 0xf9c2b930(0xf18bd2f0, 0xf18bd2f0, 0x4, 0xf9c286ac, 0x8, 0xffbedd20), at 0xf9c2b92f
        [15] 0xf9cb8b98(0xf18bd2f0, 0xf59bf0e0, 0x3, 0xf18bcf58, 0x9, 0xffbeddb0), at 0xf9cb8b97
        [16] 0xf9cb8b98(0xf18bd2f0, 0xf18bd120, 0xffffffff, 0xffffffff, 0xffffffff, 0xffbede48), at 0xf9cb8b97
        [17] 0xf9cb8b98(0xf18bd2f0, 0xf18bd2d8, 0xf591d298, 0xf591d2c8, 0xf591d298, 0xffbedef0), at 0xf9cb8b97
        [18] 0xf9c00528(0xffbedfdc, 0xffbee2d0, 0xa, 0xf591cdd8, 0xf9c0d7ac, 0xffbee1c8), at 0xf9c00527

      This stack corruption leads to JVM core dump.

      This problem is reproduced using JDB and with a simple Java program.
      The shell script attached with bug report can reproduce this problem.

            Unassigned Unassigned
            swamyv Swamy Venkataramanappa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: