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

java.math.BigInteger c-tor hangs in JDK1.3C

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description



      Name: akC57697 Date: 05/12/99



       The java.math.BigInteger c-tor hangs in JDK1.3C under solaris and win32.

      --------------------------------8-<---------------------------------
      public class Test {
          public static void main(String[] argv) {
              java.util.Random rnd = new java.util.Random();
              java.math.BigInteger n;

              for (int i = 2; i <= 20; i++) {
                  for (int c = 0; c <= 10; c++) {
                      n = new java.math.BigInteger(i, c, rnd); // Create BigInteger
                  }
              }
              System.out.println("OKAY");
              return;
          }
      }

      --------------------------------8-<---------------------------------
      Output:
      (###@###.###): jdk1.2
      (###@###.###): java Test
      OKAY
      (###@###.###): jdk1.2.2
      (###@###.###): java Test
      OKAY
      (###@###.###): jdk1.3
      (###@###.###): java Test
      ^C

      java full version "JDK-1.3-C"

      (truss -f -l -e -a java Test
      ...
      22793/1: brk(0x00142C98) = 0
      22793/1: brk(0x00146C98) = 0
      22793/1: lseek(4, 2085117, SEEK_SET) = 2085117
      22793/1: read(4, " P K0304\n\0\0\0\0\0\r10".., 63) = 63
      22793/1: lseek(4, 2085180, SEEK_SET) = 2085180
      22793/1: read(4, "CAFEBABE\003\0 -\0EC0380".., 13143) = 13143
      ^C
      )


      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mmcclosksunw Michael Mccloskey (Inactive)
              Reporter:
              akuzminorcl Alexander Kuzmin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: