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

javac core dumps without source code

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.5, 1.1.6
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description

      The javac compiler (jdk1.1.5K Reference Implementation) core dumps on Solaris 2.5.1 Hw 11/97 with Fall 98 suggested patches, even without java source code:

      $ /home/utenti/corba/JAVA/jdk1.1.5/bin/javac
           
                SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_MAPERR [addr: 0x6a617661]

              stackbase=EFFFF660, stackpointer=EFFFF408

      Full thread dump:
          "Finalizer thread" (TID:0xee598220, sys_thread_t:0xee2c1db8, state:R) prio=1
          "Async Garbage Collector" (TID:0xee598268, sys_thread_t:0xee2f1db8, state:R) prio=1
          "Idle thread" (TID:0xee5982b0, sys_thread_t:0xee3c1db8, state:R) prio=0
          "Clock" (TID:0xee598088, sys_thread_t:0xee3f1db8, state:CW) prio=12
          "main" (TID:0xee5980b0, sys_thread_t:0x91a80, state:R) prio=5 *current thread*
              sun.io.CharToByteConverter.<init>(CharToByteConverter.java)
              sun.io.CharToByte8859_1.<init>(CharToByte8859_1.java:26)
              sun.io.CharToByteConverter.getConverter(CharToByteConverter.java)
              sun.io.CharToByteConverter.getDefault(CharToByteConverter.java)
              java.io.OutputStreamWriter.<init>(OutputStreamWriter.java)
              java.io.PrintStream.<init>(PrintStream.java)
              java.lang.System.initializeSystemClass(System.java)
      Monitor Cache Dump:
          java.lang.Class@EE598708/EE737860: owner "main" (0x91a80, 1 entry)
      Registered Monitor Dump:
          Thread queue lock: <unowned>
          Name and type hash table lock: owner "main" (0x91a80, 1 entry)
          String intern lock: <unowned>
          JNI pinning lock: <unowned>
          JNI global reference lock: <unowned>
          BinClass lock: <unowned>
          Class loading lock: <unowned>
          Java stack lock: <unowned>
          Code rewrite lock: <unowned>
          Heap lock: <unowned>
          Has finalization queue lock: <unowned>
          Finalize me queue lock: <unowned>
          Monitor IO lock: <unowned>
          Child death monitor: <unowned>
          Event monitor: <unowned>
          I/O monitor: <unowned>
          Alarm monitor: <unowned>
              Waiting to be notified:
                  "Clock" (0xee3f1db8)
          Sbrk lock: <unowned>
          Monitor registry: owner "main" (0x91a80, 1 entry)
      Thread Alarm Q:
      Abort - core dumped


      This is the stack from a Sun SparcStation 20 installation:

      % file core
      core: ELF 32-bit MSB core file SPARC Version 1, from 'java'
      % setenv LD_LIBRARY_PATH /export/home/claudiom/Java/jdk1.1.5/lib/sparc/green_threads:$LD_LIBRARY_PATH
      % unsetenv CLASSPATH
      % unsetenv JAVA_HOME
      % unsetenv THREADS_FLAG
      % /opt/SUNWspro/bin/dbx /export/home/claudiom/Java/jdk1.1.5/bin/sparc/green_threads/java /home/claudiom/Test/CSI/6284292/core
      ...
      To suppress this message, add the following line to your .dbxrc file:

              dbxenv suppress_startup_message 4.0
      Reading symbolic information for java
      core file header read successfully
      Reading symbolic information for rtld /usr/lib/ld.so.1
      Reading symbolic information for libjava.so
      Reading symbolic information for libm.so.1
      Reading symbolic information for libdl.so.1
      Reading symbolic information for libX11.so.4
      Reading symbolic information for libsocket.so.1
      Reading symbolic information for libnsl.so.1
      Reading symbolic information for libc.so.1
      Reading symbolic information for libXext.so.0
      Reading symbolic information for libw.so.1
      Reading symbolic information for libintl.so.1
      Reading symbolic information for libmp.so.1
      dbx: can't open /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
      program terminated by signal ABRT (Abort)
      (/opt/SUNWspro/bin/dbx) where
      =>[1] ___lwp_cond_wait(0x0, 0x6, 0x0, 0xeffff428, 0x0, 0x0), at 0xef4b9a04
        [2] sysAbort(0x0, 0xeffff6e8, 0xefffede8, 0xb, 0x0, 0x0), at 0xef70b598
        [3] _libc_sigaction(0xb, 0xeffff0a0, 0xefffede8, 0xee59d930, 0x0, 0xffffffff), at 0xef4b8df8
        [4] Locked_ResolveClassConstant(0x364, 0xef72dc48, 0xd9, 0xef72dc48, 0xd7278, 0xd6bf4), at 0xef6ccbdc
        [5] Locked_ResolveClassConstantField(0xa, 0xee59bbf0, 0xd6ab0, 0x44, 0xef72dc48, 0xd6ca8), at 0xef6ccc88
        [6] Locked_ResolveClassConstant(0xee59bbf0, 0xef72dc48, 0x7e, 0xef72dc48, 0xd7278, 0xd6ab0), at 0xef6ccbfc
        [7] ResolveClassConstant(0xd6ab0, 0xee59bbf0, 0x7e, 0x400, 0x400, 0xef72dc48), at 0xef6cc890
        [8] ResolveClassConstantFromPC(0x7e, 0xb8, 0xd6ab0, 0xef72dc48, 0x400, 0xb8), at 0xef6e7840
        [9] invokestatic_0(0xd8d3a, 0xef72dc48, 0x24080, 0x24038, 0xd6ab0, 0x24050), at 0xef718710
        [10] do_execute_java_method_vararg(0xef72dc48, 0xd7b3c, 0x0, 0x0, 0x0, 0x23f00), at 0xef6e64ac
        [11] do_execute_java_method(0xef72dc48, 0xee59bbf0, 0x0, 0x0, 0xd8bc0, 0x1), at 0xef6e5e5c
        [12] java_main(0x0, 0xd8bc0, 0xeffff864, 0x0, 0xee59d558, 0xee59bbf0), at 0xef707c84
      (/opt/SUNWspro/bin/dbx) whereis Locked_ResolveClassConstant
      function: `libjava.so`classinitialize.c`Locked_ResolveClassConstant
      (/opt/SUNWspro/bin/dbx)


      claudio.massi@italy 2000-07-18
      The same behaviour after a reinstallation of the server E3500 with 2.5.1 with recommended patches and java 1.1.6 Production (from Solaris 7 5/99 CD) and the last kernel patch 103640-32 (required for java): javac core dump for FLTBOUNDS with PC in libjava.so

      From 6Jul00 log files:
      truss -MFLTBOUNDS:
      25578/1: open("/usr/bin/../java/bin/../lib/classes.jar/java/lang/Number.class", O_RDONLY) Err#2 ENOENT
      25578/1: lseek(5, 45411, SEEK_SET) = 45411
      25578/1: read(5, " P K030414\0\0\0\b\0\0 R".., 30) = 30
      25578/1: lseek(5, 45463, SEEK_SET) = 45463
      25578/1: read(5, " m Q K N02 A14AC96CFC0\f".., 337) = 337
      25578/1: Incurred fault #6, FLTBOUNDS %pc = 0xEF70E88C
      25578/1: siginfo: SIGSEGV SEGV_MAPERR addr=0x08080808

      pmap:
      25578: /usr/bin/../java/bin/../bin/sparc/native_threads/java -ms8m sun.tools.
      00010000 8K read/exec /usr/bin/../java/bin/../bin/sparc/native_threads/java
      ...
      EF680000 720K read/exec /usr/bin/../java/bin/../lib/sparc/native_threads/libjava.so
      EF742000 48K read/write/exec /usr/bin/../java/bin/../lib/sparc/native_threads/libjava.so

      % more pstack.out
      25578: /usr/bin/../java/bin/../bin/sparc/native_threads/java -ms8m sun.tools.
      lwp#1 ----------
       ef70e88c ???????? (8080808, 8080808, 0, ef70e88c, 91650, 3b6d363a)
       ef6dfa78 NameAndTypeToHash (8080808, a3c38, ef7507a8, ef750400, ef5b0ad0, 0) + 24
       ef6d7978 ???????? (ec, ef7431e4, 3b, ef7431e4, a39e0, 0)
       ef6d7a38 ???????? (9, ed598168, a3758, f, ef7431e4, a37d8)
       ef6d7998 ???????? (ed598168, ef7431e4, 20, ef7431e4, a39e0, 0)
       ef6d7550 ResolveClassConstant (a3758, 20, ef7431e4, 200, ed598169, ed598168) + 68
       ef6f3b1c ResolveClassConstantFromPC (95896, b3, a3758, ef7431e4, 200, 20) + 6c
       ef72bcd0 ExecuteJavaFast (95896, ef7431e4, 25934, 25908, a3758, 25908) + 3d50
       ef719690 ExecuteJava (efffea3c, ef7431e4, 0, 29, 258e0, 0) + 34
       ef6f254c do_execute_java_method_vararg (ef7431e4, a3b21, 0, 0, 258ac, 25830) + 5dc
       ef6f1ef8 do_execute_java_method (ef7431e4, ed598168, 0, 0, a4a5c, 1) + 28
       ef6e1dc8 RunStaticInitializers (0, ed598168, 0, 0, a4a5c, 0) + 4b8
       ef6dee1c ???????? (ed598168, ed598081, ed598168, 3800448, ef7431e4, 9eef4)
       ef6ddf38 ResolveClass (ed598168, efffec44, 0, 0, 9f090, 0) + 5c
       ef6d760c ResolveClassConstant (9ee78, 1f, ef7431e4, 1, ed598081, ed598080) + 124
       ef6f3b1c ResolveClassConstantFromPC (a071c, b8, 9ee78, ef7431e4, 400, 1f) + 6c
       ef72be10 ExecuteJavaFast (a071c, ef7431e4, 258e0, 258a4, 9ee78, 258ac) + 3e90
       ef719690 ExecuteJava (effff614, ef7431e4, ef743000, 29, 25844, 743e0000) + 34
       ef6f254c do_execute_java_method_vararg (ef7431e4, 88649, 1, 0, 0, 25830) + 5dc
       ef6f1ec0 execute_java_constructor (ed598088, 89208, ed598000, ef746670, ef7431e4, 1) + 2f4
       ef6e8348 InitializeFinalizerThread (0, 5, 1, ef5c9cd0, 0, ef5c9cd8) + 18
       ef7249b8 sysThreadInitializeSystemThreads (0, 5, ef750400, fffffff8, 0, 95571) + 4
       ef70e004 threadBootstrap (ed5980b0, effffa20, ed5980a8, ef749544, ef7431e4, 0) + 70
       ef70de60 InitializeClassThread (ed5980b0, effff96c, ed5980b0, ed5980a0, ef743000, ef743000) + d4
       ef715bc4 sysInitializeJavaVM (effff976, effffb88, ef750400, effffe2b, ef7431e4, 25630) + 4c4
       ef7008fc JNI_CreateJavaVM (effffabc, effffab8, effffb88, 0, 14, 2f) + 108
       ef714cfc java_main (effffd2a, ef749d90, effffc34, 0, effffc34, effffd30) + f8c
       000107f8 _start (0, 0, 0, 0, 0, 0) + dc
      lwp#2 ----------
       ef43eedc signotifywait ()
       ef5ac268 _dynamiclwps (ef7eea70, ef5c7130, ef5c7118, ef5c6730, 0, 20000000) + 24
       ef5aedc4 _ti_thr_yield (0, 0, 0, 0, 0, 0) + 8c


      See the the last logs from BUG4217711-116-Info.tar.gz in attachment

      There is the same problem with jdk1.2.2_006 Reference

        Attachments

          Activity

            People

            • Assignee:
              coleenp Coleen Phillimore
              Reporter:
              cmassi Claudio Massi (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: