Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 May 2010 23:10:42 +0200
From:      Ondrej Majerech <oxyd.oxyd@gmail.com>
To:        java@FreeBSD.org, freebsd-questions@FreeBSD.org
Subject:   Eclipse causes segmentation fault in Java
Message-ID:  <4BEC6AD2.9070800@gmail.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------070504040305060900090501
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hey,

I have a fresh FBSD 8-Stable/AMD64 installation and I want to run 
Eclipse. This is what I get:

[starlight] ~ > eclipse
realpath: : No such file or directory
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000825d6d985, pid=11170, tid=0xa0ae40
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM 
(1.6.0_03-p4-root_13_may_2010_21_53-b00 mixed mode)
# Problematic frame:
# C  [libglib-2.0.so.0+0x18985]  g_base64_encode_step+0xe5
#
# An error report file with more information is saved as hs_err_pid11170.log
#
# Please submit bug reports to freebsd-java@FreeBSD.org
#

Mentioned file is attached.

I'm using jdk16 from ports. I have also tried with diablo-jdk from ports 
with exactly the same result.

 > java -version
realpath: : No such file or directory
java version "1.6.0_03-p4"
Java(TM) SE Runtime Environment (build 
1.6.0_03-p4-root_13_may_2010_21_53-b00)
Java HotSpot(TM) 64-Bit Server VM (build 
1.6.0_03-p4-root_13_may_2010_21_53-b00, mixed mode)

After Eclipse crashes like this, my system becomes unusably slow: in top 
I can see the java process using 43 GB of memory (the "SIZE" column) and 
being in "STOP" state. Java is then slowly consuming my physical memory 
until I reboot.

It is apparantely trying to dump a core:

 > ls -lh ~/java.core
-rw-------  1 oxyd  oxyd    43G May 13 21:15 /usr/home/oxyd/java.core

I need to say this is the largest coredump I've ever seen.

Doing sysctl kern.coredump=0 and retrying Eclipse produces the same 
error but doesn't hang my machine.

I'm also unsure about the "realpath: : No such file or directory" 
message that appears in the output, but I don't know what it means and 
Google doesn't help much.

I'll be happy to hear any suggestions.

~ Ondra

--------------070504040305060900090501
Content-Type: text/plain;
 name="hs_err_pid11170.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="hs_err_pid11170.log"

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000825d6d985, pid=11170, tid=0xa0ae40
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-p4-root_13_may_2010_21_53-b00 mixed mode)
# Problematic frame:
# C  [libglib-2.0.so.0+0x18985]  g_base64_encode_step+0xe5
#
# Please submit bug reports to freebsd-java@FreeBSD.org
#

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

Current thread (0x0000000800a8e000):  JavaThread "main" [_thread_in_native, id=10530368]

siginfo:si_signo=11, si_errno=0, si_code=2, si_addr=0x0000000825a0d000

Registers:
RAX=0x0000000000000000, RBX=0x00007fffffbec69c, RCX=0x0000000825dd1740, RDX=0x0000000000000000
RSP=0x00007fffffbec660, RBP=0x000000082a000000, RSI=0x0000000000000007, RDI=0x0000000825a0d000
R8 =0x000000082a70f6a8, R9 =0x00007fffffbec698, R10=0x0000000000000000, R11=0x0000000825a0cffe
R12=0x00000010254c2346, R13=0x0000000000000000, R14=0x0000000000000000, R15=0x00000008257f1b50
RIP=0x0000000825d6d985, EFL=0x0000000000000001, ERR=0x0000000000000004
  TRAPNO=0x000000000000000c

Top of Stack: (sp=0x00007fffffbec660)
0x00007fffffbec660:   00007fffffbec698 0000000800000c48
0x00007fffffbec670:   00007fffffbec69c 000000082a000000
0x00007fffffbec680:   00000008254c1700 0000000825d6ded3
0x00007fffffbec690:   00007fffffbec774 0000000000000000
0x00007fffffbec6a0:   00000008009a8c20 000000082567d600
0x00007fffffbec6b0:   0000000000000000 00007fffffbfd910
0x00007fffffbec6c0:   00000008257f1ba0 0000000829ebca35
0x00007fffffbec6d0:   0000000829ebb190 0000000829662280
0x00007fffffbec6e0:   0000000829662289 0000000000000010
0x00007fffffbec6f0:   0000000000000000 0000000000000000
0x00007fffffbec700:   0000000000000000 0000000000000000
0x00007fffffbec710:   00000008009a8c20 00000008007ee3f9
0x00007fffffbec720:   0000000800000c48 00000008254c1700
0x00007fffffbec730:   0000000829662220 00000008257b22c0
0x00007fffffbec740:   00000008257f7fb0 00000008256a1b00
0x00007fffffbec750:   0000000800a36800 0000000800ab1880
0x00007fffffbec760:   0000000800a9b800 0000000829646ed0
0x00007fffffbec770:   00000000ffbfd910 0000002000000000
0x00007fffffbec780:   0000000600000020 00000008009a8c20
0x00007fffffbec790:   000000082567d600 0000000000000000
0x00007fffffbec7a0:   00007fffffbfd910 0000000828306150
0x00007fffffbec7b0:   0000000000000000 0000000000000000
0x00007fffffbec7c0:   0000000000000000 0000000000000000
0x00007fffffbec7d0:   0000000000000000 0000000000000000
0x00007fffffbec7e0:   0000000000000000 0000000000000000
0x00007fffffbec7f0:   0000000000000000 0000000000000000
0x00007fffffbec800:   0000000000000000 0000000000000000
0x00007fffffbec810:   0000000000000000 0000000000000000
0x00007fffffbec820:   0000000000000000 0000000000000000
0x00007fffffbec830:   0000000000000000 0000000000000000
0x00007fffffbec840:   0000000000000000 0000000000000000
0x00007fffffbec850:   0000000000000000 0000000000000000 

Instructions: (pc=0x0000000825d6d985)
0x0000000825d6d975:   b6 17 48 83 c7 01 44 89 d0 48 8d 0d bb 3d 06 00
0x0000000825d6d985:   0f b6 37 c1 f8 02 41 83 e2 03 4c 8d 5f 01 48 98 

Stack: [0x00007fffffaff000,0x00007fffffbff000),  sp=0x00007fffffbec660,  free space=949k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libglib-2.0.so.0+0x18985]  g_base64_encode_step+0xe5

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.gtk.OS._gdk_pixbuf_new_from_file([B[J)J+0
j  org.eclipse.swt.internal.gtk.OS.gdk_pixbuf_new_from_file([B[J)J+9
j  org.eclipse.swt.graphics.Image.<init>(Lorg/eclipse/swt/graphics/Device;Ljava/lang/String;)V+64
j  org.eclipse.jface.resource.URLImageDescriptor.createImage(ZLorg/eclipse/swt/graphics/Device;)Lorg/eclipse/swt/graphics/Image;+22
j  org.eclipse.jface.resource.ImageDescriptor.createImage(Z)Lorg/eclipse/swt/graphics/Image;+5
j  org.eclipse.jface.resource.ImageDescriptor.createImage()Lorg/eclipse/swt/graphics/Image;+2
j  org.eclipse.ui.internal.Workbench.initializeImages()V+28
j  org.eclipse.ui.internal.Workbench.createDisplay()Lorg/eclipse/swt/widgets/Display;+103
j  org.eclipse.ui.PlatformUI.createDisplay()Lorg/eclipse/swt/widgets/Display;+0
j  org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay()Lorg/eclipse/swt/widgets/Display;+0
j  org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+1
j  org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+135
j  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
j  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+149
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+66
v  ~StubRoutines::call_stub
j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j  org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+211
j  org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+114
j  org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
j  org.eclipse.equinox.launcher.Main.main([Ljava/lang/String;)V+10
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x0000000800a88800 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=10947392]
  0x0000000800a89000 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=10946944]
  0x0000000800a89400 JavaThread "State Data Manager" daemon [_thread_blocked, id=10947840]
  0x0000000800a8d800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=10951424]
  0x0000000800a8b400 JavaThread "CompilerThread1" daemon [_thread_blocked, id=10951872]
  0x0000000800a8bc00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=10952320]
  0x0000000800a8c400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10952768]
  0x0000000800a8c800 JavaThread "Finalizer" daemon [_thread_blocked, id=10953216]
  0x0000000800a8d000 JavaThread "Reference Handler" daemon [_thread_blocked, id=10953664]
=>0x0000000800a8e000 JavaThread "main" [_thread_in_native, id=10530368]

Other Threads:
  0x0000000800af8000 VMThread [id=10954112]
  0x0000000800af7800 WatcherThread [id=10955456]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 11968K, used 7591K [0x000000081f8a0000, 0x00000008205f0000, 0x0000000824df0000)
  eden space 10304K, 62% used [0x000000081f8a0000,0x000000081feddeb0,0x00000008202b0000)
  from space 1664K, 72% used [0x00000008202b0000,0x00000008203dc018,0x0000000820450000)
  to   space 1664K, 0% used [0x0000000820450000,0x0000000820450000,0x00000008205f0000)
 PSOldGen        total 27328K, used 0K [0x0000000814df0000, 0x00000008168a0000, 0x000000081f8a0000)
  object space 27328K, 0% used [0x0000000814df0000,0x0000000814df0000,0x00000008168a0000)
 PSPermGen       total 21248K, used 10495K [0x0000000804df0000, 0x00000008062b0000, 0x0000000814df0000)
  object space 21248K, 49% used [0x0000000804df0000,0x000000080582fdc8,0x00000008062b0000)

Dynamic libraries:
0x0000000000400000 	/usr/local/jdk1.6.0/bin/java
0x0000000800657000 	/lib/libthr.so.3
0x000000080076f000 	/lib/libc.so.7
0x0000000800c00000 	/usr/local/jdk1.6.0/jre/lib/amd64/server/libjvm.so
0x000000080144a000 	/usr/lib/libstdc++.so.6
0x0000000801655000 	/lib/libm.so.5
0x0000000801774000 	/lib/libgcc_s.so.1
0x0000000801881000 	/usr/local/jdk1.6.0/jre/lib/amd64/native_threads/libhpi.so
0x000000080198d000 	/usr/local/jdk1.6.0/jre/lib/amd64/libverify.so
0x0000000801a9e000 	/usr/local/jdk1.6.0/jre/lib/amd64/libjava.so
0x0000000801bd2000 	/usr/local/jdk1.6.0/jre/lib/amd64/libzip.so
0x0000000801cdb000 	/lib/libz.so.5
0x0000000825a00000 	/usr/local/eclipse/plugins/org.eclipse.equinox.launcher.gtk.freebsd.x86_64_1.0.101.R34x_v20080731/eclipse_1116.so
0x0000000825b0e000 	/usr/local/lib/libgobject-2.0.so.0
0x0000000825c51000 	/usr/local/lib/libgthread-2.0.so.0
0x0000000825d55000 	/usr/local/lib/libglib-2.0.so.0
0x0000000825f26000 	/usr/local/lib/libintl.so.8
0x000000082602f000 	/usr/local/lib/libiconv.so.3
0x0000000826229000 	/usr/local/lib/libpcre.so.0
0x000000082635b000 	/usr/local/lib/libgdk-x11-2.0.so.0
0x0000000826506000 	/usr/local/lib/libpangocairo-1.0.so.0
0x0000000826612000 	/usr/local/lib/libpangoft2-1.0.so.0
0x0000000826742000 	/usr/local/lib/libpango-1.0.so.0
0x000000082688a000 	/usr/local/lib/libXinerama.so.1
0x000000082698c000 	/usr/local/lib/libXi.so.6
0x0000000826a9a000 	/usr/local/lib/libXrandr.so.2
0x0000000826ba2000 	/usr/local/lib/libXcursor.so.1
0x0000000826cac000 	/usr/local/lib/libXcomposite.so.1
0x0000000826daf000 	/usr/local/lib/libXext.so.6
0x0000000826ec0000 	/usr/local/lib/libXdamage.so.1
0x0000000826fc2000 	/usr/local/lib/libXfixes.so.3
0x00000008270c7000 	/usr/local/lib/libcairo.so.2
0x000000082723f000 	/usr/local/lib/libpixman-1.so.9
0x0000000827392000 	/usr/local/lib/libfontconfig.so.1
0x00000008274c4000 	/usr/local/lib/libfreetype.so.9
0x0000000827645000 	/usr/local/lib/libexpat.so.6
0x0000000827768000 	/usr/local/lib/libpng.so.6
0x000000082788e000 	/usr/local/lib/libxcb-render-util.so.0
0x0000000827991000 	/usr/local/lib/libxcb-render.so.0
0x0000000827a99000 	/usr/local/lib/libXrender.so.1
0x0000000827ba2000 	/usr/local/lib/libX11.so.6
0x0000000827dd1000 	/usr/local/lib/libxcb.so.2
0x0000000827eeb000 	/usr/local/lib/libXau.so.6
0x0000000827fee000 	/usr/local/lib/libXdmcp.so.6
0x00000008280f3000 	/usr/local/lib/libpthread-stubs.so.0
0x00000008281f4000 	/usr/lib/librpcsvc.so.5
0x00000008282fd000 	/usr/local/lib/libgdk_pixbuf-2.0.so.0
0x0000000828417000 	/usr/local/lib/libgio-2.0.so.0
0x00000008285bc000 	/usr/local/lib/libgmodule-2.0.so.0
0x00000008286bf000 	/usr/local/lib/libgtk-x11-2.0.so.0
0x0000000828bbc000 	/usr/local/lib/libatk-1.0.so.0
0x0000000829200000 	/usr/local/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
0x0000000828cdc000 	/usr/local/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-bmp.so
0x000000082932a000 	/usr/local/jdk1.6.0/jre/lib/amd64/libnet.so
0x0000000829441000 	/usr/local/jdk1.6.0/jre/lib/amd64/libnio.so
0x0000000829800000 	/usr/home/oxyd/.eclipse/org.eclipse.platform_3.4.0_185596441/configuration/org.eclipse.osgi/bundles/129/1/.cp/libswt-gtk-3452.so
0x0000000829945000 	/usr/home/oxyd/.eclipse/org.eclipse.platform_3.4.0_185596441/configuration/org.eclipse.osgi/bundles/129/1/.cp/libswt-pi-gtk-3452.so
0x0000000829ab4000 	/usr/local/lib/libXtst.so.6
0x0000000829c18000 	/usr/local/lib/pango/1.6.0/modules/pango-basic-fc.so
0x0000000829db3000 	/usr/local/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-gif.so
0x0000000829eb9000 	/usr/local/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
0x0000000800511000 	/libexec/ld-elf.so.1

VM Arguments:
jvm_args: -Xms40m -Xmx256m -XX:MaxPermSize=256m
java_command: /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -os freebsd -ws gtk -arch x86_64 -showsplash -launcher /usr/local/eclipse/eclipse -name Eclipse --launcher.library /usr/local/eclipse//plugins/org.eclipse.equinox.launcher.gtk.freebsd.x86_64_1.0.101.R34x_v20080731/eclipse_1116.so -startup /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -exitdata 35c0009 -vm /usr/local/bin/java -vmargs -Xms40m -Xmx256m -XX:MaxPermSize=256m -jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/local/jdk1.6.0
PATH=/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/home/oxyd/bin:/home/oxyd/scripts/:/home/oxyd/scripts/:/home/oxyd/scripts/
LD_LIBRARY_PATH=/usr/local/jdk1.6.0/jre/lib/amd64/server:/usr/local/jdk1.6.0/jre/lib/amd64:/usr/local/jdk1.6.0/jre/../lib/amd64::/usr/local/lib/libxul:/usr/local/lib/libxul
SHELL=/usr/local/bin/zsh
DISPLAY=:0.0

Signal Handlers:
SIGSEGV: [libjvm.so+0x5d5960], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGBUS: [libjvm.so+0x5d5960], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGFPE: [libjvm.so+0x4a9410], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGPIPE: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000002
SIGILL: [libjvm.so+0x4a9410], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000002
SIGUSR2: [libjvm.so+0x4ab600], sa_mask[0]=0x00000000, sa_flags=0x00000042
SIGHUP: [libjvm.so+0x4aa370], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGINT: [libjvm.so+0x4aa370], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGQUIT: [libjvm.so+0x4aa370], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGTERM: [libjvm.so+0x4aa370], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGUSR2: [libjvm.so+0x4ab600], sa_mask[0]=0x00000000, sa_flags=0x00000042


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

OS:Bsd
uname:FreeBSD 8.0-STABLE FreeBSD 8.0-STABLE #0 r207959: Wed May 12 14:25:58 CEST 2010     root@starlight:/usr/obj/usr/src/sys/STARLIGHT amd64
rlimit: STACK 524288k, CORE infinity, NPROC 5547, NOFILE 11095
CPU:total 2 (2 cores per cpu, 1 threads per core) family 15 model 107 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext

Memory: 4k page, physical 1892032k(473008k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-p4-root_13_may_2010_21_53-b00) for bsd-amd64, built on May 13 2010 22:02:34 by "root" with gcc 4.2.1 20070719  [FreeBSD]


--------------070504040305060900090501--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BEC6AD2.9070800>