From owner-freebsd-java@FreeBSD.ORG Sun Jan 31 02:23:43 2010 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 85F871065676 for ; Sun, 31 Jan 2010 02:23:43 +0000 (UTC) (envelope-from jlin@maxiscale.com) Received: from server505.appriver.com (server505c.appriver.com [98.129.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id 49CA58FC13 for ; Sun, 31 Jan 2010 02:23:43 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Primary: jlin@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: jlin@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.14 X-Note-Reverse-DNS: ht01.exg5.exghost.com X-Note-WHTLIST: jlin@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G169 G170 G171 G172 G176 G177 G188 G275 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.14] (HELO ht01.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.2.14) with ESMTPS id 25440859 for freebsd-java@FreeBSD.org; Sat, 30 Jan 2010 19:23:42 -0600 Received: from MBX01.exg5.exghost.com ([169.254.1.253]) by ht01.exg5.exghost.com ([98.129.23.14]) with mapi; Sat, 30 Jan 2010 19:23:46 -0600 From: Joe Lin To: "freebsd-java@FreeBSD.org" Date: Sat, 30 Jan 2010 19:23:44 -0600 Thread-Topic: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 Thread-Index: AcqiFAeyaUxs1oouQ6efPkd3UKDyWw== Message-ID: <8B6860326495B2438DCBEA74AA981C7A77B772EF@MBX01.exg5.exghost.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 31 Jan 2010 03:40:32 +0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 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: Sun, 31 Jan 2010 02:23:43 -0000 Hi I wrote a sample program trying to use DatagramChannel.write(ByteBuffer[= ] bufs). The exact same code works on Windows and Linux. But it fails on th= e Diablo VM under FreeBSD 7.0 64 bit. The exception: Exception in thread "main" java.io.IOException: Invalid argument at sun.nio.ch.DatagramDispatcher.writev0(Native Method) at sun.nio.ch.DatagramDispatcher.writev(DatagramDispatcher.java:37) at sun.nio.ch.IOUtil.write(IOUtil.java:164) at sun.nio.ch.DatagramChannelImpl.write0(DatagramChannelImpl.java:4= 14) at sun.nio.ch.DatagramChannelImpl.write(DatagramChannelImpl.java:43= 1) at java.nio.channels.DatagramChannel.write(DatagramChannel.java:418= ) at coco.McastSender.main(McastSender.java:68). Following is the test program. Thanks for any help: public class McastSender { public static void main(String[] args) throws IOException { DatagramChannel channel =3D DatagramChannel.open(); DatagramSocket socket =3D channel.socket(); System.out.println("channel:" + channel + ", socket:" + socket); byte[] buf =3D new byte[1024]; DatagramPacket packet =3D new DatagramPacket(buf, buf.length); BufferedReader reader =3D new BufferedReader(new InputStreamReader(= System.in)); InetAddress address =3D InetAddress.getByName(args[0]); while ( true ) { System.out.println("waiting..."); String line =3D reader.readLine(); channel.connect(new InetSocketAddress(address, 9998)); if ( channel.isConnected() ) System.out.println("channel is connected"); else System.out.println("channel is not connected"); packet.setData("Hello".getBytes()); ByteBuffer[] bufs =3D new ByteBuffer[2]; bufs[0] =3D ByteBuffer.allocate(64); bufs[0].put("Hello".getBytes()); bufs[0].flip(); bufs[1] =3D ByteBuffer.allocate(64); bufs[1].put("World".getBytes()); bufs[1].flip(); channel.write(bufs); System.out.println("sent to " + address); channel.disconnect(); } } } From owner-freebsd-java@FreeBSD.ORG Sun Jan 31 10:08:57 2010 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 711221065740 for ; Sun, 31 Jan 2010 10:08:57 +0000 (UTC) (envelope-from james@mansionfamily.plus.com) Received: from relay.ptn-ipout02.plus.net (relay.ptn-ipout02.plus.net [212.159.7.36]) by mx1.freebsd.org (Postfix) with ESMTP id 0F5CF8FC1A for ; Sun, 31 Jan 2010 10:08:56 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAAreZEtUXebi/2dsb2JhbADWJIRFBA Received: from relay03.plus.net ([84.93.230.226]) by relay.ptn-ipout02.plus.net with ESMTP; 31 Jan 2010 09:39:37 +0000 Received: from [80.229.150.39] (helo=pd600.barnhouse) by relay03.plus.net with esmtp (Exim) id 1NbWHJ-0007HV-CG; Sun, 31 Jan 2010 09:39:37 +0000 Received: from [192.168.0.132] (unknown [192.168.0.132]) by pd600.barnhouse (Postfix) with ESMTP id 370B53A2753; Sun, 31 Jan 2010 09:39:37 +0000 (GMT) Message-ID: <4B654FDA.7070603@mansionfamily.plus.com> Date: Sun, 31 Jan 2010 09:39:38 +0000 From: James Mansion User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Pieter de Goeje References: <201001301816.16987.pieter@degoeje.nl> <201001301958.59731.pieter@degoeje.nl> In-Reply-To: <201001301958.59731.pieter@degoeje.nl> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Plusnet-Relay: b0e9e631f393110904d4bbbefe364cdd Cc: freebsd-java@FreeBSD.org Subject: Re: OpenJDK 6/7 kqueue based NIO provider 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: Sun, 31 Jan 2010 10:08:57 -0000 Pieter de Goeje wrote: > From a cursory read of the code it can be seen that the existing Sun > implementations (even the shared part of the code) assumes poll like > back-ends. This is not a very good match for kqueue because it differs (in a > Would it be worth looking at an implementation that uses libev or libevent? James From owner-freebsd-java@FreeBSD.ORG Sun Jan 31 12:13:52 2010 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 EE32B106566B for ; Sun, 31 Jan 2010 12:13:51 +0000 (UTC) (envelope-from pitpalme+unix@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 524368FC08 for ; Sun, 31 Jan 2010 12:13:50 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 25so560667eya.3 for ; Sun, 31 Jan 2010 04:13:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type; bh=jnr636Us2OjRuXDMrwST/QpkxNHhcStcti6MIz3GE1Y=; b=h/QiO/gA9PR1IU89EE0kvETl8sY0s5UcbiiQvtiglz0Fn9DqJyl8PlSB6U8R6+LOC4 ws6dEANrfrlYnqARMCNsxrPcDBEuzEGi5ujXm92pn1DqpdEbdx2iC6GX7JsBwNEB6hmJ FtESRudoKgCoJFAZ2ZH014dG20i4pV9GmMTUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=KagQCJnsxyk13/gTNngJEBePNOqMXjLy2CS7VVvfBLQVYE+/NOwNK7T9Amk5CosoZr ya6bwhTo+MEWuyCfwCtv4DTQhpfeE5przSDBGMSn5RHTjWzPOR9B9m+AD/C0JAn4QxRj VYz/9kwDDCeaeI3Govcrwlyq0oih+xPSRCHJk= Received: by 10.213.109.219 with SMTP id k27mr3017234ebp.37.1264940029480; Sun, 31 Jan 2010 04:13:49 -0800 (PST) Received: from silverbox.sunrise.local (i577B6C2F.versanet.de [87.123.108.47]) by mx.google.com with ESMTPS id 14sm2792608ewy.7.2010.01.31.04.13.47 (version=SSLv3 cipher=RC4-MD5); Sun, 31 Jan 2010 04:13:48 -0800 (PST) Sender: Peter Palmreuther Message-ID: <4B6573F7.3060204@gmail.com> Date: Sun, 31 Jan 2010 13:13:43 +0100 From: Peter Palmreuther User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: freebsd-java@freebsd.org References: <4B612E5E.1010004@gmail.com> <572E9B12-1D19-4D98-9812-77D42BE0E742@getsnappy.com> In-Reply-To: <572E9B12-1D19-4D98-9812-77D42BE0E742@getsnappy.com> X-Enigmail-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070106040304000404080902" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Brian Gardner Subject: Re: openjdk6 "killed by Sonatype Nexus" 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: Sun, 31 Jan 2010 12:13:52 -0000 This is a multi-part message in MIME format. --------------070106040304000404080902 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello Brian, On 01/31/10, at 00:26 AM, Brian Gardner wrote: > Try compiling with fastdebug (make config), which will create a > fastdebug build in /usr/local/openjdk-fastdebug along with the > optimized build. See if this gets more precise information, although > I think there may be a bug in the reporting mechanism for generating > the stack traces. Thanks for your reply. My tomcat's "stdout.log" now reads ,-------[ /usr/local/apache-tomcat-6.0/logs/stdout.log ] ----- # To suppress the following error report, specify this argument # after -XX: or in .hotspotrc: SuppressErrorAt=/graphKit.cpp:1679 # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (/usr/ports/java/openjdk6/work/hotspot/src/share/vm/opto/graphKit.cpp:1679), pid=69638, tid=34392727168 # Error: assert(sp() >= inputs,"must have enough JVMS stack to execute") # # JRE version: 6.0-b17 # Java VM: OpenJDK 64-Bit Server VM (14.0-b16-fastdebug mixed mode bsd-amd64 ) # An error report file with more information is saved as: # /tmp/hs_err_pid69638.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # Current thread is 34392727168 Dumping core ... `------------------------------------------------------------- My syslog reports ,-------[ /var/log/messages ] ----- pid 69638 (java), uid 80: exited on signal 6 `---------------------------------- So it's 'SIGABRT' instead of 'SIGILL' right now. I can't find core dump, but 'hs_*.log' file(s). I've attached them. I sadly have no idea how to deal with what's in this files, that's way behind my knowledge. How to go on hunting for the culprit? Thanks in advance, and best regards, Peter --------------070106040304000404080902 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="hs_err_pid69638.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="hs_err_pid69638.log" # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (/usr/ports/java/openjdk6/work/hotspot/src/share/vm/opto/graphKit.cpp:1679), pid=69638, tid=34392727168 # Error: assert(sp() >= inputs,"must have enough JVMS stack to execute") # # JRE version: 6.0-b17 # Java VM: OpenJDK 64-Bit Server VM (14.0-b16-fastdebug mixed mode bsd-amd64 ) # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --------------- T H R E A D --------------- Current thread (0x0000000802606800): JavaThread "CompilerThread1" daemon [_thread_in_native, id=32988800, stack(0x00007fffff4f9000,0x00007fffff5f9000)] Stack: [0x00007fffff4f9000,0x00007fffff5f9000], sp=0x00007fffff5f6810, free space=1014k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0xa76ffc] V [libjvm.so+0xa774ed] V [libjvm.so+0x44d013] V [libjvm.so+0x54341d] V [libjvm.so+0x8c6e0b] V [libjvm.so+0x8cb263] V [libjvm.so+0x8bc7fe] V [libjvm.so+0x8be5da] V [libjvm.so+0x8bf732] V [libjvm.so+0x2fd5ec] V [libjvm.so+0x3d8742] V [libjvm.so+0x2fbdd9] V [libjvm.so+0x3dde3c] V [libjvm.so+0x3df6ac] V [libjvm.so+0xa161fe] V [libjvm.so+0x88e220] Current CompileTask: C2: 22% ! org.apache.lucene.index.SegmentMerger.mergeFields()I @ 617 (950 bytes) --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x000000084b80c000 JavaThread "MultiThreadedHttpConnectionManager cleanup" daemon [_thread_blocked, id=1275683776, stack(0x00007ffffd9de000,0x00007ffffdade000)] 0x000000084eb79000 JavaThread "pxpool-1-thread-2" [_thread_blocked, id=1320757056, stack(0x00007ffffdadf000,0x00007ffffdbdf000)] 0x000000084c872800 JavaThread "http-8180-8" daemon [_thread_blocked, id=1263684800, stack(0x00007ffffdbe0000,0x00007ffffdce0000)] 0x000000084c874000 JavaThread "http-8180-7" daemon [_thread_blocked, id=1263685248, stack(0x00007ffffdce1000,0x00007ffffdde1000)] 0x000000084c875000 JavaThread "http-8180-6" daemon [_thread_blocked, id=1263685696, stack(0x00007ffffdde2000,0x00007ffffdee2000)] 0x000000084c875800 JavaThread "http-8180-5" daemon [_thread_blocked, id=1263686144, stack(0x00007ffffdee3000,0x00007ffffdfe3000)] 0x000000084c876800 JavaThread "http-8180-4" daemon [_thread_blocked, id=1263686592, stack(0x00007ffffdfe4000,0x00007ffffe0e4000)] 0x000000084c877800 JavaThread "http-8180-3" daemon [_thread_blocked, id=1263687040, stack(0x00007ffffe0e5000,0x00007ffffe1e5000)] 0x000000084c878800 JavaThread "http-8180-2" daemon [_thread_blocked, id=1263687488, stack(0x00007ffffe1e6000,0x00007ffffe2e6000)] 0x0000000801feb000 JavaThread "TP-Monitor" daemon [_thread_blocked, id=32986112, stack(0x00007ffffe2e7000,0x00007ffffe3e7000)] 0x0000000801fec000 JavaThread "TP-Processor4" daemon [_thread_in_native, id=32985664, stack(0x00007ffffe3e8000,0x00007ffffe4e8000)] 0x0000000801fec800 JavaThread "TP-Processor3" daemon [_thread_blocked, id=32985216, stack(0x00007ffffe4e9000,0x00007ffffe5e9000)] 0x0000000801fed800 JavaThread "TP-Processor2" daemon [_thread_blocked, id=32984768, stack(0x00007ffffe5ea000,0x00007ffffe6ea000)] 0x0000000802604800 JavaThread "TP-Processor1" daemon [_thread_blocked, id=32984320, stack(0x00007ffffe6eb000,0x00007ffffe7eb000)] 0x000000084c879000 JavaThread "http-8180-1" daemon [_thread_blocked, id=1263687936, stack(0x00007ffffe7ec000,0x00007ffffe8ec000)] 0x0000000802604000 JavaThread "http-8180-Acceptor-0" daemon [_thread_in_native, id=32983872, stack(0x00007ffffe8ed000,0x00007ffffe9ed000)] 0x0000000802603000 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=32983424, stack(0x00007ffffe9ee000,0x00007ffffeaee000)] 0x0000000801fee800 JavaThread "pxpool-1-thread-1" [_thread_in_vm, id=32979392, stack(0x00007ffffeaef000,0x00007ffffebef000)] 0x0000000801ff0000 JavaThread "Thread-6" daemon [_thread_blocked, id=32982976, stack(0x00007ffffecf1000,0x00007ffffedf1000)] 0x0000000801ff1000 JavaThread "Thread-5" daemon [_thread_blocked, id=32982080, stack(0x00007ffffedf2000,0x00007ffffeef2000)] 0x0000000801ff2000 JavaThread "Thread-4" daemon [_thread_blocked, id=32980736, stack(0x00007ffffeef3000,0x00007ffffeff3000)] 0x0000000801ff3000 JavaThread "Thread-3" daemon [_thread_blocked, id=32981632, stack(0x00007ffffeff4000,0x00007fffff0f4000)] 0x0000000801ff3800 JavaThread "Thread-2" daemon [_thread_blocked, id=32980288, stack(0x00007fffff0f5000,0x00007fffff1f5000)] 0x0000000801ff4800 JavaThread "Thread-1" daemon [_thread_blocked, id=32982528, stack(0x00007fffff1f6000,0x00007fffff2f6000)] 0x0000000802605800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=32988352, stack(0x00007fffff3f8000,0x00007fffff4f8000)] =>0x0000000802606800 JavaThread "CompilerThread1" daemon [_thread_in_native, id=32988800, stack(0x00007fffff4f9000,0x00007fffff5f9000)] 0x0000000802607800 JavaThread "CompilerThread0" daemon [_thread_in_vm, id=32989248, stack(0x00007fffff5fa000,0x00007fffff6fa000)] 0x0000000802608000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=32989696, stack(0x00007fffff6fb000,0x00007fffff7fb000)] 0x0000000802609000 JavaThread "Finalizer" daemon [_thread_blocked, id=32990144, stack(0x00007fffff7fc000,0x00007fffff8fc000)] 0x000000080260a000 JavaThread "Reference Handler" daemon [_thread_blocked, id=32990592, stack(0x00007fffff8fd000,0x00007fffff9fd000)] 0x000000080260b000 JavaThread "main" [_thread_in_native, id=11570752, stack(0x00007fffffaff000,0x00007fffffbff000)] Other Threads: 0x000000084b278000 VMThread [stack: 0x00007fffff9fe000,0x00007fffffafe000] [id=32991040] 0x000000084b277800 WatcherThread [stack: 0x00007fffff2f7000,0x00007fffff3f7000] [id=32991936] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 39424K, used 6541K [0x0000000805810000, 0x00000008082d0000, 0x000000081ad60000) eden space 35072K, 16% used [0x0000000805810000, 0x0000000805dda3e0, 0x0000000807a50000) from space 4352K, 14% used [0x0000000807a50000, 0x0000000807ae92e0, 0x0000000807e90000) to space 4352K, 0% used [0x0000000807e90000, 0x0000000807e90000, 0x00000008082d0000) tenured generation total 87424K, used 31084K [0x000000081ad60000, 0x00000008202c0000, 0x0000000845810000) the space 87424K, 35% used [0x000000081ad60000, 0x000000081cbbb278, 0x000000081cbbb400, 0x00000008202c0000) compacting perm gen total 34688K, used 34554K [0x0000000845810000, 0x00000008479f0000, 0x000000084ac10000) the space 34688K, 99% used [0x0000000845810000, 0x00000008479ce8b8, 0x00000008479cea00, 0x00000008479f0000) No shared spaces configured. Dynamic libraries: 0x0000000000400000 /usr/local/openjdk6-fastdebug/bin/java 0x0000000800651000 /lib/libz.so.5 0x0000000800766000 /lib/libthr.so.3 0x000000080087e000 /lib/libc.so.7 0x0000000800c00000 /usr/local/openjdk6-fastdebug/jre/lib/amd64/server/libjvm.so 0x0000000801a88000 /usr/lib/libstdc++.so.6 0x0000000801c93000 /lib/libm.so.5 0x0000000801db2000 /lib/libgcc_s.so.1 0x0000000802000000 /usr/local/openjdk6-fastdebug/jre/lib/amd64/libverify.so 0x000000080210f000 /usr/local/openjdk6-fastdebug/jre/lib/amd64/libjava.so 0x000000080223a000 /usr/local/openjdk6-fastdebug/jre/lib/amd64/native_threads/libhpi.so 0x0000000802346000 /usr/local/lib/nss_mdns_minimal.so.1 0x000000080244a000 /usr/local/lib/nss_mdns.so.1 0x0000000802700000 /usr/local/openjdk6-fastdebug/jre/lib/amd64/libzip.so 0x000000084d000000 /usr/local/openjdk6-fastdebug/jre/lib/amd64/libnet.so 0x000000080050a000 /libexec/ld-elf.so.1 VM Arguments: jvm_args: -Xms128m -Xmx1024m -Djava.net.preferIPv4Stack=true -Dplexus.nexus-work=/dataspace/maven_repos/sonatype-work/ -Djava.endorsed.dirs=/usr/local/apache-tomcat-6.0/endorsed -Dcatalina.base=/usr/local/apache-tomcat-6.0 -Dcatalina.home=/usr/local/apache-tomcat-6.0 -Djava.io.tmpdir=/usr/local/apache-tomcat-6.0/temp java_command: org.apache.catalina.startup.Bootstrap start Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/local/openjdk6-fastdebug PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin:/root/sbin:/var/qmail/bin LD_LIBRARY_PATH=/usr/local/openjdk6-fastdebug/jre/lib/amd64/server:/usr/local/openjdk6-fastdebug/jre/lib/amd64:/usr/local/openjdk6-fastdebug/jre/../lib/amd64 SHELL=/usr/local/bin/zsh Signal Handlers: SIGSEGV: [libjvm.so+0xa77ce0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGBUS: [libjvm.so+0xa77ce0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGFPE: [libjvm.so+0x88a750], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGPIPE: [libjvm.so+0x88a750], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGXFSZ: [libjvm.so+0x88a750], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGILL: [libjvm.so+0x88a750], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000002 SIGUSR2: [libjvm.so+0x88e640], sa_mask[0]=0x00000000, sa_flags=0x00000042 SIGHUP: [libjvm.so+0x88d600], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGINT: [libjvm.so+0x88d600], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGTERM: [libjvm.so+0x88d600], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGQUIT: [libjvm.so+0x88d600], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 --------------- S Y S T E M --------------- OS:Bsd uname:FreeBSD 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 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 15 model 107 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext Memory: 4k page, physical 518692k(129673k free) vm_info: OpenJDK 64-Bit Server VM (14.0-b16-fastdebug) for bsd-amd64 JRE (1.6.0-fastdebug-b17), built on Jan 31 2010 12:23:44 by "root" with gcc 4.2.1 20070719 [FreeBSD] time: Sun Jan 31 12:48:11 2010 elapsed time: 126 seconds --------------070106040304000404080902-- From owner-freebsd-java@FreeBSD.ORG Sun Jan 31 12:25:04 2010 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 9F9BB1065672 for ; Sun, 31 Jan 2010 12:25:04 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from mx.utwente.nl (mx3.utsp.utwente.nl [130.89.2.14]) by mx1.freebsd.org (Postfix) with ESMTP id 1EA648FC08 for ; Sun, 31 Jan 2010 12:25:03 +0000 (UTC) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id o0VCOsHH019121; Sun, 31 Jan 2010 13:24:54 +0100 From: Pieter de Goeje To: James Mansion Date: Sun, 31 Jan 2010 13:24:53 +0100 User-Agent: KMail/1.9.10 References: <201001301816.16987.pieter@degoeje.nl> <201001301958.59731.pieter@degoeje.nl> <4B654FDA.7070603@mansionfamily.plus.com> In-Reply-To: <4B654FDA.7070603@mansionfamily.plus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201001311324.54206.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: freebsd-java@freebsd.org Subject: Re: OpenJDK 6/7 kqueue based NIO provider 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: Sun, 31 Jan 2010 12:25:04 -0000 On Sunday 31 January 2010 10:39:38 James Mansion wrote: > Pieter de Goeje wrote: > > From a cursory read of the code it can be seen that the existing Sun > > implementations (even the shared part of the code) assumes poll like > > back-ends. This is not a very good match for kqueue because it differs > > (in a > > Would it be worth looking at an implementation that uses libev or libevent? That is an interesting idea, such an implementation could potentially replace all existing back-ends with the exception of the Windows IOCP back-end. However libev doesn't seem to provide a non-blocking poll which is required for NIO (ev_loop always blocks AFAIK). -- Pieter From owner-freebsd-java@FreeBSD.ORG Sun Jan 31 20:23:49 2010 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 AD96E10656A3 for ; Sun, 31 Jan 2010 20:23:49 +0000 (UTC) (envelope-from james@mansionfamily.plus.com) Received: from relay.ptn-ipout02.plus.net (relay.ptn-ipout02.plus.net [212.159.7.36]) by mx1.freebsd.org (Postfix) with ESMTP id 490E08FC2B for ; Sun, 31 Jan 2010 20:23:48 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAHN1ZUvUnw4T/2dsb2JhbADWAYRFBA Received: from pih-relay06.plus.net ([212.159.14.19]) by relay.ptn-ipout02.plus.net with ESMTP; 31 Jan 2010 20:23:48 +0000 Received: from [80.229.150.39] (helo=pd600.barnhouse) by pih-relay06.plus.net with esmtp (Exim) id 1NbgKh-0002de-QW; Sun, 31 Jan 2010 20:23:47 +0000 Received: from [192.168.0.132] (unknown [192.168.0.132]) by pd600.barnhouse (Postfix) with ESMTP id 6550C3A2867; Sun, 31 Jan 2010 20:23:50 +0000 (GMT) Message-ID: <4B65E6D3.2010809@mansionfamily.plus.com> Date: Sun, 31 Jan 2010 20:23:47 +0000 From: James Mansion User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Pieter de Goeje References: <201001301816.16987.pieter@degoeje.nl> <201001301958.59731.pieter@degoeje.nl> <4B654FDA.7070603@mansionfamily.plus.com> <201001311324.54206.pieter@degoeje.nl> In-Reply-To: <201001311324.54206.pieter@degoeje.nl> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Plusnet-Relay: 622634fcbde4ee7017f767df80424e03 Cc: freebsd-java@FreeBSD.org Subject: Re: OpenJDK 6/7 kqueue based NIO provider 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: Sun, 31 Jan 2010 20:23:49 -0000 Pieter de Goeje wrote: > That is an interesting idea, such an implementation could potentially replace > all existing back-ends with the exception of the Windows IOCP back-end. > However libev doesn't seem to provide a non-blocking poll which is required > for NIO (ev_loop always blocks AFAIK). > I'll ask Marc. Would have thought that it wouldn't be too hard to arrance an immediate timeout or to register a known-available fd too (/dev/null?) James From owner-freebsd-java@FreeBSD.ORG Sun Jan 31 22:21:53 2010 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 8B137106566C for ; Sun, 31 Jan 2010 22:21:53 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp2.utsp.utwente.nl [130.89.2.9]) by mx1.freebsd.org (Postfix) with ESMTP id 09FA28FC17 for ; Sun, 31 Jan 2010 22:21:52 +0000 (UTC) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id o0VMLcIC023071; Sun, 31 Jan 2010 23:21:38 +0100 From: Pieter de Goeje To: James Mansion Date: Sun, 31 Jan 2010 23:21:37 +0100 User-Agent: KMail/1.9.10 References: <201001301816.16987.pieter@degoeje.nl> <201001311324.54206.pieter@degoeje.nl> <4B65E6D3.2010809@mansionfamily.plus.com> In-Reply-To: <4B65E6D3.2010809@mansionfamily.plus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201001312321.38447.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: freebsd-java@freebsd.org Subject: Re: OpenJDK 6/7 kqueue based NIO provider 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: Sun, 31 Jan 2010 22:21:53 -0000 On Sunday 31 January 2010 21:23:47 James Mansion wrote: > Pieter de Goeje wrote: > > That is an interesting idea, such an implementation could potentially > > replace all existing back-ends with the exception of the Windows IOCP > > back-end. However libev doesn't seem to provide a non-blocking poll which > > is required for NIO (ev_loop always blocks AFAIK). > > I'll ask Marc. Would have thought that it wouldn't be too hard to > arrance an immediate timeout or to register a known-available fd too > (/dev/null?) I misread the the documentation, it is in fact possible to do a non-blocking poll using the aptly named EVLOOP_NONBLOCK flag :-) I do think that implementing nio using libev is more work than just using kqueue directly, because the libev API is more complex. Especially considering the fact that I now have an almost correctly working kqueue backend here :D. -- Pieter From owner-freebsd-java@FreeBSD.ORG Mon Feb 1 00:01:41 2010 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 BB4EC1065672 for ; Mon, 1 Feb 2010 00:01:41 +0000 (UTC) (envelope-from jlin@maxiscale.com) Received: from server505.appriver.com (server505b.appriver.com [98.129.35.5]) by mx1.freebsd.org (Postfix) with ESMTP id 7C9078FC0C for ; Mon, 1 Feb 2010 00:01:41 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Primary: jlin@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: jlin@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.14 X-Note-Reverse-DNS: ht01.exg5.exghost.com X-Note-WHTLIST: jlin@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G169 G170 G171 G172 G176 G177 G188 G275 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.14] (HELO ht01.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.2.14) with ESMTPS id 21865594 for freebsd-java@freebsd.org; Sun, 31 Jan 2010 18:01:43 -0600 Received: from MBX01.exg5.exghost.com ([169.254.1.90]) by ht01.exg5.exghost.com ([98.129.23.14]) with mapi; Sun, 31 Jan 2010 18:01:40 -0600 From: Joe Lin To: "freebsd-java@freebsd.org" Date: Sun, 31 Jan 2010 18:01:38 -0600 Thread-Topic: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 Thread-Index: Acqi0boCP8kI5D2BQWGDTUgtRnkJuQ== Message-ID: <8B6860326495B2438DCBEA74AA981C7A78B220E0@MBX01.exg5.exghost.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 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, 01 Feb 2010 00:01:41 -0000 Hi I wrote a sample program trying to use DatagramChannel.write(ByteBuffer[= ] bufs). The exact same code works on Windows and Linux. But it fails on th= e Diablo VM under FreeBSD 7.0 64 bit. The exception: Exception in thread "main" java.io.IOException: Invalid argument at sun.nio.ch.DatagramDispatcher.writev0(Native Method) at sun.nio.ch.DatagramDispatcher.writev(DatagramDispatcher.java:37) at sun.nio.ch.IOUtil.write(IOUtil.java:164) at sun.nio.ch.DatagramChannelImpl.write0(DatagramChannelImpl.java:4= 14) at sun.nio.ch.DatagramChannelImpl.write(DatagramChannelImpl.java:43= 1) at java.nio.channels.DatagramChannel.write(DatagramChannel.java:418= ) at coco.McastSender.main(McastSender.java:68). Following is the test program. Thanks for any help: public class McastSender { public static void main(String[] args) throws IOException { DatagramChannel channel =3D DatagramChannel.open(); DatagramSocket socket =3D channel.socket(); System.out.println("channel:" + channel + ", socket:" + socket); byte[] buf =3D new byte[1024]; DatagramPacket packet =3D new DatagramPacket(buf, buf.length); BufferedReader reader =3D new BufferedReader(new InputStreamReader(= System.in)); InetAddress address =3D InetAddress.getByName(args[0]); while ( true ) { System.out.println("waiting..."); String line =3D reader.readLine(); channel.connect(new InetSocketAddress(address, 9998)); if ( channel.isConnected() ) System.out.println("channel is connected"); else System.out.println("channel is not connected"); packet.setData("Hello".getBytes()); ByteBuffer[] bufs =3D new ByteBuffer[2]; bufs[0] =3D ByteBuffer.allocate(64); bufs[0].put("Hello".getBytes()); bufs[0].flip(); bufs[1] =3D ByteBuffer.allocate(64); bufs[1].put("World".getBytes()); bufs[1].flip(); channel.write(bufs); System.out.println("sent to " + address); channel.disconnect(); } } } From owner-freebsd-java@FreeBSD.ORG Mon Feb 1 00:44:52 2010 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 A83CA106566C for ; Mon, 1 Feb 2010 00:44:52 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from mx.utwente.nl (mx2.utsp.utwente.nl [130.89.2.13]) by mx1.freebsd.org (Postfix) with ESMTP id 2C71A8FC19 for ; Mon, 1 Feb 2010 00:44:51 +0000 (UTC) Received: from nox-laptop.student.utwente.nl (nox-laptop.student.utwente.nl [130.89.160.140]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id o110ifF4001211; Mon, 1 Feb 2010 01:44:41 +0100 From: Pieter de Goeje To: freebsd-java@freebsd.org Date: Mon, 1 Feb 2010 01:44:41 +0100 User-Agent: KMail/1.9.10 References: <8B6860326495B2438DCBEA74AA981C7A78B220E0@MBX01.exg5.exghost.com> In-Reply-To: <8B6860326495B2438DCBEA74AA981C7A78B220E0@MBX01.exg5.exghost.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201002010144.41376.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: Joe Lin Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 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, 01 Feb 2010 00:44:52 -0000 On Monday 01 February 2010 01:01:38 Joe Lin wrote: > Hi I wrote a sample program trying to use > DatagramChannel.write(ByteBuffer[] bufs). The exact same code works on > Windows and Linux. But it fails on the Diablo VM under FreeBSD 7.0 64 bit. > The exception: > > Exception in thread "main" java.io.IOException: Invalid argument > at sun.nio.ch.DatagramDispatcher.writev0(Native Method) > at sun.nio.ch.DatagramDispatcher.writev(DatagramDispatcher.java:37) > at sun.nio.ch.IOUtil.write(IOUtil.java:164) > at > sun.nio.ch.DatagramChannelImpl.write0(DatagramChannelImpl.java:414) at > sun.nio.ch.DatagramChannelImpl.write(DatagramChannelImpl.java:431) at > java.nio.channels.DatagramChannel.write(DatagramChannel.java:418) at > coco.McastSender.main(McastSender.java:68). I can confirm it also doesn't work on FreeBSD 8/i386 and amd64 using jdk6 or openjdk6. I find it odd why it works on Linux because they have exactly the same writev(2) as we do. Scatter/gather I/O isn't very often used so I guess you're the first one that has run into this problem. -- Pieter de Goeje From owner-freebsd-java@FreeBSD.ORG Mon Feb 1 01:08:57 2010 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 7CD1C1065672 for ; Mon, 1 Feb 2010 01:08:57 +0000 (UTC) (envelope-from jlin@maxiscale.com) Received: from server505.appriver.com (server505b.appriver.com [98.129.35.5]) by mx1.freebsd.org (Postfix) with ESMTP id 44CC58FC08 for ; Mon, 1 Feb 2010 01:08:57 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Policy: GLOBAL - maxiscale.com X-Primary: jlin@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: jlin@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.14 X-Note-Reverse-DNS: ht01.exg5.exghost.com X-Note-WHTLIST: jlin@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G169 G170 G171 G172 G176 G177 G188 G275 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.14] (HELO ht01.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.2.14) with ESMTPS id 21868055; Sun, 31 Jan 2010 19:08:57 -0600 Received: from MBX01.exg5.exghost.com ([169.254.1.90]) by ht01.exg5.exghost.com ([98.129.23.14]) with mapi; Sun, 31 Jan 2010 19:08:56 -0600 From: Joe Lin To: Pieter de Goeje , "freebsd-java@freebsd.org" Date: Sun, 31 Jan 2010 19:08:55 -0600 Thread-Topic: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 Thread-Index: Acqi18pGdx4DTK8JQPucXVyTu+KYqQAAkQNQ Message-ID: <8B6860326495B2438DCBEA74AA981C7A78B220EE@MBX01.exg5.exghost.com> References: <8B6860326495B2438DCBEA74AA981C7A78B220E0@MBX01.exg5.exghost.com> <201002010144.41376.pieter@degoeje.nl> In-Reply-To: <201002010144.41376.pieter@degoeje.nl> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: RE: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 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, 01 Feb 2010 01:08:57 -0000 Thanks for the reply. I looked at JDK source code and it appears that the J= NI call should be in J2se/src/solaris/native/sun/nio/ch/DatagramDispatcher.c:write0(): There's only linux and solaris #ifdef but not for BSD. I wonder how/what BS= D is calling. Since I'm getting a "IOException:Invalid argument" so I guess= this should correspond to a EINVAL. And a sendmsg() in FreeBSD does not re= turn an EINVAL. So the Diablo port must be calling a writev(). But I could = not locate the source code. Wish I can find out what went wrong with dialbl= o VM. Thanks. -----Original Message----- From: Pieter de Goeje [mailto:pieter@degoeje.nl]=20 Sent: Sunday, January 31, 2010 4:45 PM To: freebsd-java@freebsd.org Cc: Joe Lin Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 On Monday 01 February 2010 01:01:38 Joe Lin wrote: > Hi I wrote a sample program trying to use > DatagramChannel.write(ByteBuffer[] bufs). The exact same code works on > Windows and Linux. But it fails on the Diablo VM under FreeBSD 7.0 64 bit= . > The exception: > > Exception in thread "main" java.io.IOException: Invalid argument > at sun.nio.ch.DatagramDispatcher.writev0(Native Method) > at sun.nio.ch.DatagramDispatcher.writev(DatagramDispatcher.java:3= 7) > at sun.nio.ch.IOUtil.write(IOUtil.java:164) > at > sun.nio.ch.DatagramChannelImpl.write0(DatagramChannelImpl.java:414) at > sun.nio.ch.DatagramChannelImpl.write(DatagramChannelImpl.java:431) at > java.nio.channels.DatagramChannel.write(DatagramChannel.java:418) at > coco.McastSender.main(McastSender.java:68). I can confirm it also doesn't work on FreeBSD 8/i386 and amd64 using jdk6 o= r=20 openjdk6. I find it odd why it works on Linux because they have exactly the= =20 same writev(2) as we do. Scatter/gather I/O isn't very often used so I gues= s=20 you're the first one that has run into this problem. --=20 Pieter de Goeje No virus found in this incoming message. Checked by AVG - www.avg.com=20 Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/30/10 22= :39:00 From owner-freebsd-java@FreeBSD.ORG Mon Feb 1 11:07:00 2010 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 E0D87106568D for ; Mon, 1 Feb 2010 11:07:00 +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 B51958FC25 for ; Mon, 1 Feb 2010 11:07:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o11B70EJ062850 for ; Mon, 1 Feb 2010 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o11B70L0062848 for freebsd-java@FreeBSD.org; Mon, 1 Feb 2010 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 1 Feb 2010 11:07:00 GMT Message-Id: <201002011107.o11B70L0062848@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, 01 Feb 2010 11:07:01 -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/142704 java [PATCH] java/jai-imageio: use $SUB_FILES to dynamicall o java/141919 java Serious remote vulnerability in the JRE o ports/139479 java java/linux-sun-jdk16 port doesn't work / needs update o java/138729 java java/jdk16: setting 'export AWT_TOOLKIT=MToolkit' caus o java/138728 java java/jdk16: SIGSEGV in java runtime o ports/138706 java /lib/libz.so version bump prevents java/jdk* from upgr 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 o java/121692 java java/jdk16: Java 1.5 1.5.0.14p8 crashes in RMI TCP Con o ports/121420 java java/jdk16: Java applet fails to find class under fire o ports/121416 java java/jdk15 can't build if BIN environment variable is 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 ports/116841 java cannot build java/jdk16 by using java/linux-sun-jdk16 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/115773 java [request] java.nio channel selectors should use kqueue 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 o java/112595 java Java appletviewer frequently hangs (kse_release loop) o java/110912 java Java krb5 client leaks UDP connections f java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/97461 java Diablo JDK does not report Update level in a format su o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires s java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in s ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext 33 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Feb 1 11:08:23 2010 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 318DD10656D2 for ; Mon, 1 Feb 2010 11:08:23 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp2.utsp.utwente.nl [130.89.2.9]) by mx1.freebsd.org (Postfix) with ESMTP id A85448FC25 for ; Mon, 1 Feb 2010 11:08:22 +0000 (UTC) Received: from nox-laptop.student.utwente.nl (nox-laptop.student.utwente.nl [130.89.160.140]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id o11B7vED031221; Mon, 1 Feb 2010 12:07:58 +0100 From: Pieter de Goeje To: freebsd-java@freebsd.org Date: Mon, 1 Feb 2010 12:07:56 +0100 User-Agent: KMail/1.9.10 References: <8B6860326495B2438DCBEA74AA981C7A78B220E0@MBX01.exg5.exghost.com> <201002010144.41376.pieter@degoeje.nl> <8B6860326495B2438DCBEA74AA981C7A78B220EE@MBX01.exg5.exghost.com> In-Reply-To: <8B6860326495B2438DCBEA74AA981C7A78B220EE@MBX01.exg5.exghost.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201002011207.57163.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: Joe Lin Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 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, 01 Feb 2010 11:08:23 -0000 On Monday 01 February 2010 02:08:55 Joe Lin wrote: > Thanks for the reply. I looked at JDK source code and it appears that the > JNI call should be in > > J2se/src/solaris/native/sun/nio/ch/DatagramDispatcher.c:write0(): > > > There's only linux and solaris #ifdef but not for BSD. I wonder how/what > BSD is calling. Since I'm getting a "IOException:Invalid argument" so I > guess this should correspond to a EINVAL. And a sendmsg() in FreeBSD does > not return an EINVAL. So the Diablo port must be calling a writev(). But I > could not locate the source code. Wish I can find out what went wrong with > dialblo VM. You could use ktrace/kdump to find out what it (not?) calls and why it dies. - Pieter From owner-freebsd-java@FreeBSD.ORG Mon Feb 1 22:42:32 2010 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 6F934106568D for ; Mon, 1 Feb 2010 22:42:32 +0000 (UTC) (envelope-from jlin@maxiscale.com) Received: from server505.appriver.com (server505c.appriver.com [98.129.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id 35A118FC1B for ; Mon, 1 Feb 2010 22:42:31 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Policy: GLOBAL - maxiscale.com X-Primary: jlin@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: jlin@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.14 X-Note-Reverse-DNS: ht01.exg5.exghost.com X-Note-WHTLIST: jlin@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G169 G170 G171 G172 G176 G177 G188 G275 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.14] (HELO ht01.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.2.14) with ESMTPS id 25669130; Mon, 01 Feb 2010 16:42:32 -0600 Received: from MBX01.exg5.exghost.com ([169.254.1.90]) by ht01.exg5.exghost.com ([98.129.23.14]) with mapi; Mon, 1 Feb 2010 16:42:30 -0600 From: Joe Lin To: Pieter de Goeje , "freebsd-java@freebsd.org" Date: Mon, 1 Feb 2010 16:42:27 -0600 Thread-Topic: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 Thread-Index: AcqjLuDB+Tp69E21RQCigFsZrDOMfgAYMiBQ Message-ID: <8B6860326495B2438DCBEA74AA981C7A78B22476@MBX01.exg5.exghost.com> References: <8B6860326495B2438DCBEA74AA981C7A78B220E0@MBX01.exg5.exghost.com> <201002010144.41376.pieter@degoeje.nl> <8B6860326495B2438DCBEA74AA981C7A78B220EE@MBX01.exg5.exghost.com> <201002011207.57163.pieter@degoeje.nl> In-Reply-To: <201002011207.57163.pieter@degoeje.nl> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: RE: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 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, 01 Feb 2010 22:42:32 -0000 Did a struss and the error happened with sendmsg call: sendmsg(0x4,0x7fffffbfe580,0x0,0x1,0x2,0x830c17de8) ERR#22 'Invalid argumen= t' -----Original Message----- From: Pieter de Goeje [mailto:pieter@degoeje.nl]=20 Sent: Monday, February 01, 2010 3:08 AM To: freebsd-java@freebsd.org Cc: Joe Lin Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 On Monday 01 February 2010 02:08:55 Joe Lin wrote: > Thanks for the reply. I looked at JDK source code and it appears that the > JNI call should be in > > J2se/src/solaris/native/sun/nio/ch/DatagramDispatcher.c:write0(): > > > There's only linux and solaris #ifdef but not for BSD. I wonder how/what > BSD is calling. Since I'm getting a "IOException:Invalid argument" so I > guess this should correspond to a EINVAL. And a sendmsg() in FreeBSD does > not return an EINVAL. So the Diablo port must be calling a writev(). But = I > could not locate the source code. Wish I can find out what went wrong wit= h > dialblo VM. You could use ktrace/kdump to find out what it (not?) calls and why it dies= . - Pieter No virus found in this incoming message. Checked by AVG - www.avg.com=20 Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/30/10 22= :39:00 From owner-freebsd-java@FreeBSD.ORG Mon Feb 1 23:04:47 2010 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 C78ED1065670 for ; Mon, 1 Feb 2010 23:04:47 +0000 (UTC) (envelope-from jan.grant@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 861A98FC0A for ; Mon, 1 Feb 2010 23:04:47 +0000 (UTC) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1Nc5Jy-0005j2-Nr; Mon, 01 Feb 2010 23:04:46 +0000 Received: from cse-jg.cse.bris.ac.uk ([137.222.12.37]:29164) by mail.ilrt.bris.ac.uk with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Nc5Jm-0006CJ-Vj; Mon, 01 Feb 2010 23:04:31 +0000 Date: Mon, 1 Feb 2010 23:04:30 +0000 (GMT) From: jan.grant@bristol.ac.uk X-X-Sender: cmjg@tribble.ilrt.bris.ac.uk To: =?KOI8-R?B?98HMxc7Uyc4g8M/Qz9c=?= In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-ILRT-MailScanner: Found to be clean X-ILRT-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.478, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.92, BAYES_00 -2.60) X-ILRT-MailScanner-From: jan.grant@bristol.ac.uk X-Spam-Status: No X-Spam-Score: -0.8 X-Spam-Level: / Cc: freebsd-java@freebsd.org Subject: Re: to many opened files 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, 01 Feb 2010 23:04:47 -0000 On Tue, 26 Jan 2010, ???????? ????? wrote: > I running reindex programm it's reindex about 60 000 000 emails with > attachments and else.... > Anybody get this issue? anybody use JAVA on production servers? If you're seeing different behaviours on different platforms from ostensibly the same Java version, this maywell be due to (1) differing GC settings, and (2) the program leaking file descriptors. It's an error to rely on garbage collection to manage any resource except memory, but it does occasionally happen. There are a few tools available that let you examine objects on the heap; perhaps your reindexer is failing to properly dispose of file objects. -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ I'm the dandy information superhighwayman. From owner-freebsd-java@FreeBSD.ORG Tue Feb 2 01:07:38 2010 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 B8AFF106566C for ; Tue, 2 Feb 2010 01:07:38 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from mx.utwente.nl (mx2.utsp.utwente.nl [130.89.2.13]) by mx1.freebsd.org (Postfix) with ESMTP id 3A5198FC16 for ; Tue, 2 Feb 2010 01:07:37 +0000 (UTC) Received: from nox-laptop.student.utwente.nl (nox-laptop.student.utwente.nl [130.89.160.140]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id o1217VF4016081; Tue, 2 Feb 2010 02:07:31 +0100 From: Pieter de Goeje To: freebsd-java@freebsd.org Date: Tue, 2 Feb 2010 02:07:30 +0100 User-Agent: KMail/1.9.10 References: <8B6860326495B2438DCBEA74AA981C7A78B220E0@MBX01.exg5.exghost.com> <201002011207.57163.pieter@degoeje.nl> <8B6860326495B2438DCBEA74AA981C7A78B22476@MBX01.exg5.exghost.com> In-Reply-To: <8B6860326495B2438DCBEA74AA981C7A78B22476@MBX01.exg5.exghost.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201002020207.30685.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: Joe Lin Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 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, 02 Feb 2010 01:07:38 -0000 On Monday 01 February 2010 23:42:27 Joe Lin wrote: > Did a struss and the error happened with sendmsg call: > > sendmsg(0x4,0x7fffffbfe580,0x0,0x1,0x2,0x830c17de8) ERR#22 'Invalid > argument' The struss output is broken because sendmsg only takes 3 arguments. It seems that java passes bogus data in msg_flags and possibly msg_control and msg_controllen fields of struct msghdr: (gdb) p *m $4 = {msg_name = 0x0, msg_namelen = 0, msg_iov = 0x5dee4e00, msg_iovlen = 2, msg_control = 0x29012e74, msg_controllen = 10480328, msg_flags = 740777920} > > -----Original Message----- > From: Pieter de Goeje [mailto:pieter@degoeje.nl] > Sent: Monday, February 01, 2010 3:08 AM > To: freebsd-java@freebsd.org > Cc: Joe Lin > Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 > > On Monday 01 February 2010 02:08:55 Joe Lin wrote: > > Thanks for the reply. I looked at JDK source code and it appears that the > > JNI call should be in > > > > J2se/src/solaris/native/sun/nio/ch/DatagramDispatcher.c:write0(): > > > > > > There's only linux and solaris #ifdef but not for BSD. I wonder how/what > > BSD is calling. Since I'm getting a "IOException:Invalid argument" so I > > guess this should correspond to a EINVAL. And a sendmsg() in FreeBSD does > > not return an EINVAL. So the Diablo port must be calling a writev(). But > > I could not locate the source code. Wish I can find out what went wrong > > with dialblo VM. > > You could use ktrace/kdump to find out what it (not?) calls and why it > dies. > > - Pieter > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/30/10 > 22:39:00 _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" -- Pieter de Goeje From owner-freebsd-java@FreeBSD.ORG Tue Feb 2 01:13:58 2010 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 39AE81065676 for ; Tue, 2 Feb 2010 01:13:58 +0000 (UTC) (envelope-from jlin@maxiscale.com) Received: from server505.appriver.com (server505c.appriver.com [98.129.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id F24F28FC19 for ; Tue, 2 Feb 2010 01:13:57 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Policy: GLOBAL - maxiscale.com X-Primary: jlin@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: jlin@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.14 X-Note-Reverse-DNS: ht01.exg5.exghost.com X-Note-WHTLIST: jlin@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G169 G170 G171 G172 G176 G177 G188 G275 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.14] (HELO ht01.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.2.14) with ESMTPS id 25688279; Mon, 01 Feb 2010 19:13:50 -0600 Received: from MBX01.exg5.exghost.com ([169.254.1.90]) by ht01.exg5.exghost.com ([98.129.23.14]) with mapi; Mon, 1 Feb 2010 19:13:56 -0600 From: Joe Lin To: "freebsd-java@freebsd.org" Date: Mon, 1 Feb 2010 19:13:56 -0600 Thread-Topic: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 Thread-Index: AcqjpB8q8Wczp9IMSbGmLiMOxs7sHgAAJ4Lw Message-ID: <8B6860326495B2438DCBEA74AA981C7A78B224DE@MBX01.exg5.exghost.com> References: <8B6860326495B2438DCBEA74AA981C7A78B220E0@MBX01.exg5.exghost.com> <201002011207.57163.pieter@degoeje.nl> <8B6860326495B2438DCBEA74AA981C7A78B22476@MBX01.exg5.exghost.com> <201002020207.30685.pieter@degoeje.nl> In-Reply-To: <201002020207.30685.pieter@degoeje.nl> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Pieter de Goeje Subject: RE: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 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, 02 Feb 2010 01:13:58 -0000 I think that is the problem. As I looked at the code in DatagramDispatcher.= c:writev0(), these fields only got zeroed out in solaris or linux: m.msg_name =3D NULL; m.msg_namelen =3D 0; m.msg_iov =3D iov; m.msg_iovlen =3D len; #ifdef __solaris__ m.msg_accrights =3D NULL; m.msg_accrightslen =3D 0; #endif #ifdef __linux__ m.msg_control =3D NULL; m.msg_controllen =3D 0; #endif -----Original Message----- From: Pieter de Goeje [mailto:pieter@degoeje.nl]=20 Sent: Monday, February 01, 2010 5:08 PM To: freebsd-java@freebsd.org Cc: Joe Lin Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 On Monday 01 February 2010 23:42:27 Joe Lin wrote: > Did a struss and the error happened with sendmsg call: > > sendmsg(0x4,0x7fffffbfe580,0x0,0x1,0x2,0x830c17de8) ERR#22 'Invalid > argument' The struss output is broken because sendmsg only takes 3 arguments. It seem= s=20 that java passes bogus data in msg_flags and possibly msg_control and=20 msg_controllen fields of struct msghdr: (gdb) p *m $4 =3D {msg_name =3D 0x0, msg_namelen =3D 0, msg_iov =3D 0x5dee4e00, msg_io= vlen =3D 2,=20 msg_control =3D 0x29012e74, msg_controllen =3D 10480328, msg_flags =3D 7407= 77920} > > -----Original Message----- > From: Pieter de Goeje [mailto:pieter@degoeje.nl] > Sent: Monday, February 01, 2010 3:08 AM > To: freebsd-java@freebsd.org > Cc: Joe Lin > Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b0= 2 > > On Monday 01 February 2010 02:08:55 Joe Lin wrote: > > Thanks for the reply. I looked at JDK source code and it appears that t= he > > JNI call should be in > > > > J2se/src/solaris/native/sun/nio/ch/DatagramDispatcher.c:write0(): > > > > > > There's only linux and solaris #ifdef but not for BSD. I wonder how/wha= t > > BSD is calling. Since I'm getting a "IOException:Invalid argument" so I > > guess this should correspond to a EINVAL. And a sendmsg() in FreeBSD do= es > > not return an EINVAL. So the Diablo port must be calling a writev(). Bu= t > > I could not locate the source code. Wish I can find out what went wrong > > with dialblo VM. > > You could use ktrace/kdump to find out what it (not?) calls and why it > dies. > > - Pieter > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/30/10 > 22:39:00 _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" --=20 Pieter de Goeje No virus found in this incoming message. Checked by AVG - www.avg.com=20 Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/31/10 23= :35:00 From owner-freebsd-java@FreeBSD.ORG Tue Feb 2 05:31:25 2010 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 95DB21065676 for ; Tue, 2 Feb 2010 05:31:25 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 50E008FC1D for ; Tue, 2 Feb 2010 05:31:24 +0000 (UTC) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.14.3/8.14.3) with ESMTP id o125VFNd090769; Mon, 1 Feb 2010 21:31:16 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.14.3/8.14.3/Submit) id o125VFTL090768; Mon, 1 Feb 2010 21:31:15 -0800 (PST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 1 Feb 2010 21:31:14 -0800 From: Greg Lewis To: Joe Lin Message-ID: <20100202053114.GA90683@misty.eyesbeyond.com> References: <8B6860326495B2438DCBEA74AA981C7A78B220E0@MBX01.exg5.exghost.com> <201002011207.57163.pieter@degoeje.nl> <8B6860326495B2438DCBEA74AA981C7A78B22476@MBX01.exg5.exghost.com> <201002020207.30685.pieter@degoeje.nl> <8B6860326495B2438DCBEA74AA981C7A78B224DE@MBX01.exg5.exghost.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8B6860326495B2438DCBEA74AA981C7A78B224DE@MBX01.exg5.exghost.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Pieter de Goeje , "freebsd-java@freebsd.org" Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 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, 02 Feb 2010 05:31:25 -0000 On Mon, Feb 01, 2010 at 07:13:56PM -0600, Joe Lin wrote: > I think that is the problem. As I looked at the code in DatagramDispatcher.c:writev0(), these fields only got zeroed out in solaris or linux: > > m.msg_name = NULL; > m.msg_namelen = 0; > m.msg_iov = iov; > m.msg_iovlen = len; > #ifdef __solaris__ > m.msg_accrights = NULL; > m.msg_accrightslen = 0; > #endif > > #ifdef __linux__ > m.msg_control = NULL; > m.msg_controllen = 0; > #endif So, if you make the second #ifdef into #if defined(__linux__) || defined(_ALLBSD_SOURCE) what happens? > -----Original Message----- > From: Pieter de Goeje [mailto:pieter@degoeje.nl] > Sent: Monday, February 01, 2010 5:08 PM > To: freebsd-java@freebsd.org > Cc: Joe Lin > Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 > > On Monday 01 February 2010 23:42:27 Joe Lin wrote: > > Did a struss and the error happened with sendmsg call: > > > > sendmsg(0x4,0x7fffffbfe580,0x0,0x1,0x2,0x830c17de8) ERR#22 'Invalid > > argument' > > The struss output is broken because sendmsg only takes 3 arguments. It seems > that java passes bogus data in msg_flags and possibly msg_control and > msg_controllen fields of struct msghdr: > > (gdb) p *m > $4 = {msg_name = 0x0, msg_namelen = 0, msg_iov = 0x5dee4e00, msg_iovlen = 2, > msg_control = 0x29012e74, msg_controllen = 10480328, msg_flags = 740777920} > > > > > > -----Original Message----- > > From: Pieter de Goeje [mailto:pieter@degoeje.nl] > > Sent: Monday, February 01, 2010 3:08 AM > > To: freebsd-java@freebsd.org > > Cc: Joe Lin > > Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 > > > > On Monday 01 February 2010 02:08:55 Joe Lin wrote: > > > Thanks for the reply. I looked at JDK source code and it appears that the > > > JNI call should be in > > > > > > J2se/src/solaris/native/sun/nio/ch/DatagramDispatcher.c:write0(): > > > > > > > > > There's only linux and solaris #ifdef but not for BSD. I wonder how/what > > > BSD is calling. Since I'm getting a "IOException:Invalid argument" so I > > > guess this should correspond to a EINVAL. And a sendmsg() in FreeBSD does > > > not return an EINVAL. So the Diablo port must be calling a writev(). But > > > I could not locate the source code. Wish I can find out what went wrong > > > with dialblo VM. > > > > You could use ktrace/kdump to find out what it (not?) calls and why it > > dies. > > > > - Pieter > > > > No virus found in this incoming message. > > Checked by AVG - www.avg.com > > Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/30/10 > > 22:39:00 _______________________________________________ > > freebsd-java@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-java > > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > > > -- > Pieter de Goeje > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/31/10 23:35:00 > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Thu Feb 4 07:12:49 2010 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 911831065670 for ; Thu, 4 Feb 2010 07:12:49 +0000 (UTC) (envelope-from jlin@maxiscale.com) Received: from server505.appriver.com (server505b.appriver.com [98.129.35.5]) by mx1.freebsd.org (Postfix) with ESMTP id 537098FC12 for ; Thu, 4 Feb 2010 07:12:48 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Policy: GLOBAL - maxiscale.com X-Primary: jlin@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: jlin@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.15 X-Note-Reverse-DNS: ht02.exg5.exghost.com X-Note-WHTLIST: jlin@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G173 G174 G175 G176 G180 G181 G192 G279 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.15] (HELO ht02.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.3.2) with ESMTPS id 22462483; Thu, 04 Feb 2010 01:12:51 -0600 Received: from HT03.exg5.exghost.com (98.129.23.45) by HT02.exg5.exghost.com (98.129.23.15) with Microsoft SMTP Server (TLS) id 8.2.176.0; Thu, 4 Feb 2010 01:12:47 -0600 Received: from MBX01.exg5.exghost.com ([169.254.1.90]) by HT03.exg5.exghost.com ([10.242.228.75]) with mapi; Thu, 4 Feb 2010 01:12:47 -0600 From: Joe Lin To: Greg Lewis Date: Thu, 4 Feb 2010 01:12:43 -0600 Thread-Topic: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 Thread-Index: AcqjyPgcJovtz21oT0iRp04FlP16OgBoFvCg Message-ID: <8B6860326495B2438DCBEA74AA981C7A78B22D0D@MBX01.exg5.exghost.com> References: <8B6860326495B2438DCBEA74AA981C7A78B220E0@MBX01.exg5.exghost.com> <201002011207.57163.pieter@degoeje.nl> <8B6860326495B2438DCBEA74AA981C7A78B22476@MBX01.exg5.exghost.com> <201002020207.30685.pieter@degoeje.nl> <8B6860326495B2438DCBEA74AA981C7A78B224DE@MBX01.exg5.exghost.com> <20100202053114.GA90683@misty.eyesbeyond.com> In-Reply-To: <20100202053114.GA90683@misty.eyesbeyond.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-java@freebsd.org" Subject: RE: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 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: Thu, 04 Feb 2010 07:12:49 -0000 With that line in there it works no problem. Thanks. -----Original Message----- From: Greg Lewis [mailto:glewis@eyesbeyond.com]=20 Sent: Monday, February 01, 2010 9:31 PM To: Joe Lin Cc: freebsd-java@freebsd.org; Pieter de Goeje Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 On Mon, Feb 01, 2010 at 07:13:56PM -0600, Joe Lin wrote: > I think that is the problem. As I looked at the code in DatagramDispatche= r.c:writev0(), these fields only got zeroed out in solaris or linux: >=20 > m.msg_name =3D NULL; > m.msg_namelen =3D 0; > m.msg_iov =3D iov; > m.msg_iovlen =3D len; > #ifdef __solaris__ > m.msg_accrights =3D NULL; > m.msg_accrightslen =3D 0; > #endif >=20 > #ifdef __linux__ > m.msg_control =3D NULL; > m.msg_controllen =3D 0; > #endif So, if you make the second #ifdef into #if defined(__linux__) || defined(_ALLBSD_SOURCE) what happens? > -----Original Message----- > From: Pieter de Goeje [mailto:pieter@degoeje.nl]=20 > Sent: Monday, February 01, 2010 5:08 PM > To: freebsd-java@freebsd.org > Cc: Joe Lin > Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b0= 2 >=20 > On Monday 01 February 2010 23:42:27 Joe Lin wrote: > > Did a struss and the error happened with sendmsg call: > > > > sendmsg(0x4,0x7fffffbfe580,0x0,0x1,0x2,0x830c17de8) ERR#22 'Invalid > > argument' >=20 > The struss output is broken because sendmsg only takes 3 arguments. It se= ems=20 > that java passes bogus data in msg_flags and possibly msg_control and=20 > msg_controllen fields of struct msghdr: >=20 > (gdb) p *m > $4 =3D {msg_name =3D 0x0, msg_namelen =3D 0, msg_iov =3D 0x5dee4e00, msg_= iovlen =3D 2,=20 > msg_control =3D 0x29012e74, msg_controllen =3D 10480328, msg_flags =3D 74= 0777920} >=20 >=20 > > > > -----Original Message----- > > From: Pieter de Goeje [mailto:pieter@degoeje.nl] > > Sent: Monday, February 01, 2010 3:08 AM > > To: freebsd-java@freebsd.org > > Cc: Joe Lin > > Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-= b02 > > > > On Monday 01 February 2010 02:08:55 Joe Lin wrote: > > > Thanks for the reply. I looked at JDK source code and it appears that= the > > > JNI call should be in > > > > > > J2se/src/solaris/native/sun/nio/ch/DatagramDispatcher.c:write0(): > > > > > > > > > There's only linux and solaris #ifdef but not for BSD. I wonder how/w= hat > > > BSD is calling. Since I'm getting a "IOException:Invalid argument" so= I > > > guess this should correspond to a EINVAL. And a sendmsg() in FreeBSD = does > > > not return an EINVAL. So the Diablo port must be calling a writev(). = But > > > I could not locate the source code. Wish I can find out what went wro= ng > > > with dialblo VM. > > > > You could use ktrace/kdump to find out what it (not?) calls and why it > > dies. > > > > - Pieter > > > > No virus found in this incoming message. > > Checked by AVG - www.avg.com > > Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/30/1= 0 > > 22:39:00 _______________________________________________ > > freebsd-java@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-java > > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" >=20 >=20 >=20 > --=20 > Pieter de Goeje >=20 > No virus found in this incoming message. > Checked by AVG - www.avg.com=20 > Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/31/10 = 23:35:00 > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" --=20 Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org No virus found in this incoming message. Checked by AVG - www.avg.com=20 Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/31/10 23= :35:00 From owner-freebsd-java@FreeBSD.ORG Thu Feb 4 23:21:05 2010 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88F441065696; Thu, 4 Feb 2010 23:21:04 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from fallbackmx08.syd.optusnet.com.au (fallbackmx08.syd.optusnet.com.au [211.29.132.10]) by mx1.freebsd.org (Postfix) with ESMTP id 0AC8E8FC0A; Thu, 4 Feb 2010 23:21:03 +0000 (UTC) Received: from mail15.syd.optusnet.com.au (mail15.syd.optusnet.com.au [211.29.132.196]) by fallbackmx08.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o14KmfeO002686; Fri, 5 Feb 2010 07:48:41 +1100 Received: from server.vk2pj.dyndns.org (c122-106-232-148.belrs3.nsw.optusnet.com.au [122.106.232.148]) by mail15.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o14KmcMP001963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Feb 2010 07:48:39 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id o14Kmbh9037177; Fri, 5 Feb 2010 07:48:37 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id o14KmbS1037176; Fri, 5 Feb 2010 07:48:37 +1100 (EST) (envelope-from peter) Date: Fri, 5 Feb 2010 07:48:37 +1100 From: Peter Jeremy To: Martin Wilke Message-ID: <20100204204837.GA36977@server.vk2pj.dyndns.org> References: <20100204001933.GA11586@bsdcrew.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <20100204001933.GA11586@bsdcrew.de> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: ports@FreeBSD.org, gecko@FreeBSD.org, java@FreeBSD.org Subject: Re: [CFT] Firefox 3.6 for FreeBSD 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: Thu, 04 Feb 2010 23:21:05 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-Feb-04 01:19:33 +0100, Martin Wilke wrote: >The problem was that starting Firefox 3.6 with certain >addons installed was not possible. Now it looks like all >problems are solved and we can start a CFT. Thanks to all for your efforts. >weekend. We should also note that the java plugin currently >does not work with 3.6. This is a blocker for me. What is involved in building a java plugin to suit the new FF36 interface? Please let me know if there's anything I can do to assist the effort. --=20 Peter Jeremy --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAktrMqUACgkQ/opHv/APuIeHQgCgqRTidJYsZQiwWUgBTT3suR8A 9VwAniTDVMTZTED2N9BFhA3CLrg0VuXz =Tqfs -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N-- From owner-freebsd-java@FreeBSD.ORG Fri Feb 5 07:47:15 2010 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 945701065679; Fri, 5 Feb 2010 07:47:15 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 97F248FC1B; Fri, 5 Feb 2010 07:47:14 +0000 (UTC) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.14.3/8.14.3) with ESMTP id o157SFRu097352; Thu, 4 Feb 2010 23:28:15 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.14.3/8.14.3/Submit) id o157SFur097351; Thu, 4 Feb 2010 23:28:15 -0800 (PST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Thu, 4 Feb 2010 23:28:15 -0800 From: Greg Lewis To: Peter Jeremy Message-ID: <20100205072815.GA97312@misty.eyesbeyond.com> References: <20100204001933.GA11586@bsdcrew.de> <20100204204837.GA36977@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100204204837.GA36977@server.vk2pj.dyndns.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: ports@FreeBSD.org, gecko@FreeBSD.org, java@FreeBSD.org, Martin Wilke Subject: Re: [CFT] Firefox 3.6 for FreeBSD 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, 05 Feb 2010 07:47:15 -0000 On Fri, Feb 05, 2010 at 07:48:37AM +1100, Peter Jeremy wrote: > On 2010-Feb-04 01:19:33 +0100, Martin Wilke wrote: > >The problem was that starting Firefox 3.6 with certain > >addons installed was not possible. Now it looks like all > >problems are solved and we can start a CFT. > > Thanks to all for your efforts. > > >weekend. We should also note that the java plugin currently > >does not work with 3.6. > > This is a blocker for me. What is involved in building a > java plugin to suit the new FF36 interface? Please let me know > if there's anything I can do to assist the effort. Well, I don't believe the java plugin works with Firefox 3.5, so this isn't a new development. I haven't looked into this enough recently but I would suggest there are two promising options. If Sun is including a FF 3.6 compatible plugin with its current jdk16 release then we should grab the newest available jdk16 code and update the jdk16 port with it. Thats not a small piece of work though as the port is languishing at Update 3 and I think Sun is at Update 18. The other option is to port the IcedTea plugin to our openjdk6 port, assuming that is FF 3.6 compatible. That shouldn't be too difficult. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Fri Feb 5 08:50:02 2010 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78EFF106566B; Fri, 5 Feb 2010 08:50:02 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id 3BCD18FC1B; Fri, 5 Feb 2010 08:50:02 +0000 (UTC) Received: from mobileKamikaze.norad (unknown [88.130.208.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 52D0D8A154A; Fri, 5 Feb 2010 09:27:52 +0100 (CET) Message-ID: <4B6BD685.4050901@bsdforen.de> Date: Fri, 05 Feb 2010 09:27:49 +0100 From: Dominic Fandrey User-Agent: Thunderbird 2.0.0.23 (X11/20091126) MIME-Version: 1.0 To: Greg Lewis References: <20100204001933.GA11586@bsdcrew.de> <20100204204837.GA36977@server.vk2pj.dyndns.org> <20100205072815.GA97312@misty.eyesbeyond.com> In-Reply-To: <20100205072815.GA97312@misty.eyesbeyond.com> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, gecko@FreeBSD.org, Martin Wilke , Peter Jeremy , java@FreeBSD.org Subject: Re: [CFT] Firefox 3.6 for FreeBSD 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, 05 Feb 2010 08:50:02 -0000 Greg Lewis wrote: > On Fri, Feb 05, 2010 at 07:48:37AM +1100, Peter Jeremy wrote: >> On 2010-Feb-04 01:19:33 +0100, Martin Wilke wrote: >>> The problem was that starting Firefox 3.6 with certain >>> addons installed was not possible. Now it looks like all >>> problems are solved and we can start a CFT. >> Thanks to all for your efforts. >> >>> weekend. We should also note that the java plugin currently >>> does not work with 3.6. >> This is a blocker for me. What is involved in building a >> java plugin to suit the new FF36 interface? Please let me know >> if there's anything I can do to assist the effort. > > Well, I don't believe the java plugin works with Firefox 3.5, so this isn't > a new development. You are mistaken here, the Java plugin works fine with firefox35. A real annoyance is that the OpenJDKs don't build the plugin, you need one of the SUN or Diablo JDKs. From owner-freebsd-java@FreeBSD.ORG Fri Feb 5 09:13:06 2010 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 060A3106566C; Fri, 5 Feb 2010 09:13:06 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 9FA7F8FC0C; Fri, 5 Feb 2010 09:13:05 +0000 (UTC) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.14.3/8.14.3) with ESMTP id o159CuZO098277; Fri, 5 Feb 2010 01:12:57 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.14.3/8.14.3/Submit) id o159CuAp098276; Fri, 5 Feb 2010 01:12:56 -0800 (PST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Fri, 5 Feb 2010 01:12:56 -0800 From: Greg Lewis To: Dominic Fandrey Message-ID: <20100205091256.GA97892@misty.eyesbeyond.com> References: <20100204001933.GA11586@bsdcrew.de> <20100204204837.GA36977@server.vk2pj.dyndns.org> <20100205072815.GA97312@misty.eyesbeyond.com> <4B6BD685.4050901@bsdforen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B6BD685.4050901@bsdforen.de> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: ports@freebsd.org, gecko@freebsd.org, Martin Wilke , Peter Jeremy , java@freebsd.org Subject: Re: [CFT] Firefox 3.6 for FreeBSD 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, 05 Feb 2010 09:13:06 -0000 On Fri, Feb 05, 2010 at 09:27:49AM +0100, Dominic Fandrey wrote: > Greg Lewis wrote: > > On Fri, Feb 05, 2010 at 07:48:37AM +1100, Peter Jeremy wrote: > >> On 2010-Feb-04 01:19:33 +0100, Martin Wilke wrote: > >>> The problem was that starting Firefox 3.6 with certain > >>> addons installed was not possible. Now it looks like all > >>> problems are solved and we can start a CFT. > >> Thanks to all for your efforts. > >> > >>> weekend. We should also note that the java plugin currently > >>> does not work with 3.6. > >> This is a blocker for me. What is involved in building a > >> java plugin to suit the new FF36 interface? Please let me know > >> if there's anything I can do to assist the effort. > > > > Well, I don't believe the java plugin works with Firefox 3.5, so this isn't > > a new development. > > You are mistaken here, the Java plugin works fine with firefox35. Hmm. So I've got the plugin installed from the current diablo-jre16 port and firefox35 doesn't find it. What does your set up look like? For me its: > ls -l /usr/local/lib/browser_plugins/libjavaplugin_oji.so lrwxr-xr-x 1 root wheel 63 Nov 8 10:50 /usr/local/lib/browser_plugins/libjavaplugin_oji.so -> /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so Are you using it from jdk16 perhaps? > A real annoyance is that the OpenJDKs don't build the plugin, you > need one of the SUN or Diablo JDKs. They don't build it because Sun doesn't include it... -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Fri Feb 5 09:32:46 2010 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39FFC1065672; Fri, 5 Feb 2010 09:32:46 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id ED7148FC14; Fri, 5 Feb 2010 09:32:45 +0000 (UTC) Received: from mobileKamikaze.norad (unknown [88.130.208.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 0A94E8A1577; Fri, 5 Feb 2010 10:32:43 +0100 (CET) Message-ID: <4B6BE5BB.9090700@bsdforen.de> Date: Fri, 05 Feb 2010 10:32:43 +0100 From: Dominic Fandrey User-Agent: Thunderbird 2.0.0.23 (X11/20091126) MIME-Version: 1.0 To: Greg Lewis References: <20100204001933.GA11586@bsdcrew.de> <20100204204837.GA36977@server.vk2pj.dyndns.org> <20100205072815.GA97312@misty.eyesbeyond.com> <4B6BD685.4050901@bsdforen.de> <20100205091256.GA97892@misty.eyesbeyond.com> In-Reply-To: <20100205091256.GA97892@misty.eyesbeyond.com> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, gecko@freebsd.org, java@freebsd.org, Peter Jeremy , Martin Wilke Subject: Re: [CFT] Firefox 3.6 for FreeBSD 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, 05 Feb 2010 09:32:46 -0000 Greg Lewis wrote: > On Fri, Feb 05, 2010 at 09:27:49AM +0100, Dominic Fandrey wrote: >> Greg Lewis wrote: >>> On Fri, Feb 05, 2010 at 07:48:37AM +1100, Peter Jeremy wrote: >>>> On 2010-Feb-04 01:19:33 +0100, Martin Wilke wrote: >>>>> The problem was that starting Firefox 3.6 with certain >>>>> addons installed was not possible. Now it looks like all >>>>> problems are solved and we can start a CFT. >>>> Thanks to all for your efforts. >>>> >>>>> weekend. We should also note that the java plugin currently >>>>> does not work with 3.6. >>>> This is a blocker for me. What is involved in building a >>>> java plugin to suit the new FF36 interface? Please let me know >>>> if there's anything I can do to assist the effort. >>> Well, I don't believe the java plugin works with Firefox 3.5, so this isn't >>> a new development. >> You are mistaken here, the Java plugin works fine with firefox35. > > Hmm. So I've got the plugin installed from the current diablo-jre16 port > and firefox35 doesn't find it. What does your set up look like? For me > its: > >> ls -l /usr/local/lib/browser_plugins/libjavaplugin_oji.so > lrwxr-xr-x 1 root wheel 63 Nov 8 10:50 /usr/local/lib/browser_plugins/libjavaplugin_oji.so -> /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so > > Are you using it from jdk16 perhaps? Yes, I'm using the JDK. # ll /usr/local/lib/browser_plugins/libjavaplugin_oji.so lrwxr-xr-x 1 root wheel 68 4 Feb 10:17 /usr/local/lib/browser_plugins/libjavaplugin_oji.so -> /usr/local/diablo-jdk1.6.0/jre/plugin/amd64/ns7/libjavaplugin_oji.so What does your about:plugins page say? > >> A real annoyance is that the OpenJDKs don't build the plugin, you >> need one of the SUN or Diablo JDKs. > > They don't build it because Sun doesn't include it... There's a project named IcedTea that builds OpenJDK with the plugin (http://openjdk.java.net/projects/icedtea/). From owner-freebsd-java@FreeBSD.ORG Fri Feb 5 09:36:56 2010 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B2A51065670; Fri, 5 Feb 2010 09:36:56 +0000 (UTC) (envelope-from xi@borderworlds.dk) Received: from kazon.borderworlds.dk (kazon.borderworlds.dk [213.239.213.48]) by mx1.freebsd.org (Postfix) with ESMTP id 59E108FC13; Fri, 5 Feb 2010 09:36:56 +0000 (UTC) Received: from vidiian.borderworlds.dk (localhost [127.0.0.1]) by kazon.borderworlds.dk (Postfix) with ESMTP id 949D11714F; Fri, 5 Feb 2010 10:17:52 +0100 (CET) Message-ID: <4B6BE241.907@borderworlds.dk> Date: Fri, 05 Feb 2010 10:17:53 +0100 From: Christian Laursen User-Agent: Thunderbird 2.0.0.23 (X11/20091204) MIME-Version: 1.0 To: Greg Lewis References: <20100204001933.GA11586@bsdcrew.de> <20100204204837.GA36977@server.vk2pj.dyndns.org> <20100205072815.GA97312@misty.eyesbeyond.com> <4B6BD685.4050901@bsdforen.de> <20100205091256.GA97892@misty.eyesbeyond.com> In-Reply-To: <20100205091256.GA97892@misty.eyesbeyond.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Dominic Fandrey , Peter Jeremy , Martin Wilke , gecko@freebsd.org, ports@freebsd.org, java@freebsd.org Subject: Re: [CFT] Firefox 3.6 for FreeBSD 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, 05 Feb 2010 09:36:56 -0000 Greg Lewis wrote: > On Fri, Feb 05, 2010 at 09:27:49AM +0100, Dominic Fandrey wrote: >> Greg Lewis wrote: >>> Well, I don't believe the java plugin works with Firefox 3.5, so this isn't >>> a new development. >> You are mistaken here, the Java plugin works fine with firefox35. > > Hmm. So I've got the plugin installed from the current diablo-jre16 port > and firefox35 doesn't find it. What does your set up look like? For me > its: > >> ls -l /usr/local/lib/browser_plugins/libjavaplugin_oji.so > lrwxr-xr-x 1 root wheel 63 Nov 8 10:50 /usr/local/lib/browser_plugins/libjavaplugin_oji.so -> /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so It is neccesary to symlink it into /usr/local/lib/firefox3/plugins manually for it to work. I have not had any problems with the plugin on Firefox 3.5 using that approach. -- Christian Laursen From owner-freebsd-java@FreeBSD.ORG Fri Feb 5 09:38:14 2010 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 967761065672; Fri, 5 Feb 2010 09:38:14 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from smtp-int-m.obspm.fr (smtp-int-m.obspm.fr [145.238.187.15]) by mx1.freebsd.org (Postfix) with ESMTP id 2B8718FC0C; Fri, 5 Feb 2010 09:38:13 +0000 (UTC) Received: from obspm.fr (pcjas.obspm.fr [145.238.184.233]) by smtp-int-m.obspm.fr (8.14.3/8.14.3/SIO Observatoire de Paris - 07/2009) with ESMTP id o159NfvW011590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 5 Feb 2010 10:23:42 +0100 Date: Fri, 5 Feb 2010 10:23:41 +0100 From: Albert Shih To: Greg Lewis Message-ID: <20100205092341.GD11310@obspm.fr> References: <20100204001933.GA11586@bsdcrew.de> <20100204204837.GA36977@server.vk2pj.dyndns.org> <20100205072815.GA97312@misty.eyesbeyond.com> <4B6BD685.4050901@bsdforen.de> <20100205091256.GA97892@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20100205091256.GA97892@misty.eyesbeyond.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Miltered: at smtp-int-m.obspm.fr with ID 4B6BE39D.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4B6BE39D.000/145.238.184.233/pcjas.obspm.fr/obspm.fr/ X-j-chkmail-Score: MSGID : 4B6BE39D.000 on smtp-int-m.obspm.fr : j-chkmail score : . : R=. U=. O=. B=0.009 -> S=0.009 X-j-chkmail-Status: Ham Cc: Dominic Fandrey , Peter Jeremy , Martin Wilke , gecko@freebsd.org, ports@freebsd.org, java@freebsd.org Subject: Re: [CFT] Firefox 3.6 for FreeBSD 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, 05 Feb 2010 09:38:14 -0000 Le 05/02/2010 à 01:12:56-0800, Greg Lewis a écrit > On Fri, Feb 05, 2010 at 09:27:49AM +0100, Dominic Fandrey wrote: > > Greg Lewis wrote: > > > On Fri, Feb 05, 2010 at 07:48:37AM +1100, Peter Jeremy wrote: > > >> On 2010-Feb-04 01:19:33 +0100, Martin Wilke wrote: > > >>> The problem was that starting Firefox 3.6 with certain > > >>> addons installed was not possible. Now it looks like all > > >>> problems are solved and we can start a CFT. > > >> Thanks to all for your efforts. > > >> > > >>> weekend. We should also note that the java plugin currently > > >>> does not work with 3.6. > > >> This is a blocker for me. What is involved in building a > > >> java plugin to suit the new FF36 interface? Please let me know > > >> if there's anything I can do to assist the effort. > > > > > > Well, I don't believe the java plugin works with Firefox 3.5, so this isn't > > > a new development. > > > > You are mistaken here, the Java plugin works fine with firefox35. > > Hmm. So I've got the plugin installed from the current diablo-jre16 port > and firefox35 doesn't find it. What does your set up look like? For me > its: > > > ls -l /usr/local/lib/browser_plugins/libjavaplugin_oji.so > lrwxr-xr-x 1 root wheel 63 Nov 8 10:50 /usr/local/lib/browser_plugins/libjavaplugin_oji.so -> /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so It's better if you create a symbolic link in [root plugins]# ls -l /usr/local/lib/firefox3/plugins/ total 20 lrwxr-xr-x 1 root wheel 67 5 fév 10:22 libjavaplugin_oji.so -> /usr/local/diablo-jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so But I not going to say this plugin work perfectly. It's easy to find something don't work. Regards. JAS -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Téléphone : 01 45 07 76 26/06 86 69 95 71 Heure local/Local time: Ven 5 fév 2010 10:21:07 CET From owner-freebsd-java@FreeBSD.ORG Sat Feb 6 07:00:23 2010 Return-Path: Delivered-To: java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4916B106566C; Sat, 6 Feb 2010 07:00:23 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 21FAF8FC08; Sat, 6 Feb 2010 07:00:23 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1670Nfr055118; Sat, 6 Feb 2010 07:00:23 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1670Mci055107; Sat, 6 Feb 2010 07:00:22 GMT (envelope-from edwin) Date: Sat, 6 Feb 2010 07:00:22 GMT Message-Id: <201002060700.o1670Mci055107@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, java@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/143601: Update Request: java/linux-sun-jdk16 to 1.6.0.18 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: Sat, 06 Feb 2010 07:00:23 -0000 Synopsis: Update Request: java/linux-sun-jdk16 to 1.6.0.18 Responsible-Changed-From-To: freebsd-ports-bugs->java Responsible-Changed-By: edwin Responsible-Changed-When: Sat Feb 6 07:00:22 UTC 2010 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=143601