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

Java Crashed when parsing an XSLT

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      b05
    • Introduced In Version:
      6u2
    • CPU:
      x86
    • OS:
      solaris_2.5.1

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0_02"
      Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
      Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Linux digenis_t.myhome.local.net 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      Parsing of xml against an XSLT.

      Several Iterations. In one of them the problem appeared.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      XML Parsting against XSLT


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # An unexpected error has been detected by Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00000000, pid=5138, tid=1686084528
      #
      # Java VM: Java HotSpot(TM) Server VM (1.6.0_02-b05 mixed mode)
      # Problematic frame:
      # C 0x00000000
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #

      --------------- T H R E A D ---------------

      Current thread (0x080e7400): VMThread [id=5140]

      siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000

      Registers:
      EAX=0x7265665f, EBX=0x6e20feb8, ECX=0x647f8ee0, EDX=0x00200028
      ESP=0x647f8d9c, EBP=0x647f8dc8, ESI=0x7052bb18, EDI=0x7052bb18
      EIP=0x00000000, CR2=0x00000000, EFLAGS=0x00000287

        Top of Stack: (sp=0x647f8d9c)
      0x647f8d9c: 064c33c6 00200028 6e20feb8 647f8ee0
      0x647f8dac: 00000003 0805c028 0805d698 647f8ee0
      0x647f8dbc: 647f8ee0 08058c10 647f8ee0 647f8df8
      0x647f8dcc: 06283161 0805d698 647f8ee0 0805c028
      0x647f8ddc: 0805c028 6c030000 0e390000 0805c000
      0x647f8dec: 00000002 00000002 0805bea8 647f8e28
      0x647f8dfc: 06276d68 08058c10 647f8ee0 0805c150
      0x647f8e0c: 0805c150 6c030000 0e390000 647f8e48

      Instructions: (pc=0x00000000)
      0xfffffff0:

      Stack: [0x64779000,0x647fa000), sp=0x647f8d9c, free space=511k
      VM_Operation (0xb7fe6830): generation collection for allocation, mode: safepoint, requested by thread 0x08058000


      --------------- P R O C E S S ---------------

      Java Threads: ( => current thread )
        0x08101800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5146]
        0x08100000 JavaThread "CompilerThread1" daemon [_thread_blocked, id=5145]
        0x080fe800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5144]
        0x080fd800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5143]
        0x080ea400 JavaThread "Finalizer" daemon [_thread_blocked, id=5142]
        0x080e9c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=5141]
        0x08058000 JavaThread "main" [_thread_blocked, id=5139]

      Other Threads:
      =>0x080e7400 VMThread [id=5140]
        0x08103000 WatcherThread [id=5147]

      VM state:at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
      [0x08056490/0x080564b8] Threads_lock - owner thread: 0x080e7400
      [0x08056950/0x08056968] Heap_lock - owner thread: 0x08058000

      Heap
       def new generation total 104832K, used 93184K [0x64e70000, 0x6c030000, 0x6c030000)
        eden space 93184K, 100% used [0x64e70000, 0x6a970000, 0x6a970000)
        from space 11648K, 0% used [0x6a970000, 0x6a970000, 0x6b4d0000)
        to space 11648K, 100% used [0x6b4d0000, 0x6c030000, 0x6c030000)
       tenured generation total 932096K, used 70662K [0x6c030000, 0xa4e70000, 0xa4e70000)
         the space 932096K, 7% used [0x6c030000, 0x70531840, 0x70531a00, 0xa4e70000)
       compacting perm gen total 262144K, used 4672K [0xa4e70000, 0xb4e70000, 0xb4e70000)
         the space 262144K, 1% used [0xa4e70000, 0xa5300130, 0xa5300200, 0xb4e70000)
      No shared spaces configured.

      Dynamic libraries:
      001db000-001f0000 r-xp 00000000 fd:03 494337 /lib/ld-2.3.4.so
      001f0000-001f1000 r-xp 00014000 fd:03 494337 /lib/ld-2.3.4.so
      001f1000-001f2000 rwxp 00015000 fd:03 494337 /lib/ld-2.3.4.so
      001f4000-00317000 r-xp 00000000 fd:03 494338 /lib/tls/libc-2.3.4.so
      00317000-00318000 r-xp 00123000 fd:03 494338 /lib/tls/libc-2.3.4.so
      00318000-0031b000 rwxp 00124000 fd:03 494338 /lib/tls/libc-2.3.4.so
      0031b000-0031d000 rwxp 0031b000 00:00 0
      0031f000-00321000 r-xp 00000000 fd:03 494341 /lib/libdl-2.3.4.so
      00321000-00323000 rwxp 00001000 fd:03 494341 /lib/libdl-2.3.4.so
      00325000-00346000 r-xp 00000000 fd:03 494342 /lib/tls/libm-2.3.4.so
      00346000-00348000 rwxp 00020000 fd:03 494342 /lib/tls/libm-2.3.4.so
      00447000-00455000 r-xp 00000000 fd:03 494339 /lib/tls/libpthread-2.3.4.so
      00455000-00457000 rwxp 0000d000 fd:03 494339 /lib/tls/libpthread-2.3.4.so
      00457000-00459000 rwxp 00457000 00:00 0
      0053a000-0054c000 r-xp 00000000 fd:03 494345 /lib/libnsl-2.3.4.so
      0054c000-0054e000 rwxp 00011000 fd:03 494345 /lib/libnsl-2.3.4.so
      0054e000-00550000 rwxp 0054e000 00:00 0
      009ae000-009b6000 r-xp 00000000 fd:03 494346 /lib/tls/librt-2.3.4.so
      009b6000-009b8000 rwxp 00007000 fd:03 494346 /lib/tls/librt-2.3.4.so
      009b8000-009c2000 rwxp 009b8000 00:00 0
      06000000-065a0000 r-xp 00000000 fd:03 527945 /usr/java/jdk1.6.0_02/jre/lib/i386/server/libjvm.so
      065a0000-065dc000 rwxp 0059f000 fd:03 527945 /usr/java/jdk1.6.0_02/jre/lib/i386/server/libjvm.so
      065dc000-069fc000 rwxp 065dc000 00:00 0
      08048000-08052000 r-xp 00000000 fd:03 525857 /usr/java/jdk1.6.0_02/bin/java
      08052000-08053000 rwxp 00009000 fd:03 525857 /usr/java/jdk1.6.0_02/bin/java
      08053000-0865a000 rwxp 08053000 00:00 0
      63c00000-63c86000 rwxp 63c00000 00:00 0
      63c86000-63d00000 ---p 63c86000 00:00 0
      63d00000-63df9000 rwxp 63d00000 00:00 0
      63df9000-63e00000 ---p 63df9000 00:00 0
      63f00000-63fff000 rwxp 63f00000 00:00 0
      63fff000-64000000 ---p 63fff000 00:00 0
      64100000-641f6000 rwxp 64100000 00:00 0
      641f6000-64200000 ---p 641f6000 00:00 0
      642ab000-642b2000 r-xs 00106000 fd:03 528029 /usr/java/jdk1.6.0_02/jre/lib/resources.jar
      642b2000-642b3000 ---p 642b2000 00:00 0
      642b3000-64333000 rwxp 642b3000 00:00 0
      64333000-64336000 ---p 64333000 00:00 0
      64336000-64384000 rwxp 64336000 00:00 0
      64384000-64387000 ---p 64384000 00:00 0
      64387000-64405000 rwxp 64387000 00:00 0
      64405000-64408000 ---p 64405000 00:00 0
      64408000-64486000 rwxp 64408000 00:00 0
      64486000-64489000 ---p 64486000 00:00 0
      64489000-644d7000 rwxp 64489000 00:00 0
      644d7000-646d7000 r-xp 00000000 fd:03 102931 /usr/lib/locale/locale-archive
      646d7000-646da000 ---p 646d7000 00:00 0
      646da000-64728000 rwxp 646da000 00:00 0
      64728000-6472b000 ---p 64728000 00:00 0
      6472b000-64779000 rwxp 6472b000 00:00 0
      64779000-6477a000 ---p 64779000 00:00 0
      6477a000-6482a000 rwxp 6477a000 00:00 0
      6482a000-649a6000 r-xs 02c8c000 fd:03 528838 /usr/java/jdk1.6.0_02/jre/lib/rt.jar
      649a6000-64e6f000 rwxp 649a6000 00:00 0
      64e6f000-b4e70000 rwxp 64e6f000 00:00 0
      b4e74000-b4e7d000 rwxp b4e74000 00:00 0
      b4e7d000-b4f34000 rwxp b4e7d000 00:00 0
      b4f34000-b5174000 rwxp b4f34000 00:00 0
      b5174000-b7f34000 rwxp b5174000 00:00 0
      b7f34000-b7f43000 r-xp 00000000 fd:03 527937 /usr/java/jdk1.6.0_02/jre/lib/i386/libzip.so
      b7f43000-b7f45000 rwxp 0000e000 fd:03 527937 /usr/java/jdk1.6.0_02/jre/lib/i386/libzip.so
      b7f45000-b7f68000 r-xp 00000000 fd:03 527914 /usr/java/jdk1.6.0_02/jre/lib/i386/libjava.so
      b7f68000-b7f6a000 rwxp 00023000 fd:03 527914 /usr/java/jdk1.6.0_02/jre/lib/i386/libjava.so
      b7f6a000-b7f75000 r-xp 00000000 fd:03 527936 /usr/java/jdk1.6.0_02/jre/lib/i386/libverify.so
      b7f75000-b7f76000 rwxp 0000b000 fd:03 527936 /usr/java/jdk1.6.0_02/jre/lib/i386/libverify.so
      b7f76000-b7f7f000 r-xp 00000000 fd:03 491570 /lib/libnss_files-2.3.4.so
      b7f7f000-b7f81000 rwxp 00008000 fd:03 491570 /lib/libnss_files-2.3.4.so
      b7f86000-b7f8e000 rwxs 00000000 fd:03 252108 /tmp/hsperfdata_nalexand/5138
      b7f8e000-b7f94000 r-xp 00000000 fd:03 527941 /usr/java/jdk1.6.0_02/jre/lib/i386/native_threads/libhpi.so
      b7f94000-b7f95000 rwxp 00006000 fd:03 527941 /usr/java/jdk1.6.0_02/jre/lib/i386/native_threads/libhpi.so
      b7f95000-b7f96000 rwxp b7f95000 00:00 0
      b7f96000-b7f97000 ---p b7f96000 00:00 0
      b7f97000-b7f9a000 ---p b7f97000 00:00 0
      b7f9a000-b7fe9000 rwxp b7f9a000 00:00 0
      b7fe9000-b7ff0000 r-xp 00000000 fd:03 527897 /usr/java/jdk1.6.0_02/jre/lib/i386/jli/libjli.so
      b7ff0000-b7ff2000 rwxp 00006000 fd:03 527897 /usr/java/jdk1.6.0_02/jre/lib/i386/jli/libjli.so
      b7ff2000-b7ff3000 rwxp b7ff2000 00:00 0
      bfff9000-c0000000 rwxp bfff9000 00:00 0
      ffffe000-fffff000 ---p 00000000 00:00 0

      VM Arguments:
      jvm_args: -Djava.awt.headless=true -Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=256M
      java_command: SimpleTransform
      Launcher Type: SUN_STANDARD

      Environment Variables:
      PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/app/bin:/u01/app/oracle/product/10.2.0/db10g//bin:/opt/perl2exe:/opt/perl2exe/perl5/bin:/app/bin:/opt/Xalan/bin/:/opt/Xerces/bin/:/app/EU1724/bin
      LD_LIBRARY_PATH=/usr/java/jdk1.6.0_02/jre/lib/i386/server:/usr/java/jdk1.6.0_02/jre/lib/i386:/usr/java/jdk1.6.0_02/jre/../lib/i386::/u01/app/oracle/product/10.2.0/db10g//lib:/opt/Xalan/lib/:/opt/Xerces/lib/
      SHELL=/bin/bash

      Signal Handlers:
      SIGSEGV: [libjvm.so+0x53c2c0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGBUS: [libjvm.so+0x53c2c0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGFPE: [libjvm.so+0x4518e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGPIPE: [libjvm.so+0x4518e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGILL: [libjvm.so+0x4518e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
      SIGUSR2: [libjvm.so+0x453910], sa_mask[0]=0x00000000, sa_flags=0x10000004
      SIGHUP: [libjvm.so+0x453330], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGINT: [libjvm.so+0x453330], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGQUIT: [libjvm.so+0x453330], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGTERM: [libjvm.so+0x453330], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGUSR2: [libjvm.so+0x453910], sa_mask[0]=0x00000000, sa_flags=0x10000004


      --------------- S Y S T E M ---------------

      OS:Red Hat Enterprise Linux AS release 4 (Nahant)

      uname:Linux 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686
      libc:glibc 2.3.4 NPTL 2.3.4
      rlimit: STACK 10240k, CORE 0k, NPROC 12096, NOFILE 1024, AS infinity
      load average:3.85 3.76 3.32

      CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 14 stepping 8, cmov, cx8, fxsr, mmx, sse, sse2, sse3

      Memory: 4k page, physical 762400k(8904k free), swap 2031608k(989900k free)

      vm_info: Java HotSpot(TM) Server VM (1.6.0_02-b05) for linux-x86, built on Jun 14 2007 15:52:09 by "java_re" with gcc 3.2.1-7a (J2SE release)


      REPRODUCIBILITY :
      This bug can be reproduced occasionally.

      ---------- BEGIN SOURCE ----------
      /*
       * Copyright 1999-2004 The Apache Software Foundation.
       *
       * Licensed under the Apache License, Version 2.0 (the "License");
       * you may not use this file except in compliance with the License.
       * You may obtain a copy of the License at
       *
       * http://www.apache.org/licenses/LICENSE-2.0
       *
       * Unless required by applicable law or agreed to in writing, software
       * distributed under the License is distributed on an "AS IS" BASIS,
       * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       * See the License for the specific language governing permissions and
       * limitations under the License.
       */
      /*
       * $Id: SimpleTransform.java,v 1.11 2004/02/17 19:08:36 minchau Exp $
       */

      import java.io.FileNotFoundException;
      import java.io.FileOutputStream;
      import java.io.IOException;

      import javax.xml.transform.Transformer;
      import javax.xml.transform.TransformerConfigurationException;
      import javax.xml.transform.TransformerException;
      import javax.xml.transform.TransformerFactory;
      import javax.xml.transform.stream.StreamResult;
      import javax.xml.transform.stream.StreamSource;

      /**
       * Use the TraX interface to perform a transformation in the simplest manner possible
       * (3 statements).
       */
      public class SimpleTransform
      {
              public static void main(String[] args)
          throws TransformerException, TransformerConfigurationException,
                 FileNotFoundException, IOException
        {
        // Use the static TransformerFactory.newInstance() method to instantiate
        // a TransformerFactory. The javax.xml.transform.TransformerFactory
        // system property setting determines the actual class to instantiate --
        // org.apache.xalan.transformer.TransformerImpl.
              TransformerFactory tFactory = TransformerFactory.newInstance();

              // Use the TransformerFactory to instantiate a Transformer that will work with
              // the stylesheet you specify. This method call also processes the stylesheet
        // into a compiled Templates object.
              Transformer transformer = tFactory.newTransformer(new StreamSource("case03.xsl"));

              // Use the Transformer to apply the associated Templates object to an XML document
              // (foo.xml) and write the output to a file (foo.out).
              transformer.transform(new StreamSource("in.xml"), new StreamResult(new FileOutputStream("out.xml")));
        }
      }
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            • Assignee:
              joehw Joe Wang
              Reporter:
              ryeung Roger Yeung (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: