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

JVM segfault at shutdown, AWT, Linux

    XMLWordPrintable

    Details

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

      Description

      import javax.swing.JOptionPane;
      class Arealberegning2 {
        public static void main(String[] args) {
          String lengdeLest =
                    JOptionPane.showInputDialog("Lengde (meter): ");
          String breddeLest = JOptionPane.showInputDialog("Bredde (meter): ");
          double lengde = Double.parseDouble(lengdeLest);
          double bredde = Double.parseDouble(breddeLest);
          double arealet = lengde * bredde;
          JOptionPane.showMessageDialog(null, "Arealet av rektangelet er " +
                        arealet + " kvadratmeter");
          //System.exit(0);
        }
      }

      Results in a segfault after the last message is shown. Also happens with the call to exit() included. (The program is used to demonstrate how the JVM terminates without the exit() on 1.5, whereas it doesn't on 1.4. Seems to work OK on Windows.)

      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # SIGSEGV (0xb) at pc=0x42073770, pid=10165, tid=1073982368
      #
      # Java VM: Java HotSpot(TM) Client VM (1.5.0-beta-b32c mixed mode)
      # Problematic frame:
      # C [libc.so.6+0x73770] __libc_free+0x70
      #

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

      Current thread is native thread

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

      Registers:
      EAX=0xffffffff, EBX=0x42131a14, ECX=0x42133dfc, EDX=0x00000004
      ESP=0xbfffdd60, EBP=0xbfffdd78, ESI=0x031a15c3, EDI=0x42133dfc
      EIP=0x42073770, CR2=0x031a15c3, EFLAGS=0x00010202

      Top of Stack: (sp=0xbfffdd60)
      0xbfffdd60: 00000000 00000000 00000000 42131a14
      0xbfffdd70: 421302ac 00000000 bfffdda8 420ebd8e
      0xbfffdd80: 42133dfc 00000000 00000000 00000000
      0xbfffdd90: 421302ac 421302a4 4213029c 42131a14
      0xbfffdda0: 42131ef8 00000000 bfffddc8 42029fb8
      0xbfffddb0: 00000000 00000000 42131f08 41b198bc
      0xbfffddc0: 41aa4000 08133348 bfffddd8 41ab737c
      0xbfffddd0: 00000000 41b198bc bfffdde8 41b1192d

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

      Stack: [0xbfe00000,0xc0000000), sp=0xbfffdd60, free space=2039k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [libc.so.6+0x73770] __libc_free+0x70
      C [libc.so.6+0xebd8e]
      C [libc.so.6+0x29fb8] __cxa_finalize+0x68
      C [libawt.so+0x1337c]
      C [libawt.so+0x6d92d]
      C [ld-linux.so.2+0xce44]
      C [libc.so.6+0x29d40] exit+0x70
      C [libc.so.6+0x15708]


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

      Java Threads: ( => current thread )
        0x080e60a0 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=10180]
        0x0811ef18 JavaThread "TimerQueue" daemon [_thread_blocked, id=10179]
        0x0814a368 JavaThread "AWT-XAWT" daemon [_thread_blocked, id=10174]
        0x0813b5b8 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=10173]
        0x080a2958 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=10171]
        0x080a15b0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=10170]
        0x0809b610 JavaThread "Finalizer" daemon [_thread_blocked, id=10168]
        0x0809a8d0 JavaThread "Reference Handler" daemon [_thread_blocked, id=10167]

      Other Threads:

      VM state:at safepoint (shutting down)

      VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
      [0x0805a608/0x0805a630] Threads_lock - owner thread: 0x08097f70

      Heap
       def new generation total 576K, used 127K [0x4a550000, 0x4a5f0000, 0x4aa30000)
        eden space 512K, 12% used [0x4a550000, 0x4a55fd38, 0x4a5d0000)
        from space 64K, 100% used [0x4a5d0000, 0x4a5e0000, 0x4a5e0000)
        to space 64K, 0% used [0x4a5e0000, 0x4a5e0000, 0x4a5f0000)
       tenured generation total 1408K, used 594K [0x4aa30000, 0x4ab90000, 0x4e550000)
         the space 1408K, 42% used [0x4aa30000, 0x4aac4b80, 0x4aac4c00, 0x4ab90000)
       compacting perm gen total 8192K, used 267K [0x4e550000, 0x4ed50000, 0x52550000)
         the space 8192K, 3% used [0x4e550000, 0x4e592d18, 0x4e592e00, 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 00:15 2157097 /usr/local/java/j2sdk1.5.0/bin/java
      08056000-08058000 rw-p 0000d000 00:15 2157097 /usr/local/java/j2sdk1.5.0/bin/java
      08058000-0819b000 rwxp 00000000 00:00 0
      40000000-40015000 r-xp 00000000 03:08 73442 /lib/ld-2.3.2.so
      40015000-40016000 rw-p 00014000 03:08 73442 /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 00:15 1939992 /usr/local/java/j2sdk1.5.0/jre/lib/i386/native_threads/libhpi.so
      4001f000-40020000 rw-p 00006000 00:15 1939992 /usr/local/java/j2sdk1.5.0/jre/lib/i386/native_threads/libhpi.so
      40020000-40024000 rw-s 00000000 03:07 34684 /tmp/hsperfdata_vh136790/10165 (deleted)
      40024000-40025000 r--p 0092f000 03:03 164037 /usr/lib/locale/locale-archive
      40025000-40028000 r--s 00000000 00:15 1952410 /usr/local/java/j2sdk1.5.0/jre/lib/ext/dnsns.jar
      40028000-40033000 r-xp 00000000 03:08 83646 /lib/tls/libpthread-0.34.so
      40033000-40034000 rw-p 0000a000 03:08 83646 /lib/tls/libpthread-0.34.so
      40034000-40036000 rw-p 00000000 00:00 0
      40036000-40039000 r-xp 00000000 03:08 73455 /lib/libdl-2.3.2.so
      40039000-4003a000 rw-p 00002000 03:08 73455 /lib/libdl-2.3.2.so
      4003a000-4003c000 rw-p 00000000 00:00 0
      4003c000-403ad000 r-xp 00000000 00:15 4615109 /usr/local/java/j2sdk1.5.0/jre/lib/i386/client/libjvm.so
      403ad000-403cb000 rw-p 00370000 00:15 4615109 /usr/local/java/j2sdk1.5.0/jre/lib/i386/client/libjvm.so
      403cb000-407df000 rw-p 00000000 00:00 0
      407df000-40800000 r-xp 00000000 03:08 83644 /lib/tls/libm-2.3.2.so
      40800000-40801000 rw-p 00020000 03:08 83644 /lib/tls/libm-2.3.2.so
      40801000-4080c000 r-xp 00000000 00:15 1863379 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libverify.so
      4080c000-4080d000 rw-p 0000b000 00:15 1863379 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libverify.so
      4080d000-40812000 rwxp 00000000 00:00 0
      40812000-40824000 r-xp 00000000 03:08 73459 /lib/libnsl-2.3.2.so
      40824000-40825000 rw-p 00011000 03:08 73459 /lib/libnsl-2.3.2.so
      40825000-40827000 rw-p 00000000 00:00 0
      40827000-40847000 r-xp 00000000 00:15 1863380 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libjava.so
      40847000-40849000 rw-p 0001f000 00:15 1863380 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libjava.so
      40849000-4085c000 r-xp 00000000 00:15 1863382 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libzip.so
      4085c000-4085e000 rw-p 00012000 00:15 1863382 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libzip.so
      4085e000-408f3000 rw-p 00000000 00:00 0
      408f3000-40973000 r--s 00000000 00:15 4442601 /usr/local/java/j2sdk1.5.0/jre/lib/jsse.jar
      40973000-40987000 r--s 00000000 00:15 4442237 /usr/local/java/j2sdk1.5.0/jre/lib/jce.jar
      40987000-411c0000 r--s 00000000 00:15 4442598 /usr/local/java/j2sdk1.5.0/jre/lib/charsets.jar
      411c0000-412d1000 rwxp 00001000 00:00 0
      412d1000-412d2000 ---p 00112000 00:00 0
      412d2000-412dd000 rwxp 00113000 00:00 0
      412dd000-412e0000 ---p 0011e000 00:00 0
      412e0000-4135e000 rwxp 00121000 00:00 0
      4135e000-41361000 ---p 0019f000 00:00 0
      41361000-413df000 rwxp 001a2000 00:00 0
      413df000-415df000 r--p 00000000 03:03 164037 /usr/lib/locale/locale-archive
      415df000-41611000 r--p 008e1000 03:03 164037 /usr/lib/locale/locale-archive
      41611000-41692000 rwxp 00006000 00:00 0
      41692000-41695000 ---p 00084000 00:00 0
      41695000-41893000 rwxp 00087000 00:00 0
      41893000-41896000 ---p 00285000 00:00 0
      41896000-41995000 rwxp 00288000 00:00 0
      41995000-419ba000 r--s 00000000 00:15 1952261 /usr/local/java/j2sdk1.5.0/jre/lib/ext/sunjce_provider.jar
      419ba000-419e5000 r--s 00000000 00:15 1952262 /usr/local/java/j2sdk1.5.0/jre/lib/ext/sunpkcs11.jar
      419e5000-41aa4000 r--s 00000000 00:15 1952411 /usr/local/java/j2sdk1.5.0/jre/lib/ext/localedata.jar
      41aa4000-41b14000 r-xp 00000000 00:15 1863394 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libawt.so
      41b14000-41b1a000 rw-p 0006f000 00:15 1863394 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libawt.so
      41b1a000-41b3e000 rw-p 00000000 00:00 0
      41b3e000-41c04000 r-xp 00000000 00:15 1863393 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libmlib_image.so
      41c04000-41c05000 rw-p 000c6000 00:15 1863393 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libmlib_image.so
      41c05000-41c39000 r-xp 00000000 00:15 4691303 /usr/local/java/j2sdk1.5.0/jre/lib/i386/xawt/libmawt.so
      41c39000-41c3c000 rw-p 00034000 00:15 4691303 /usr/local/java/j2sdk1.5.0/jre/lib/i386/xawt/libmawt.so
      41c3c000-41c3d000 rw-p 00000000 00:00 0
      41c3d000-41c3f000 r-xp 00000000 03:03 198832 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
      41c3f000-41c40000 rw-p 00001000 03:03 198832 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
      41c40000-41c48000 r-xp 00000000 03:03 84159 /usr/X11R6/lib/libXcursor.so.1.0
      41c48000-41c49000 rw-p 00007000 03:03 84159 /usr/X11R6/lib/libXcursor.so.1.0
      41c4a000-41c4b000 r-xp 00000000 03:03 459205 /usr/lib/gconv/ISO8859-1.so
      41c4b000-41c4c000 rw-p 00001000 03:03 459205 /usr/lib/gconv/ISO8859-1.so
      41c4e000-41c5b000 r-xp 00000000 03:03 84161 /usr/X11R6/lib/libXext.so.6.4
      41c5b000-41c5c000 rw-p 0000c000 03:03 84161 /usr/X11R6/lib/libXext.so.6.4
      41c5c000-41d38000 r-xp 00000000 03:03 84151 /usr/X11R6/lib/libX11.so.6.2
      41d38000-41d3b000 rw-p 000db000 03:03 84151 /usr/X11R6/lib/libX11.so.6.2
      41d3b000-41dad000 r-xp 00000000 00:15 1863396 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libfontmanager.so
      41dad000-41db9000 rw-p 00071000 00:15 1863396 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libfontmanager.so
      41db9000-41dbd000 rw-p 00000000 00:00 0
      41dbd000-41dc0000 ---p 00003000 00:00 0
      41dc0000-41e3e000 rwxp 00006000 00:00 0
      41e3e000-41e44000 r-xp 00000000 00:15 1863386 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libnio.so
      41e44000-41e45000 rw-p 00005000 00:15 1863386 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libnio.so
      41e45000-41e4b000 r--s 00000000 03:03 459261 /usr/lib/gconv/gconv-modules.cache
      41e4f000-41e56000 r-xp 00000000 03:03 84181 /usr/X11R6/lib/libXrender.so.1.2
      41e56000-41e57000 rw-p 00006000 03:03 84181 /usr/X11R6/lib/libXrender.so.1.2
      41e57000-41e5a000 ---p 00003000 00:00 0
      41e5a000-41ed8000 rwxp 00006000 00:00 0
      41ed8000-41edb000 ---p 00084000 00:00 0
      41edb000-41f59000 rwxp 00087000 00:00 0
      41f59000-41f6c000 r-xp 00000000 00:15 1863385 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libnet.so
      41f6c000-41f6d000 rw-p 00012000 00:15 1863385 /usr/local/java/j2sdk1.5.0/jre/lib/i386/libnet.so
      41f6d000-41fee000 rwxp 00006000 00:00 0
      42000000-4212f000 r-xp 00000000 03:08 83642 /lib/tls/libc-2.3.2.so
      4212f000-42132000 rw-p 0012f000 03:08 83642 /lib/tls/libc-2.3.2.so
      42132000-42134000 rw-p 00000000 00:00 0
      42134000-44546000 r--s 00000000 00:15 4442600 /usr/local/java/j2sdk1.5.0/jre/lib/rt.jar
      44546000-465c7000 rwxp 00028000 00:00 0
      465c7000-465e3000 r-xp 00000000 03:03 198831 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
      465e3000-465e5000 rw-p 0001c000 03:03 198831 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
      465e5000-465e8000 ---p 00003000 00:00 0
      465e8000-46666000 rwxp 00006000 00:00 0
      4a550000-52550000 rwxp 060d2000 00:00 0
      52550000-52ada000 r--s 00001000 00:15 4615112 /usr/local/java/j2sdk1.5.0/jre/lib/i386/client/classes.jsa
      52ada000-52d50000 rwxp 0e65c000 00:00 0
      52d50000-5330a000 rw-p 0058b000 00:15 4615112 /usr/local/java/j2sdk1.5.0/jre/lib/i386/client/classes.jsa
      5330a000-53950000 rwxp 0ee8c000 00:00 0
      53950000-53a19000 rw-p 00b45000 00:15 4615112 /usr/local/java/j2sdk1.5.0/jre/lib/i386/client/classes.jsa
      53a19000-53d50000 rwxp 0f59b000 00:00 0
      bfe00000-bfe03000 rwxp 00000000 00:00 0
      bfe03000-c0000000 rwxp ffe04000 00:00 0

      VM Arguments:
      java_command: Arealberegning2

      Environment Variables:
      JAVA_HOME=/usr/local/java/jdk
      PATH=/opt/Acrobat3/bin/:/usr/local/teTeX/bin/sparc-sun-solaris2.8/:/opt/Acrobat3/bin/:/usr/local/teTeX/bin/sparc-sun-solaris2.8/:/usr/local/teTeX/bin/i686-pc-linux-gnu:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/local/etc:/usr/local/java/jdk/bin:/usr/local/java/ant/bin:/usr/local/acrobat/Acrobat4/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/qt/bin:/usr/local/java/jdk/bin/:/home/vh136790/bin:/cygdrive/x/i386/nt/4.0/jakarta-ant-1.4.1/bin:/cygdrive/x/i386/nt/4.0/jdk1.4/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/qt/bin:/usr/local/java/jdk/bin/:/home/vh136790/bin:/cygdrive/x/i386/nt/4.0/jakarta-ant-1.4.1/bin:/cygdrive/x/i386/nt/4.0/jdk1.4/bin
      LD_LIBRARY_PATH=/usr/local/java/j2sdk1.5.0/jre/lib/i386/client:/usr/local/java/j2sdk1.5.0/jre/lib/i386:/usr/local/java/j2sdk1.5.0/jre/../lib/i386:/usr/qt/lib:/usr/qt/lib:/usr/lib:/usr/local/lib:/usr/local/lib:/home/vh136790/cdparanoia-III-alpha9.7/interface:/home/vh136790/cdparanoia-III-alpha9.7/paranoia:/usr/local/lib:/home/vh136790/cdparanoia-III-alpha9.7/interface:/home/vh136790/cdparanoia-III-alpha9.7/paranoia
      SHELL=/bin/bash
      DISPLAY=129.159.115.200:0.0


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

      OS:Red Hat Linux release 9 (Shrike)

      uname:Linux 2.4.20-20.9 #1 Mon Aug 18 11:45:58 EDT 2003 i686
      libc:glibc 2.3.2 NPTL 0.34
      rlimit: STACK 8192k, CORE 0k, NPROC 7168, NOFILE 1024, AS infinity
      load average:0.31 0.08 0.03

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

      Memory: 4k page, physical 1030872k(12400k free), swap 2096440k(1819392k 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)




      ###@###.### 2004-03-01

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              collins Gary Collins (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: