Date: Sun, 23 Oct 2005 14:51:42 +0400 From: Alex Pivovarov <apivovarov@gmail.com> To: freebsd-java@freebsd.org Subject: "An unexpected error" when i run class with constructor creating itself. (jdk1.5.0-p2) Message-ID: <426b510c0510230351k718c38ffr43273a31204414e6@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I made a class Constr with a constructor which run =3D new Constr(). public class Constr { =09public int field1 =3D 1; =09public Constr() { =09=09Constr constr =3D new Constr(); =09} =09public static void main(String args[]) { =09=09Constr constr =3D new Constr(); =09} } ------------- What I get after run: ---------------------- %java Constr # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGBUS (0xa) at pc=3D0x2b558260, pid=3D2878, tid=3D0x8060000 # # Java VM: Java HotSpot(TM) Client VM (1.5.0-p2-root_21_oct_2005_11_50 mixed mode) # Problematic frame: # J Constr.<init>()V # # An error report file with more information is saved as hs_err_pid2878.log # # If you would like to submit a bug report, please write # a letter to freebsd-java@FreeBSD.org mailing list # Abort (core dumped) --------------------- log---------------------------- hs_err_pid2878.log - see below --------------- T H R E A D --------------- Current thread (0x08060c00): JavaThread "main" [_thread_in_Java, id=3D1346= 10944] siginfo:si_signo=3D10, si_errno=3D0, si_code=3D12, si_addr=3D0xbfafffec Registers: EAX=3D0x2d5a0980, EBX=3D0x00000000, ECX=3D0x2d5a0980, EDX=3D0x316ac248 ESP=3D0xbfb02fec, EBP=3D0xbfb03018, ESI=3D0x00000000, EDI=3D0x00000000 EIP=3D0x2b558260, EFLAGS=3D0x00010246 Top of Stack: (sp=3D0xbfb02fec) 0xbfb02fec: 2b558325 2d5a0980 00000000 280966d3 0xbfb02ffc: 00000000 2d5a0980 2d5a0970 bfb03048 0xbfb0300c: 2b5582e0 2d5a0970 316ac248 bfb03048 0xbfb0301c: 2b558325 2d5a0960 00000000 280966d3 0xbfb0302c: 00000000 2d5a0960 2d5a0950 bfb03078 0xbfb0303c: 2b5582e0 2d5a0950 316ac248 bfb03078 0xbfb0304c: 2b558325 2d5a0940 00000000 280966d3 0xbfb0305c: 00000000 2d5a0940 2d5a0930 bfb030a8 Instructions: (pc=3D0x2b558260) 0x2b558250: 90 90 90 90 90 90 90 3b 41 04 0f 85 20 ae fe ff 0x2b558260: 89 84 24 00 d0 ff ff 55 8b ec 83 ec 28 8b 75 08 Stack: [0xbfb00000,0xbfc00000), sp=3D0xbfb02fec, free space=3D11k Native frames: (J=3Dcompiled Java code, j=3Dinterpreted, Vv=3DVM code, C=3D= native code) J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V J Constr.<init>()V ...<more frames>... --------------- P R O C E S S --------------- Java Threads: ( =3D> current thread ) 0x08140c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3D135532032] 0x08140800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3D135= 531008] 0x08140400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3D135529984] 0x08140000 JavaThread "Finalizer" daemon [_thread_blocked, id=3D135528960= ] 0x0806bc00 JavaThread "Reference Handler" daemon [_thread_blocked, id=3D134659584] =3D>0x08060c00 JavaThread "main" [_thread_in_Java, id=3D134610944] Other Threads: 0x0805af00 VMThread [id=3D134658560] 0x0805aa00 WatcherThread [id=3D135655936] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 576K, used 326K [0x2d560000, 0x2d600000, 0x2da4= 0000) eden space 512K, 51% used [0x2d560000, 0x2d5a1a88, 0x2d5e0000) from space 64K, 100% used [0x2d5f0000, 0x2d600000, 0x2d600000) to space 64K, 0% used [0x2d5e0000, 0x2d5e0000, 0x2d5f0000) tenured generation total 1408K, used 416K [0x2da40000, 0x2dba0000, 0x31560000) the space 1408K, 29% used [0x2da40000, 0x2daa8008, 0x2daa8200, 0x2dba00= 00) compacting perm gen total 8192K, used 1329K [0x31560000, 0x31d60000, 0x35560000) the space 8192K, 16% used [0x31560000, 0x316ac508, 0x316ac600, 0x31d600= 00) No shared spaces configured. Dynamic libraries: 0x08048000 =09/usr/local/jdk1.5.0/bin/java 0x2808c000 =09/usr/lib/libpthread.so.1 0x280b0000 =09/lib/libc.so.5 0x2818b000 =09/usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so 0x285dd000 =09/lib/libm.so.3 0x285f9000 =09/usr/local/jdk1.5.0/jre/lib/i386/native_threads/libhpi.so 0x2860a000 =09/usr/local/jdk1.5.0/jre/lib/i386/libverify.so 0x28617000 =09/usr/local/jdk1.5.0/jre/lib/i386/libjava.so 0x28635000 =09/usr/local/jdk1.5.0/jre/lib/i386/libzip.so 0x28055000 =09/libexec/ld-elf.so.1 VM Arguments: java_command: Constr Environment Variables: JAVA_HOME=3D/usr/local/jdk1.5.0 PATH=3D/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/= bin:/usr/X11R6/bin:/home/alex/bin LD_LIBRARY_PATH=3D/usr/local/jdk1.5.0/jre/lib/i386/client:/usr/local/jdk1.5= .0/jre/lib/i386:/usr/local/jdk1.5.0/jre/../lib/i386 SHELL=3D/bin/csh DISPLAY=3D:0.0 HOSTTYPE=3DFreeBSD OSTYPE=3DFreeBSD MACHTYPE=3Di386 --------------- S Y S T E M --------------- OS:FreeBSD uname:FreeBSD 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Wed Oct 19 20:52:56 MSD 2005 root@st1.fqdn:/usr/src/sys/i386/compile/st1deb i386 rlimit: STACK 65536k, CORE infinity, NOFILE 7322 CPU:total 1 family 6, cmov, cx8, fxsr, mmx Memory: 4k page, physical 469292k vm_info: Java HotSpot(TM) Client VM (1.5.0-p2-root_21_oct_2005_11_50) for freebsd-x86, built on Oct 21 2005 13:43:00 by root with gcc 3.4.2 [FreeBSD] 20040728 ------------------------ P.S. -------------------------- in jdk1.4.2-p7 after run this class I just get stack overflow error. %java TestCon Exception in thread "main" java.lang.StackOverflowError
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?426b510c0510230351k718c38ffr43273a31204414e6>