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

Program termination segfault in case of visible JFrames

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description



      Name: rmT116609 Date: 02/10/2004


      FULL PRODUCT VERSION :
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)



      FULL OS VERSION :
      Linux medusa 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 i686 athlon i386 GNU/Linux


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Unmodified RedHat 9.0 system
      VGA compatible controller: ATI Technologies Inc Rage 128 Pro Ultra TF (rev 0)

      A DESCRIPTION OF THE PROBLEM :
      When a JFrame is visible and the program exits through a System.exit (i),
      where i can be any integer, the runtime produces a segmentation fault.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      The following program produces the error.

      import javax.swing.*;

      public class Crash {
              public static void main(String args[]) {
                      new JFrame("Crash").setVisible(true);
                      System.exit(0);
                      return;
              }
      }

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I expect a clean exit.
      ACTUAL -
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # SIGSEGV (0xb) at pc=0x420734c0, pid=5581, tid=1093549248
      #
      # Java VM: Java HotSpot(TM) Client VM (1.5.0-beta-b32c mixed mode)
      # Problematic frame:
      # C [libc.so.6+0x734c0] __libc_free+0x70
      #
      # An error report file with more information is saved as hs_err_pid5581.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #
      Aborted



      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      The contents of the file hs_err_pid5581.log are:
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # SIGSEGV (0xb) at pc=0x420734c0, pid=5458, tid=1093549248
      #
      # Java VM: Java HotSpot(TM) Client VM (1.5.0-beta-b32c mixed mode)
      # Problematic frame:
      # C [libc.so.6+0x734c0] __libc_free+0x70
      #

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

      Current thread (0x080982e8): VMThread [id=5459]

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

      Registers:
      EAX=0xffffffff, EBX=0x42130a14, ECX=0x42132d9c, EDX=0x00000004
      ESP=0x412e346c, EBP=0x412e3484, ESI=0x39000000, EDI=0x42132d9c
      EIP=0x420734c0, CR2=0x39000000, EFLAGS=0x00010202

        Top of Stack: (sp=0x412e346c)
      0x412e346c: 00000000 00000000 00000000 42130a14
      0x412e347c: 4212f2ac 00000000 412e34b4 420eb85e
      0x412e348c: 42132d9c 00000000 0000000a 00000000
      0x412e349c: 4212f2ac 4212f2a4 4212f29c 42130a14
      0x412e34ac: 42130ee0 0816c260 412e34e4 42029eae
      0x412e34bc: 00000000 41d8628c 412e34e4 41d76deb
      0x412e34cc: 41d86270 42130ee8 00000000 41aeb8bc
      0x412e34dc: 41a76000 0816c260 412e34f4 41a8937c

      Instructions: (pc=0x420734c0)
      0x420734b0: b8 ff ff ff ff 65 83 3d 0c 00 00 00 00 3e 74 01
      0x420734c0: f0 0f c1 06 0f 85 cb 3e 00 00 89 7c 24 04 89 34

      Stack: [0x412d7000,0x412e4000), sp=0x412e346c, free space=49k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [libc.so.6+0x734c0] __libc_free+0x70
      C [libc.so.6+0xeb85e]
      C [libc.so.6+0x29eae] __cxa_finalize+0x7e
      C [libawt.so+0x1337c]
      C [libawt.so+0x6d92d]
      C [ld-linux.so.2+0xc894]
      C [libc.so.6+0x29c20] exit+0x70
      V [libjvm.so+0x33651c]
      V [libjvm.so+0x335586]
      V [libjvm.so+0x334bf7]
      V [libjvm.so+0x334e05]
      V [libjvm.so+0x334a10]
      V [libjvm.so+0x2a97c4]
      C [libpthread.so.0+0x42b6]

      VM_Operation (0x41faacb4): exit, mode: safepoint, requested by thread 0x08357778


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

      Java Threads: ( => current thread )
        0x083fbc88 JavaThread "TimerQueue" daemon [_thread_blocked, id=5471]
        0x0805adc8 JavaThread "DestroyJavaVM" [_thread_blocked, id=5458]
        0x08357778 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=5469]
        0x08357460 JavaThread "AWT-Shutdown" [_thread_blocked, id=5468]
        0x082f0c58 JavaThread "AWT-XAWT" daemon [_thread_blocked, id=5467]
        0x082a5090 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=5466]
        0x080a2d20 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5464]
        0x080a1978 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5463]
        0x0809b988 JavaThread "Finalizer" daemon [_thread_blocked, id=5461]
        0x0809ac48 JavaThread "Reference Handler" daemon [_thread_blocked, id=5460]

      Other Threads:
      =>0x080982e8 VMThread [id=5459]

      VM state:at safepoint (shutting down)

      VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
      [0x0805a260/0x0805a288] Threads_lock - owner thread: 0x080982e8

      Heap
       def new generation total 576K, used 226K [0x4a550000, 0x4a5f0000, 0x4aa30000)
        eden space 512K, 31% used [0x4a550000, 0x4a578b40, 0x4a5d0000)
        from space 64K, 100% used [0x4a5d0000, 0x4a5e0000, 0x4a5e0000)
        to space 64K, 0% used [0x4a5e0000, 0x4a5e0000, 0x4a5f0000)
       tenured generation total 1408K, used 613K [0x4aa30000, 0x4ab90000, 0x4e550000)
         the space 1408K, 43% used [0x4aa30000, 0x4aac96d0, 0x4aac9800, 0x4ab90000)
       compacting perm gen total 8192K, used 236K [0x4e550000, 0x4ed50000, 0x52550000)
         the space 8192K, 2% used [0x4e550000, 0x4e58b068, 0x4e58b200, 0x4ed50000)
          ro space 8192K, 69% used [0x52550000, 0x52ad95b0, 0x52ad9600, 0x52d50000)
          rw space 12288K, 47% used [0x52d50000, 0x53309fa0, 0x5330a000, 0x53950000)

      Dynamic libraries:
      08048000-08056000 r-xp 00000000 03:07 688931 /opt/j2sdk1.5.0/bin/java
      08056000-08058000 rw-p 0000d000 03:07 688931 /opt/j2sdk1.5.0/bin/java
      08058000-08405000 rwxp 00000000 00:00 0
      40000000-40015000 r-xp 00000000 03:07 147188 /lib/ld-2.3.2.so
      40015000-40016000 rw-p 00014000 03:07 147188 /lib/ld-2.3.2.so
      40016000-40017000 rw-p 00000000 00:00 0
      40017000-40018000 ---p 00000000 00:00 0
      40018000-4001f000 r-xp 00000000 03:07 721261 /opt/j2sdk1.5.0/jre/lib/i386/native_threads/libhpi.so
      4001f000-40020000 rw-p 00006000 03:07 721261 /opt/j2sdk1.5.0/jre/lib/i386/native_threads/libhpi.so
      40020000-40024000 rw-s 00000000 03:07 215106 /tmp/hsperfdata_lykle/5458 (deleted)
      40024000-40029000 rwxp 00000000 00:00 0
      4002a000-40034000 r-xp 00000000 03:07 768752 /lib/tls/libpthread-0.29.so
      40034000-40035000 rw-p 0000a000 03:07 768752 /lib/tls/libpthread-0.29.so
      40035000-40037000 rw-p 00000000 00:00 0
      40037000-40039000 r-xp 00000000 03:07 147199 /lib/libdl-2.3.2.so
      40039000-4003a000 rw-p 00002000 03:07 147199 /lib/libdl-2.3.2.so
      4003a000-4003b000 rw-p 00000000 00:00 0
      4003b000-403ac000 r-xp 00000000 03:07 1310589 /opt/j2sdk1.5.0/jre/lib/i386/client/libjvm.so
      403ac000-403ca000 rw-p 00370000 03:07 1310589 /opt/j2sdk1.5.0/jre/lib/i386/client/libjvm.so
      403ca000-407de000 rw-p 00000000 00:00 0
      407de000-407ff000 r-xp 00000000 03:07 768750 /lib/tls/libm-2.3.2.so
      407ff000-40800000 rw-p 00020000 03:07 768750 /lib/tls/libm-2.3.2.so
      40800000-4080b000 r-xp 00000000 03:07 721269 /opt/j2sdk1.5.0/jre/lib/i386/libverify.so
      4080b000-4080c000 rw-p 0000b000 03:07 721269 /opt/j2sdk1.5.0/jre/lib/i386/libverify.so
      4080c000-40813000 rwxp 00000000 00:00 0
      40813000-40825000 r-xp 00000000 03:07 147203 /lib/libnsl-2.3.2.so
      40825000-40826000 rw-p 00011000 03:07 147203 /lib/libnsl-2.3.2.so
      40826000-40828000 rw-p 00000000 00:00 0
      40828000-40833000 r-xp 00000000 03:07 147209 /lib/libnss_files-2.3.2.so
      40833000-40834000 rw-p 0000a000 03:07 147209 /lib/libnss_files-2.3.2.so
      40834000-40854000 r-xp 00000000 03:07 721270 /opt/j2sdk1.5.0/jre/lib/i386/libjava.so
      40854000-40856000 rw-p 0001f000 03:07 721270 /opt/j2sdk1.5.0/jre/lib/i386/libjava.so
      40856000-40869000 r-xp 00000000 03:07 721272 /opt/j2sdk1.5.0/jre/lib/i386/libzip.so
      40869000-4086b000 rw-p 00012000 03:07 721272 /opt/j2sdk1.5.0/jre/lib/i386/libzip.so
      4086b000-40900000 rw-p 00000000 00:00 0
      40900000-40980000 r--s 00000000 03:07 721319 /opt/j2sdk1.5.0/jre/lib/jsse.jar
      40980000-40994000 r--s 00000000 03:07 721301 /opt/j2sdk1.5.0/jre/lib/jce.jar
      40994000-411cd000 r--s 00000000 03:07 721322 /opt/j2sdk1.5.0/jre/lib/charsets.jar
      411cd000-412d7000 rwxp 00001000 00:00 0
      412d7000-412d8000 ---p 0010b000 00:00 0
      412d8000-412e4000 rwxp 0010c000 00:00 0
      412e4000-412e7000 ---p 00118000 00:00 0
      412e7000-41364000 rwxp 0011b000 00:00 0
      41364000-41367000 ---p 00198000 00:00 0
      41367000-413e4000 rwxp 0019b000 00:00 0
      413e4000-415e4000 r--p 00000000 03:07 359881 /usr/lib/locale/locale-archive
      415e4000-41664000 rwxp 00006000 00:00 0
      41664000-41667000 ---p 00083000 00:00 0
      41667000-41864000 rwxp 00086000 00:00 0
      41864000-41867000 ---p 00283000 00:00 0
      41867000-418e4000 rwxp 00286000 00:00 0
      418e4000-418e5000 ---p 00303000 00:00 0
      418e5000-41964000 rwxp 00304000 00:00 0
      41964000-41989000 r--s 00000000 03:07 705646 /opt/j2sdk1.5.0/jre/lib/ext/sunjce_provider.jar
      41989000-419b4000 r--s 00000000 03:07 705647 /opt/j2sdk1.5.0/jre/lib/ext/sunpkcs11.jar
      419b4000-419b7000 r--s 00000000 03:07 705648 /opt/j2sdk1.5.0/jre/lib/ext/dnsns.jar
      419b7000-41a76000 r--s 00000000 03:07 705676 /opt/j2sdk1.5.0/jre/lib/ext/localedata.jar
      41a76000-41ae6000 r-xp 00000000 03:07 721284 /opt/j2sdk1.5.0/jre/lib/i386/libawt.so
      41ae6000-41aec000 rw-p 0006f000 03:07 721284 /opt/j2sdk1.5.0/jre/lib/i386/libawt.so
      41aec000-41b10000 rw-p 00000000 00:00 0
      41b10000-41bd6000 r-xp 00000000 03:07 721283 /opt/j2sdk1.5.0/jre/lib/i386/libmlib_image.so
      41bd6000-41bd7000 rw-p 000c6000 03:07 721283 /opt/j2sdk1.5.0/jre/lib/i386/libmlib_image.so
      41bd7000-41c0b000 r-xp 00000000 03:07 687922 /opt/j2sdk1.5.0/jre/lib/i386/xawt/libmawt.so
      41c0b000-41c0e000 rw-p 00034000 03:07 687922 /opt/j2sdk1.5.0/jre/lib/i386/xawt/libmawt.so
      41c0e000-41c0f000 rw-p 00000000 00:00 0
      41c0f000-41c15000 r--s 00000000 03:07 474459 /usr/lib/gconv/gconv-modules.cache
      41c15000-41c16000 r-xp 00000000 03:07 1030194 /usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2
      41c16000-41c17000 rw-p 00000000 03:07 1030194 /usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2
      41c17000-41c1f000 r-xp 00000000 03:07 834650 /usr/X11R6/lib/libXcursor.so.1.0
      41c1f000-41c20000 rw-p 00007000 03:07 834650 /usr/X11R6/lib/libXcursor.so.1.0
      41c22000-41c2f000 r-xp 00000000 03:07 834652 /usr/X11R6/lib/libXext.so.6.4
      41c2f000-41c30000 rw-p 0000c000 03:07 834652 /usr/X11R6/lib/libXext.so.6.4
      41c30000-41d0c000 r-xp 00000000 03:07 834533 /usr/X11R6/lib/libX11.so.6.2
      41d0c000-41d0f000 rw-p 000db000 03:07 834533 /usr/X11R6/lib/libX11.so.6.2
      41d0f000-41d81000 r-xp 00000000 03:07 721286 /opt/j2sdk1.5.0/jre/lib/i386/libfontmanager.so
      41d81000-41d8d000 rw-p 00071000 03:07 721286 /opt/j2sdk1.5.0/jre/lib/i386/libfontmanager.so
      41d8d000-41d91000 rw-p 00000000 00:00 0
      41d91000-41d94000 ---p 00003000 00:00 0
      41d94000-41e11000 rwxp 00006000 00:00 0
      41e11000-41e17000 r-xp 00000000 03:07 721276 /opt/j2sdk1.5.0/jre/lib/i386/libnio.so
      41e17000-41e18000 rw-p 00005000 03:07 721276 /opt/j2sdk1.5.0/jre/lib/i386/libnio.so
      41e24000-41e2b000 r-xp 00000000 03:07 834672 /usr/X11R6/lib/libXrender.so.1.2
      41e2b000-41e2c000 rw-p 00006000 03:07 834672 /usr/X11R6/lib/libXrender.so.1.2
      41e2c000-41e2f000 ---p 00003000 00:00 0
      41e2f000-41eac000 rwxp 00006000 00:00 0
      41eac000-41eaf000 ---p 00083000 00:00 0
      41eaf000-41f2c000 rwxp 00086000 00:00 0
      41f2c000-41f2f000 ---p 00103000 00:00 0
      41f2f000-41fac000 rwxp 00106000 00:00 0
      41fac000-41fbf000 r-xp 00000000 03:07 721275 /opt/j2sdk1.5.0/jre/lib/i386/libnet.so
      41fbf000-41fc0000 rw-p 00012000 03:07 721275 /opt/j2sdk1.5.0/jre/lib/i386/libnet.so
      41fc0000-41fdc000 r-xp 00000000 03:07 1030192 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
      41fdc000-41fde000 rw-p 0001c000 03:07 1030192 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
      42000000-4212e000 r-xp 00000000 03:07 768748 /lib/tls/libc-2.3.2.so
      4212e000-42131000 rw-p 0012e000 03:07 768748 /lib/tls/libc-2.3.2.so
      42131000-42133000 rw-p 00000000 00:00 0
      42133000-44545000 r--s 00000000 03:07 721333 /opt/j2sdk1.5.0/jre/lib/rt.jar
      44545000-46545000 rwxp 00028000 00:00 0
      46545000-46548000 ---p 02028000 00:00 0
      46548000-46645000 rwxp 0202b000 00:00 0
      4a550000-52550000 rwxp 060d3000 00:00 0
      52550000-52ada000 r--s 00001000 03:07 1310592 /opt/j2sdk1.5.0/jre/lib/i386/client/classes.jsa
      52ada000-52d50000 rwxp 0e65d000 00:00 0
      52d50000-5330a000 rw-p 0058b000 03:07 1310592 /opt/j2sdk1.5.0/jre/lib/i386/client/classes.jsa
      5330a000-53950000 rwxp 0ee8d000 00:00 0
      53950000-53a19000 rw-p 00b45000 03:07 1310592 /opt/j2sdk1.5.0/jre/lib/i386/client/classes.jsa
      53a19000-53d50000 rwxp 0f59c000 00:00 0
      bfe00000-bfe03000 ---p 00000000 00:00 0
      bfe03000-c0000000 rwxp ffe04000 00:00 0

      VM Arguments:
      java_command: tabel2/Main

      Environment Variables:
      JAVA_HOME=/opt/j2sdk1.5.0
      CLASSPATH=.:/opt/j2sdk1.5.0/jre/lib/rt.jar
      PATH=/opt/j2sdk1.5.0/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/opt/povray-3.5:/opt/maple_su/bin:/usr/java/j2sdk1.4.2/bin:/home/lykle/bin:/opt/povray-3.5:/opt/maple_su/bin:/usr/java/j2sdk1.4.2/bin
      LD_LIBRARY_PATH=/opt/j2sdk1.5.0/jre/lib/i386/client:/opt/j2sdk1.5.0/jre/lib/i386:/opt/j2sdk1.5.0/jre/../lib/i386
      SHELL=/bin/bash
      DISPLAY=:0.0


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

      OS:Red Hat Linux release 9 (Shrike)

      uname:Linux 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 i686
      libc:glibc 2.3.2 NPTL 0.29
      rlimit: STACK 8192k, CORE 0k, NPROC 4095, NOFILE 1024, AS infinity
      load average:0.27 0.14 0.10

      CPU:total 1(active 1) family 6, cmov, cx8, fxsr, mmx, sse

      Memory: 4k page, physical 513896k(260160k free), swap 265032k(265032k free)

      vm_info: Java HotSpot(TM) Client VM (1.5.0-beta-b32c) for linux-x86, built on Jan 23 2004 02:41:35 by java_re with gcc 3.2.1-7 20020903 (release)



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------

      import javax.swing.*;

      public class Crash {
              public static void main(String args[]) {
                      new JFrame("Crash").setVisible(true);
                      System.exit(0);
                      return;
              }
      }
      ---------- END SOURCE ----------
      (Incident Review ID: 238083)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              collins Gary Collins (Inactive)
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: