From owner-freebsd-java@FreeBSD.ORG Mon Apr 18 11:07:03 2011 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9CEA1065743 for ; Mon, 18 Apr 2011 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7C8E68FC15 for ; Mon, 18 Apr 2011 11:07:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p3IB73R9019543 for ; Mon, 18 Apr 2011 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p3IB72Lc019541 for freebsd-java@FreeBSD.org; Mon, 18 Apr 2011 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Apr 2011 11:07:02 GMT Message-Id: <201104181107.p3IB72Lc019541@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2011 11:07:03 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/156319 java [patch] java/openjdk6 does not compile with previous l o ports/155967 java [bsd.java.mk] [patch] javavm wrapper insists on diablo o ports/155657 java java/openjdk6: missing symlink for include/freebsd/* o java/155107 java [patch] port java/diablo-jdk16 small cosmetic fix for o ports/154884 java java/openjdk6: Every NetBeans version on FreeBSD 8.1 c o ports/151923 java [patch] java/openjdk6: free and native openjdk bootstr o ports/151042 java [patch] java/openjdk6 Respect CC o ports/150142 java Not installed java/openjdk6 on file system zfs /usr/lo o java/147512 java Crash of RXTX-2.1-7 on AMD64 system o ports/142704 java [PATCH] java/jai-imageio: use $SUB_FILES to dynamicall o java/138729 java java/jdk16: setting 'export AWT_TOOLKIT=MToolkit' caus o java/138728 java java/jdk16: SIGSEGV in java runtime o java/128948 java java/jdk16 built from source can't bind a socket, but o java/128809 java JVM aborted when GNU RXTX write to serial port. o java/123555 java linux-sun-jdk15, linux-sun-jdk16 produce a coredump o java/122513 java native JDKs unbuildable with Linux ones f java/121692 java java/jdk16: Java 1.5 1.5.0.14p8 crashes in RMI TCP Con o ports/120372 java java/linux-sun-jdk16: linux-sun-jre1.6.0 plugin doesn' o java/120146 java java/jdk15: netbeans 6.0 causes java core dump on amd6 o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o java/119063 java An unexpected error has been detected by Java Runtime o java/118956 java eclipse and netbeans break on diablo-jdk15 o java/118496 java Eclipse packages do not work with 6.3-RC1/amd64 o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/114644 java tomcat goes out of PermSpace, jvm crashes o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/113467 java Multiple "missing return value" errors building JDK on f java/112595 java Java appletviewer frequently hangs (kse_release loop) o java/110912 java Java krb5 client leaks UDP connections o java/97461 java Diablo JDK does not report Update level in a format su s java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in 32 problems total. From owner-freebsd-java@FreeBSD.ORG Tue Apr 19 09:50:29 2011 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A64A7106564A; Tue, 19 Apr 2011 09:50:29 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id B89748FC1A; Tue, 19 Apr 2011 09:50:28 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA26737; Tue, 19 Apr 2011 12:50:27 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1QC7Zj-0008rA-0s; Tue, 19 Apr 2011 12:50:27 +0300 Message-ID: <4DAD5AE1.9010302@FreeBSD.org> Date: Tue, 19 Apr 2011 12:50:25 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110308 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Jung-uk Kim , freebsd-java@FreeBSD.org References: <4D90F7BC.3050107@freebsd.org> <201103281727.50256.jkim@FreeBSD.org> In-Reply-To: <201103281727.50256.jkim@FreeBSD.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: firefox 4, openjdk6, icedtea - a problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2011 09:50:29 -0000 Here's a new twist. First, some more details. The applet in question would start normally, but then at some point it would seem to just hang. Then I accidentally noticed that if I let the applet to just sit there, then it would recover after some long-ish timeout, like 3 or 5 minutes. I started investigating that and here are some results. It seems that the plugin and a Java process that actually runs an applet communicate with each other over a couple of named pipes (fifos). I see the following when the hang happens: - the plugin sends GetJavaObject message to the applet runner via fifo #1 - the applet runner gets the message, processes it and sends a reply via fifo #2 - the plugin doesn't see the message and keeps waiting - the plugin finally times out and goes on to do other things - a while later the plugin reads the message from fifo #2 So the problem seems to be that the plugin somehow doesn't see that there is a message available for it in the fifo (or doesn't even check) until much later. Some code snippets from the plugin code. That's how the reception channel is set up: in_from_appletviewer = g_io_channel_new_file (in_pipe_name,"r", &channel_error); in_watch_source = g_io_add_watch (in_from_appletviewer, (GIOCondition) (G_IO_IN | G_IO_ERR | G_IO_HUP), plugin_in_pipe_callback, (gpointer) in_from_appletviewer); That's how the plugin waits for a response: do { clock_gettime(CLOCK_REALTIME, &curr_t); if (!result_ready && (curr_t.tv_sec < t.tv_sec)) { if (g_main_context_pending(NULL)) g_main_context_iteration(NULL, false); else usleep(200); } else break; } while (1); I suppose that internally the glib code should perform some kind of poll/select on a fifo fd. Not sure where things go wrong though. Maybe something in glib, maybe firefox somehow messes up its polling. Maybe this would ring a bell for anybody. -- Andriy Gapon From owner-freebsd-java@FreeBSD.ORG Tue Apr 19 13:49:23 2011 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DF3C1065672; Tue, 19 Apr 2011 13:49:23 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 142CF8FC0A; Tue, 19 Apr 2011 13:49:21 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA01420; Tue, 19 Apr 2011 16:49:19 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4DAD92DF.3040303@FreeBSD.org> Date: Tue, 19 Apr 2011 16:49:19 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110309 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-java@FreeBSD.org References: <4D90F7BC.3050107@freebsd.org> <201103281727.50256.jkim@FreeBSD.org> <4DAD5AE1.9010302@FreeBSD.org> In-Reply-To: <4DAD5AE1.9010302@FreeBSD.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gecko@FreeBSD.org, Jung-uk Kim Subject: Re: firefox 4, openjdk6, icedtea - a problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2011 13:49:23 -0000 on 19/04/2011 12:50 Andriy Gapon said the following: > > Here's a new twist. > First, some more details. The applet in question would start normally, but then > at some point it would seem to just hang. Then I accidentally noticed that if I > let the applet to just sit there, then it would recover after some long-ish > timeout, like 3 or 5 minutes. > > I started investigating that and here are some results. > It seems that the plugin and a Java process that actually runs an applet > communicate with each other over a couple of named pipes (fifos). I see the > following when the hang happens: > - the plugin sends GetJavaObject message to the applet runner via fifo #1 > - the applet runner gets the message, processes it and sends a reply via fifo #2 > - the plugin doesn't see the message and keeps waiting > - the plugin finally times out and goes on to do other things > - a while later the plugin reads the message from fifo #2 > > So the problem seems to be that the plugin somehow doesn't see that there is a > message available for it in the fifo (or doesn't even check) until much later. > > Some code snippets from the plugin code. > That's how the reception channel is set up: > in_from_appletviewer = g_io_channel_new_file (in_pipe_name,"r", &channel_error); > in_watch_source = > g_io_add_watch (in_from_appletviewer, > (GIOCondition) (G_IO_IN | G_IO_ERR | G_IO_HUP), > plugin_in_pipe_callback, (gpointer) in_from_appletviewer); > > That's how the plugin waits for a response: > do > { > clock_gettime(CLOCK_REALTIME, &curr_t); > > if (!result_ready && (curr_t.tv_sec < t.tv_sec)) > { > if (g_main_context_pending(NULL)) > g_main_context_iteration(NULL, false); > else > usleep(200); > } > else > break; > > } while (1); > > I suppose that internally the glib code should perform some kind of poll/select > on a fifo fd. It seems that when the glib calls plugin_in_pipe_callback the associated fd is removed from glib's "poll list" and depending on what the callback returns the fd may be added back to the list. In my case the IcedTea code makes another request to its java process while being in plugin_in_pipe_callback and thus it "waits" for a response without the fifo fs actually being polled. I see that the triggering response from Java is "instance 2 url ..." and the "nested" request from the plugin is "instance 2 reference -2 GetJavaObject". It looks like while processing the first message the plugin calls into the browser via browser_functions.geturl and the browser calls back into the plugin via ITNP_GetValue(NPPVpluginScriptableNPObject). Not sure if it's an IcedTea's fault then (mis-use of glib API), or if it's a fault of Firefox 4. Because the same plugin works OK with Firefox 3 and Chromium. -- Andriy Gapon From owner-freebsd-java@FreeBSD.ORG Fri Apr 22 09:45:53 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B14E1065677 for ; Fri, 22 Apr 2011 09:45:53 +0000 (UTC) (envelope-from tiernan.messmer@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id F120F8FC19 for ; Fri, 22 Apr 2011 09:45:52 +0000 (UTC) Received: by pvg11 with SMTP id 11so335980pvg.13 for ; Fri, 22 Apr 2011 02:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=IKH/IRRYBKyw99PZUiE+mq5zq6akulkgcjRxi9FGjV4=; b=qTQViL1UavcsapgAWLgf8D9dWgro2Bk+y37FcgUHdy43aAAXH3F7/xesg7NsW9Ef03 cHUbLYdTfxgaJ4k9XXfyVFEIB1/nwTWbnYxOiUxurhPq4Fg6+hslK1xXSw67WOiQ2hQU NHKz4qHa/VfPbgkZjWJGY1h6r37CAxTD1H6wQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=n5ibq4EPT6WPr0BnE1w11xFiJ9yKU3t0MUbgnzRqENEuwCeSgioLQSiAxyPCSCJJ1q 1lGYtckF98/Kp/bS0+1ZZ8pgd8kEbyr5g0yAY+iynTGJPAY4vCuAaJmcB3rmAltVTsoe MSDBs0L0j7Klsv44d3P1pG+Jei9ax1vApAf48= Received: by 10.142.214.2 with SMTP id m2mr559925wfg.330.1303464241586; Fri, 22 Apr 2011 02:24:01 -0700 (PDT) Received: from [10.190.38.50] (ppp188-110.static.internode.on.net [150.101.188.110]) by mx.google.com with ESMTPS id z10sm3694320wfj.3.2011.04.22.02.23.58 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Apr 2011 02:24:00 -0700 (PDT) Message-ID: <4DB1492D.5060000@gmail.com> Date: Fri, 22 Apr 2011 19:23:57 +1000 From: Tiernan Messmer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-java@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Java Segfault X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2011 09:45:53 -0000 Hi, While running a Minecraft Server on FreeBSD 8.2-RELEASE amd64 I'm experiencing some intermittent crashes. The server is running CraftBukkit mod for Minecraft if it's relevant. java -version outputs: java version "1.6.0_03-p4" Java(TM) SE Runtime Environment (build 1.6.0_03-p4-root_03_apr_2011_06_26-b00) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-p4-root_03_apr_2011_06_26-b00, mixed mode) Running: diablo-jdk-1.6.0.07.02_13 Contents of hs_err_pid24138.log is below: # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000801d102a6, pid=24138, tid=0xa58ec0 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-p4-root_03_apr_2011_06_26-b00 mixed mode) # Problematic frame: # C [libz.so.5+0xa2a6] longest_match+0x1a6 # # Please submit bug reports to freebsd-java@FreeBSD.org # --------------- T H R E A D --------------- Current thread (0x0000000800a70000): JavaThread "Server thread" [_thread_in_native, id=10849984] siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x0000000896800000 Registers: RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0x0000000891663000, RDX=0xffffffffffffffe8 RSP=0x00007ffffeaed458, RBP=0x0000000000008000, RSI=0x00000008967fff02, RDI=0x0000000896800004 R8 =0x000000000000fdf8, R9 =0x00000008967ffefa, R10=0x00000008967f0000, R11=0x0000000000000002 R12=0x0000000000000000, R13=0x0000000000000002, R14=0x0000000000000000, R15=0x0000000800a70000 RIP=0x0000000801d102a6, EFL=0x0000000000000001, ERR=0x0000000000000004 TRAPNO=0x000000000000000c Top of Stack: (sp=0x00007ffffeaed458) 0x00007ffffeaed458: 0000000801d0f714 0000000891a33470 0x00007ffffeaed468: 0000000891663000 0000000000000004 0x00007ffffeaed478: 0000000801d0e70c 00000008868ebc00 0x00007ffffeaed488: 0000000000000001 00007ffffeaed530 0x00007ffffeaed498: 00007ffffeaed5a0 00007ffffeaed608 0x00007ffffeaed4a8: 0000000000000000 0000000800a70000 0x00007ffffeaed4b8: 0000000801c001e4 0000000801c03ef8 0x00007ffffeaed4c8: 0000000400000070 0000000000014000 0x00007ffffeaed4d8: 00007ffffeaed548 00007ffffeaed540 0x00007ffffeaed4e8: 0000000800a70190 00007ffffeaed590 0x00007ffffeaed4f8: 0000000891a33470 0000000800a1be00 0x00007ffffeaed508: 0001400000000000 0000000891e6e000 0x00007ffffeaed518: 0000000891e82000 000000080675e2d0 0x00007ffffeaed528: 0100000885207248 00007ffffeaed590 0x00007ffffeaed538: 0000000801f4d681 000000080675e258 0x00007ffffeaed548: 000000080675e2e8 00007ffffeaed5b0 0x00007ffffeaed558: 00000008868ec688 0000000000000000 0x00007ffffeaed568: 00000008868ebc00 0000000000000000 0x00007ffffeaed578: 00007ffffeaed5a0 00007ffffeaed600 0x00007ffffeaed588: 0000000801e1e009 000000080675e258 0x00007ffffeaed598: 0000000802049fd0 000000080675e2e8 0x00007ffffeaed5a8: 0001400000000000 0000000000000000 0x00007ffffeaed5b8: 00007ffffeaed5a8 00000008868eaa73 0x00007ffffeaed5c8: 00007ffffeaed620 00000008868ec688 0x00007ffffeaed5d8: 00000008868ed368 0000000000000001 0x00007ffffeaed5e8: 0000000000000000 00007ffffeaed668 0x00007ffffeaed5f8: 0000000801e1e04e 0000000801e1e04e 0x00007ffffeaed608: 0000000000014000 0000000000000000 0x00007ffffeaed618: 000000080675e2e8 000000080675e258 0x00007ffffeaed628: 00007ffffeaed628 00000008868eb30d 0x00007ffffeaed638: 00007ffffeaed680 00000008868ec688 0x00007ffffeaed648: 0000000000000000 00000008868eb318 Instructions: (pc=0x0000000801d102a6) 0x0000000801d10296: 8b 44 16 08 48 33 44 17 08 75 18 48 8b 44 16 10 0x0000000801d102a6: 48 33 44 17 10 75 08 48 83 c2 18 75 d8 eb 7b 48 Stack: [0x00007ffffe9ee000,0x00007ffffeaee000), sp=0x00007ffffeaed458, free space=1021k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libz.so.5+0xa2a6] longest_match+0x1a6 [error occurred during error reporting, step 120, id 0xb] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J java.util.zip.Deflater.deflateBytes([BII)I J java.util.zip.Deflater.deflate([BII)I j java.util.zip.Deflater.deflate([B)I+5 J net.minecraft.server.EntityPlayer.a(Z)V j net.minecraft.server.NetServerHandler.a(Lnet/minecraft/server/Packet10Flying;)V+1316 j net.minecraft.server.Packet10Flying.a(Lnet/minecraft/server/NetHandler;)V+2 J net.minecraft.server.NetworkManager.a()V J net.minecraft.server.NetworkListenThread.a()V J net.minecraft.server.MinecraftServer.h()V J net.minecraft.server.MinecraftServer.run()V j net.minecraft.server.ThreadServerApplication.run()V+4 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x000000088f4b3800 JavaThread "AWT-Shutdown" [_thread_blocked, id=-1910632512] 0x0000000891116c00 JavaThread "Connection #111 write thread" [_thread_blocked, id=-1910624896] 0x0000000891117400 JavaThread "Connection #111 read thread" [_thread_in_native, id=-1910629376] 0x0000000891117c00 JavaThread "Connection #110 write thread" [_thread_blocked, id=-1910625792] 0x0000000891118400 JavaThread "Connection #110 read thread" [_thread_in_native, id=-1910626688] 0x000000088f687800 JavaThread "TimerQueue" daemon [_thread_blocked, id=-1914209664] 0x000000088f687400 JavaThread "Thread-7" [_thread_blocked, id=-1914210112] 0x000000088df40000 JavaThread "Timer-0" daemon [_thread_blocked, id=-1914187264] 0x000000088df40800 JavaThread "Thread-5" [_thread_blocked, id=-1914185920] 0x000000088df41000 JavaThread "Listen thread" [_thread_in_native, id=-1914185472] 0x000000088df41400 JavaThread "Thread-4" daemon [_thread_in_native, id=-1914185024] 0x0000000800a76000 JavaThread "DestroyJavaVM" [_thread_blocked, id=10530368] =>0x0000000800a70000 JavaThread "Server thread" [_thread_in_native, id=10849984] 0x0000000800a71c00 JavaThread "Thread-1" daemon [_thread_blocked, id=10851776] 0x0000000800a72400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=10852224] 0x0000000800a72c00 JavaThread "CompilerThread1" daemon [_thread_blocked, id=10852672] 0x0000000800a73400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=10853120] 0x0000000800a73c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10853568] 0x0000000800ac3000 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=10854016] 0x0000000800a74400 JavaThread "Finalizer" daemon [_thread_blocked, id=10854464] 0x0000000800a74800 JavaThread "Reference Handler" daemon [_thread_blocked, id=10854912] Other Threads: 0x0000000800ae7800 VMThread [id=10855360] 0x0000000800ae7400 WatcherThread [id=10856256] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap par new generation total 38336K, used 27252K [0x0000000805200000, 0x0000000807b90000, 0x0000000807b90000) eden space 34112K, 68% used [0x0000000805200000, 0x00000008068b2110, 0x0000000807350000) from space 4224K, 94% used [0x0000000807770000, 0x0000000807b5b108, 0x0000000807b90000) to space 4224K, 0% used [0x0000000807350000, 0x0000000807350000, 0x0000000807770000) concurrent mark-sweep generation total 2054592K, used 1522610K [0x0000000807b90000, 0x0000000885200000, 0x0000000885200000) concurrent-mark-sweep perm gen total 45436K, used 27260K [0x0000000885200000, 0x0000000887e5f000, 0x000000088a600000) Dynamic libraries: 0x0000000000400000 /usr/local/jdk1.6.0/bin/java 0x0000000800657000 /lib/libthr.so.3 0x0000000800770000 /lib/libc.so.7 0x0000000800c00000 /usr/local/jdk1.6.0/jre/lib/amd64/server/libjvm.so 0x000000080146d000 /usr/lib/libstdc++.so.6 0x000000080167d000 /lib/libm.so.5 0x000000080179d000 /lib/libgcc_s.so.1 0x00000008018ab000 /usr/local/jdk1.6.0/jre/lib/amd64/native_threads/libhpi.so 0x00000008019b8000 /usr/local/jdk1.6.0/jre/lib/amd64/libverify.so 0x0000000801ac9000 /usr/local/jdk1.6.0/jre/lib/amd64/libjava.so 0x0000000801bfd000 /usr/local/jdk1.6.0/jre/lib/amd64/libzip.so 0x0000000801d06000 /lib/libz.so.5 0x000000088d6c1000 /usr/local/jdk1.6.0/jre/lib/amd64/libnet.so 0x000000088e400000 /usr/local/jdk1.6.0/jre/lib/amd64/libnio.so 0x0000000890a00000 /usr/local/jdk1.6.0/jre/lib/amd64/libawt.so 0x0000000890bff000 /usr/local/jdk1.6.0/jre/lib/amd64/libmlib_image.so 0x000000088fe00000 /usr/local/jdk1.6.0/jre/lib/amd64/headless/libmawt.so 0x0000000800511000 /libexec/ld-elf.so.1 VM Arguments: jvm_args: -Xms1024M -Xmx2048M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC java_command: craftbukkit-0.0.1-SNAPSHOT.jar nogui Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/local/jdk1.6.0 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/nvx/bin USERNAME=minecraft 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 SHELL=/usr/local/bin/zsh 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: [libjvm.so+0x4a9410], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 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.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 rlimit: STACK 524288k, CORE infinity, NPROC 5547, NOFILE 11095 CPU:total 2 (2 cores per cpu, 1 threads per core) family 16 model 6 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext, sse4a Memory: 4k page, physical 2946524k(736631k free) vm_info: Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-p4-root_03_apr_2011_06_26-b00) for bsd-amd64, built on Apr 3 2011 06:29:27 by "root" with gcc 4.2.1 20070719 [FreeBSD] Any ideas on where to go from here? I have a 2.4GB core dump for Java from the crash as well. Regards, Tiernan Messmer From owner-freebsd-java@FreeBSD.ORG Fri Apr 22 12:13:53 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3953D1065670 for ; Fri, 22 Apr 2011 12:13:53 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp1.utsp.utwente.nl [130.89.2.8]) by mx1.freebsd.org (Postfix) with ESMTP id B2AA68FC0A for ; Fri, 22 Apr 2011 12:13:52 +0000 (UTC) Received: from pieter-dev.localnet (lux.student.utwente.nl [130.89.161.112]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id p3MBvg1J029003; Fri, 22 Apr 2011 13:57:42 +0200 From: Pieter de Goeje To: freebsd-java@freebsd.org Date: Fri, 22 Apr 2011 13:57:42 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.32-5-amd64; KDE/4.4.5; x86_64; ; ) References: <4DB1492D.5060000@gmail.com> In-Reply-To: <4DB1492D.5060000@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201104221357.42131.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact icts.servicedesk@utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Tiernan Messmer Subject: Re: Java Segfault X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2011 12:13:53 -0000 On Friday 22 April 2011 11:23:57 Tiernan Messmer wrote: > Hi, > > While running a Minecraft Server on FreeBSD 8.2-RELEASE amd64 I'm > experiencing some intermittent crashes. The server is running > CraftBukkit mod for Minecraft if it's relevant. > > Running: diablo-jdk-1.6.0.07.02_13 > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > J java.util.zip.Deflater.deflateBytes([BII)I > J java.util.zip.Deflater.deflate([BII)I > j java.util.zip.Deflater.deflate([B)I+5 > J net.minecraft.server.EntityPlayer.a(Z)V > > Any ideas on where to go from here? I have a 2.4GB core dump for Java > from the crash as well. There seem to be some issues with zip support in the diablo-jdk. Can you try running it on openjdk6? I haven't had any problems with the minecraft server on that JDK so far. - Pieter