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

Profiling Swing application caused JVM crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • hs12
    • 6
    • hotspot
    • None
    • b02
    • x86
    • linux

        This is copy of original report available here: http://www.netbeans.org/issues/show_bug.cgi?id=88776

        I tried to attach to an swing application several times and always it ends after
        a few seconds of profiling by java error.

        Both ide and application run on jdk 1.6. b104, linux i586.

        Application's log:

        #
        # An unexpected error has been detected by Java Runtime Environment:
        #
        # Internal Error (53484152454432554E54494D450E435050020F), pid=14600,
        tid=3041770400
        #
        # Java VM: Java HotSpot(TM) Client VM (1.6.0-rc-b104 mixed mode, sharing)
        # An error report file with more information is saved as hs_err_pid14600.log
        #
        # If you would like to submit a bug report, please visit:
        # http://java.sun.com/webapps/bugreport/crash.jsp
        #
        Aborted
        Here is an e-mail from Tomas on 2007.04.11 on how to reproduce
        this failure mode:

        ===== begin e-mail extract =====

        > Can you point me at the appropriate bits?
        Ok, here is the test case:
        1) download latest NetBeans IDE from http://smetiste.czech.sun.com/builds/netbeans/6.0/latest/symlinks/component/ide-en.zip
        2) unzip ide-en.zip
        3) run NetBeans using netbeans/bin/netbeans
        (if you need to specify JDK, use --jdkhome switch)
        4) run Java2Demo.jar in separate terminal
        5) back in NetBeans go to Profile -> Attach Profile, click Attach
        6) In Attach Wizard select 'Application' as Target Type and 'Attach Invocation' must be 'Dynamic (JDK 1.6)', click 'Next', click 'Finish'
        7) Select Java2Demo in 'Select Process' panel and click 'Ok'
        8) wait for JVM crash


        Bellow it the console output from Java2Demo.jar

        [th125165@dhcp-eprg05-75-104 Java2D]$ /usr/java/jdk1.6.0/bin/java -jar Java2Demo.jar
        Profiler Agent: JNI On Load Initializing...
        Profiler Agent: JNI OnLoad Initialized succesfully
        Profiler Agent: Waiting for connection on port 5140 (Protocol version: 6)
        Profiler Agent: Established local connection with the tool
        cache_loade_classes, classes 2223
        Retransform called
        Retransform end
        #
        # An unexpected error has been detected by Java Runtime Environment:
        #
        # Internal Error (53484152454432554E54494D450E435050020F), pid=11055, tid=3050302384
        #
        # Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing)
        # An error report file with more information is saved as /tmp/hs_err_pid11055.log
        #
        # If you would like to submit a bug report, please visit:
        # http://java.sun.com/webapps/bugreport/crash.jsp
        #
        Aborted

        ===== end e-mail extract =====

        I've attached the ide-en.zip file that I used during this work:

        -rw-rw-r-- 1 dcubed green 73933339 May 15 2007 ide-en.zip
        I downloaded a NetBeans 6.0 release where NetBeans->Help->About
        shows the following:

        Product Version: NetBeans IDE 6.0 (Build 200711261600)
        Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
        System: SunOS version 5.10 running on sparc; ISO646-US; en (nb)
        Userdir: /home/dcubed/.netbeans/6.0

        This version has a slightly different crash than the others
        that Tomas reported or that I've seen during my testing:

        # An unexpected error has been detected by Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0xfc400740, pid=16936, tid=11
        #
        # Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing solaris-sparc)
        # Problematic frame:
        # v ~BufferBlob::StubRoutines (1)

        Here is a snippet of the crashing thread's stack trace:

          ---- called from signal handler with signal 11 (SIGSEGV) ------
          [8] 0xfc400740(0x1, 0x154400, 0x154400, 0x154d30, 0x55f3fc, 0xfee2e000), at 0xfc400740
          [9] ObjectSynchronizer::fast_enter(0xfee3b339, 0xfb67f840, 0x154d30, 0xfb67f4f4, 0xfb67f854, 0x154400), at 0xfec9e8f4
          [10] ObjectLocker::ObjectLocker(0xfb67f838, 0xfb67f830, 0x154400, 0x1, 0x154d30, 0x154d30), at 0xfec9bf40
          [11] constantPoolOopDesc::klass_at_impl(0xfb67f8ac, 0x358, 0x154400, 0x23, 0xd852d918, 0x14), at 0xfe8e02c0
          [12] methodOopDesc::fast_exception_handler_bci_for(0x154d2c, 0xfb67f98c, 0x26, 0x154400, 0x154d28, 0x142), at 0xfe9473ac
          [13] InterpreterRuntime::exception_handler_for_exception(0x153528, 0x26, 0x154d18, 0x1544e4, 0x154400, 0x154d14), at 0xfe946c94
          [14] 0xfc40b698(0xd04b6590, 0x0, 0x1442c, 0xfc416be0, 0x2a880, 0xfb67fa60), at 0xfc40b698
          [15] 0xfc405a10(0xd04b6590, 0xd8c150b8, 0xfb67fbb4, 0xfc416a88, 0x30c8c, 0xfb67fae0), at 0xfc405a10
          [16] 0xfc405f20(0xfb67ffa0, 0xfee4242c, 0x14428, 0xfc416eb0, 0xd04c3738, 0xfb67fb58), at 0xfc405f20
          [17] 0xfc40021c(0xfb67fc40, 0xfb67fe98, 0xa, 0xd8c16730, 0xfc40bee0, 0xfb67fd98), at 0xfc40021c
          [18] JavaCalls::call_helper(0xfb67fe90, 0x154d10, 0xfb67fd90, 0x154400, 0x154d00, 0xfb67fc20), at 0xfe8deedc

        I've attached the following:

            doit.log.jdk1.6.0_04-client-base
            hs_err_pid.jdk1.6.0_04-client-base
            threads.log.jdk1.6.0_04-client-base

        This crash does not reproduce when my fixes for this bug (6497639)
        and 6599425 are applied.

              dcubed Daniel Daugherty
              thurka Tomáš Hůrka
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: