From owner-freebsd-java@FreeBSD.ORG Sun Mar 30 07:13:10 2008 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 BC8541065675 for ; Sun, 30 Mar 2008 07:13:10 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 9421C8FC17 for ; Sun, 30 Mar 2008 07:13:10 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1256950waf.3 for ; Sun, 30 Mar 2008 00:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:from; bh=2T6nBRdvZ5wkYiiBikF0MGdwFuaszeO6Y3ERYcndiek=; b=klvHJ1v1qDqOkShAUH9i/QqthK1rF9QU2hKo+zsO/4INQmt6LvFLLmx5rETfiHCwzpzkGLCmCfBWwzxjuYQyMPU4D4grrtEQbNotNn8HoLZ4DVsrbGzejcyvU3MjgjpwiYEesROnLh7FbuL/gRNsJGd4fOoyA7M7xJJdU0ltgc4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:from; b=drKFcIqQ0HLPQFuyCX7DYbuczByjlKF9MCsYsTT4Oy5IdFyoA6Sqb+R0T0y+Ng8l46VZ7bOq3MsyVdQjoCfGrUaNahoZQWtIJaFWX/S+Cva7qEpjPRrJ5qkHNMrPtVp2Wkr/FL0eYb+nhkAm7xBX4xEA4Ym5m0KT4iEoXZiIYZc= Received: by 10.114.200.2 with SMTP id x2mr7315131waf.143.1206859540596; Sat, 29 Mar 2008 23:45:40 -0700 (PDT) Received: from ?192.168.2.23? ( [121.218.97.236]) by mx.google.com with ESMTPS id m6sm1984614wag.11.2008.03.29.23.45.37 (version=SSLv3 cipher=OTHER); Sat, 29 Mar 2008 23:45:39 -0700 (PDT) To: freebsd-java@freebsd.org Date: Sun, 30 Mar 2008 17:45:32 +1100 User-Agent: KMail/1.9.7 References: <20080329075205.A2617@turing> In-Reply-To: <20080329075205.A2617@turing> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803301745.32739.rodneyh@bigpond.net.au> From: Rodney Hoskinson Subject: Re: Is JNI (Java Native Interface) Known to Work in Both Directions on FreeBSD (to invoke the JVM from native software)? 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, 30 Mar 2008 07:13:10 -0000 Nick Thanks, I'm still having trouble trying to invoke the JVM from FreeBSD. I compiled and ran the simple C++ JNI invocation program below, linked against jdk1.6.0 on FreeBSD7.0-Release. (Tried linking against diablo-jdk1.5.0 also - same result). I got the same result as trying to run rJava: Program received signal SIGSYS (Bad system call). or in gdb: # gdb ./a.out GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)... (gdb) run Starting program: /usr/home/test3/src/a.out (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 100131] (no debugging symbols found)...[New Thread 0x28b01100 (LWP 100131)] (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New Thread 0x28b01300 (LWP 100192)] [New Thread 0x28b01500 (LWP 100193)] [New Thread 0x28b01600 (LWP 100203)] Program received signal SIGSYS, Bad system call. [Switching to Thread 0x28b01100 (LWP 100131)] 0x289bb86b in ksem_init () from /lib/libc.so.7 (gdb) bt #0 0x289bb86b in ksem_init () from /lib/libc.so.7 #1 0x289b1229 in sem_init () from /lib/libc.so.7 #2 0x28321e59 in os::signal_init_pd () from /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so #3 0x2831fb62 in os::signal_init () from /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so #4 0x283aa342 in Threads::create_vm () from /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so #5 0x2821b736 in JNI_CreateJavaVM () from /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so #6 0xbfbfe80b in ?? () #7 0x00000000 in ?? () #8 0x00000000 in ?? () #9 0x00000000 in ?? () #10 0xbfbfe868 in ?? () #11 0xffffffff in ?? () #12 0x28077000 in ?? () #13 0x00000018 in ?? () #14 0x28b0c000 in ?? () #15 0x01bfe850 in ?? () #16 0x00000001 in ?? () #17 0xbfbfe8b0 in ?? () #18 0x00000000 in ?? () #19 0xbfbfe868 in ?? () #20 0x080488ea in main () (gdb) Invocation program, built with compiler flags: -I/usr/local/jdk1.6.0/include -I/usr/local/jdk1.6.0/include/freebsd -L/usr/local/jdk1.6.0/jre/lib/i386/server -ljvm #ifdef HAVE_CONFIG_H #include #endif using namespace std; #include #include #include /* where everything is defined */ int main(int argc, char *argv[]) { JavaVM *jvm; /* denotes a Java VM */ JNIEnv *env; /* pointer to native method interface */ JavaVMInitArgs vm_args; /* JDK/JRE 6 VM initialization arguments */ JavaVMOption* options = new JavaVMOption[1]; options[0].optionString = "-Djava.class.path=/usr/local/jdk1.6.0/java"; vm_args.version = JNI_VERSION_1_6; vm_args.nOptions = 1; vm_args.options = options; vm_args.ignoreUnrecognized = false; /* load and initialize a Java VM, return a JNI interface * pointer in env */ JNI_CreateJavaVM(&jvm,(void **)&env, &vm_args); delete options; /* invoke the Main.test method using the JNI */ jclass cls = env->FindClass("Main"); jmethodID mid = env->GetStaticMethodID(cls, "test", "(I)V"); env->CallStaticVoidMethod(cls, mid, 100); /* We are done. */ jvm->DestroyJavaVM(); return EXIT_SUCCESS; } I'm stumped as to why JNI invocation appears not to work for me on FreeBSD. On Sunday 30 March 2008 01:53:52 Nick Johnson wrote: > Yeah, it works. Take a look at jsvc that ships with Tomcat 6. It binds > to a port, drops root permission and creates a JVM and does back and forth > communication with Tomcat. > > Nick > > On Sat, 29 Mar 2008, Rod wrote: > > I'm having trouble using JNI software on FreeBSD. > > In summary: > > - I'm able to call native routines from a Java VM via JNI > > - However in the other direction JNI seems not to work. I can't create a > > JVM via JNI from native software. > > Admittedly, I'm using one specific software (R with rJava) and haven't > > tried running my own JNI software. > > > > What I'm noticing is that a call to JNI_CreateJavaVM () in > > /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so results in SIGSYS, Bad > > Sytem Call. > > > > Here's my output from running R with rJava under gdb with a stack > > backtrace. It all seems to go pear-shaped at JNI_CreateJavaVM () : From owner-freebsd-java@FreeBSD.ORG Sun Mar 30 07:57:00 2008 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 5D551106566C for ; Sun, 30 Mar 2008 07:57:00 +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 25D118FC17 for ; Sun, 30 Mar 2008 07:56:59 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2U7uxRY006514; Sun, 30 Mar 2008 00:56:59 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2U7uwbR006513; Sun, 30 Mar 2008 00:56:58 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sun, 30 Mar 2008 00:56:58 -0700 From: Greg Lewis To: Rod Message-ID: <20080330075658.GA6492@misty.eyesbeyond.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@freebsd.org Subject: Re: Is JNI (Java Native Interface) Known to Work in Both Directions on FreeBSD (to invoke the JVM from native software)? 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, 30 Mar 2008 07:57:00 -0000 On Sat, Mar 29, 2008 at 06:36:11AM +0000, Rod wrote: > I'm running this under a clean install of 7-Release I386: > > # uname -a > FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC > 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > I was getting the same result on my existing installation, so in case it was > some mix-up with libraries I tried new installations of 7-Release and also > PCBSD-1.5 (based on 6.3), both with the same result. > > I've tried Java 1.6 built from ports (usr/ports/java/jdk16) > > # java -version > java version "1.6.0_03-p3" > Java(TM) SE Runtime Environment (build > 1.6.0_03-p3-root_16_feb_2008_09_59-b00) > Java HotSpot(TM) Client VM (build 1.6.0_03-p3-root_16_feb_2008_09_59-b00, > mixed mode) So why is the build date from the JDK earlier than the build date of your kernel? That makes me suspicious about it being something to do with removal of the KSE syscalls. -- 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 Sun Mar 30 07:58:27 2008 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 51FA81065670 for ; Sun, 30 Mar 2008 07:58:27 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.freebsd.org (Postfix) with ESMTP id E96DD8FC1C for ; Sun, 30 Mar 2008 07:58:26 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1057634wxd.7 for ; Sun, 30 Mar 2008 00:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=y9qyi4Xyp2N2hWfmVehOeEeMFei4DnrjPS4GFKNq364=; b=LGD1+RgsnAhDn5gyaMzIPcEMbH62xZXlmzH28XZrsBoUsMUBITdldBj03Nm8XC/4oM4XW4R2sSXi3rL5JOg1BavXaDNbZTHiFgVnUNHSVRkc/zHlxq+8TdAUJ2pz5eREWjQCne5LRkb3ORn+inbRt1YDBn1p9GiYWvOj7S9QTYM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=tyhyPMtBd5sb8FDk7tj65WE8N4UPFW7fyViK3pbPKEC+RrWkEj7m++LIj0L4yFj7zj59o2nTGoM5A5TN2rBHQ6xZeug3oRZjqw3wY3ZBDheCeOrxRaRxZAlaQaytbWoxdvrCliJkkGnbnRRWlk/G6TAsq9Vof02xGxAjnys+Qxw= Received: by 10.70.32.2 with SMTP id f2mr6019652wxf.63.1206863906024; Sun, 30 Mar 2008 00:58:26 -0700 (PDT) Received: by 10.70.75.7 with HTTP; Sun, 30 Mar 2008 00:58:25 -0700 (PDT) Message-ID: Date: Sun, 30 Mar 2008 07:58:25 +0000 From: Rod To: freebsd-java@freebsd.org In-Reply-To: <200803301745.32739.rodneyh@bigpond.net.au> MIME-Version: 1.0 References: <20080329075205.A2617@turing> <200803301745.32739.rodneyh@bigpond.net.au> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Is JNI (Java Native Interface) Known to Work in Both Directions on FreeBSD (to invoke the JVM from native software)? 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, 30 Mar 2008 07:58:27 -0000 Further to the below, here's some more output: # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x28233838, pid=22317, tid=0x28b01100 # # Java VM: Java HotSpot(TM) Client VM ( 1.6.0_03-p3-root_16_feb_2008_09_59-b00 mixed mode) # Problematic frame: # V [libjvm.so+0x1b6838] # # An error report file with more information is saved as hs_err_pid22317.log # # Please submit bug reports to freebsd-java@FreeBSD.org # Here's the log file: # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x28233838, pid=22317, tid=0x28b01100 # # Java VM: Java HotSpot(TM) Client VM ( 1.6.0_03-p3-root_16_feb_2008_09_59-b00 mixed mode) # Problematic frame: # V [libjvm.so+0x1b6838] # # Please submit bug reports to freebsd-java@FreeBSD.org # --------------- T H R E A D --------------- Current thread (0x28b22000): JavaThread "main" [_thread_in_vm, id=682627328] siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000 Registers: EAX=0x00000000, EBX=0x284492f8, ECX=0x28b1400c, EDX=0x28b22000 ESP=0xbfbfe7e0, EBP=0xbfbfe838, ESI=0xbfbfe7f4, EDI=0x28b22000 EIP=0x28233838, EFLAGS=0x00010282 Top of Stack: (sp=0xbfbfe7e0) 0xbfbfe7e0: 28b22000 28b22000 28b22000 2833605e 0xbfbfe7f0: 28b1400c 00000001 28b22000 284492f8 0xbfbfe800: 28b22000 28b220ec bfbfe848 2822a3dd 0xbfbfe810: 28b22000 28b14008 000004a4 28416fe8 0xbfbfe820: 0000000e 28b22000 00000000 00000001 0xbfbfe830: bfbfe904 00000000 bfbfe868 08048a54 0xbfbfe840: 28b220ec 00000000 00000000 bfbfe87c 0xbfbfe850: 28b220ec 00000000 08048b19 08048b14 Instructions: (pc=0x28233838) 0x28233828: 02 00 00 8b 45 10 c7 45 e8 0e 00 00 00 8d 75 bc 0x28233838: 8b 10 8b 42 08 8b 52 0c 83 c2 1c 66 8b 40 26 51 Stack: [0xbfa00000,0xbfc00000), sp=0xbfbfe7e0, free space=2041k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x1b6838] C [test3+0xa54] C [test3+0x961] C [test3+0x689] --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x28beb800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=682629632] 0x28b28000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=682629376] 0x28b27000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=682628608] 0x28b25800 JavaThread "Finalizer" daemon [_thread_blocked, id=682629120] 0x28b24800 JavaThread "Reference Handler" daemon [_thread_blocked, id=682628864] =>0x28b22000 JavaThread "main" [_thread_in_vm, id=682627328] Other Threads: 0x28b23800 VMThread [id=682628352] 0x28bec800 WatcherThread [id=682629888] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 960K, used 158K [0x2ac80000, 0x2ad80000, 0x2b160000) eden space 896K, 17% used [0x2ac80000, 0x2aca7830, 0x2ad60000) from space 64K, 0% used [0x2ad60000, 0x2ad60000, 0x2ad70000) to space 64K, 0% used [0x2ad70000, 0x2ad70000, 0x2ad80000) tenured generation total 4096K, used 0K [0x2b160000, 0x2b560000, 0x2ec80000) the space 4096K, 0% used [0x2b160000, 0x2b160000, 0x2b160200, 0x2b560000) compacting perm gen total 12288K, used 1459K [0x2ec80000, 0x2f880000, 0x32c80000) the space 12288K, 11% used [0x2ec80000, 0x2edecf10, 0x2eded000, 0x2f880000) No shared spaces configured. Dynamic libraries: 0x08048000 /mnt2/usr/home/rodney/cprog/test3/./src/test3 0x2807d000 /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so 0x28862000 /lib/libthr.so.3 0x28875000 /usr/lib/libstdc++.so.6 0x2896a000 /lib/libm.so.5 0x2897f000 /lib/libgcc_s.so.1 0x2898a000 /lib/libc.so.7 0x28a90000 /usr/local/jdk1.6.0/jre/lib/i386/native_threads/libhpi.so 0x28aa2000 /usr/local/jdk1.6.0/jre/lib/i386/libverify.so 0x28aaf000 /usr/local/jdk1.6.0/jre/lib/i386/libjava.so 0x28ad6000 /usr/local/jdk1.6.0/jre/lib/i386/libzip.so 0x28adf000 /lib/libz.so.4 0x28049000 /libexec/ld-elf.so.1 VM Arguments: java_command: Launcher Type: generic Environment Variables: PATH=/usr/local/gnu-autotools/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin LD_LIBRARY_PATH=/usr/local/lib/R/lib:/usr/local/jdk1.6.0/lib:/usr/local/jdk1.6.0/jre/lib/i386:/usr/local/jdk1.6.0/jre/lib/i386/client:/usr/local/lib/R/library/rJava/libs:/usr/local/jdk1.6.0/jre/lib/i386/server SHELL=/bin/csh DISPLAY=:0 HOSTTYPE=FreeBSD OSTYPE=FreeBSD MACHTYPE=i386 Signal Handlers: SIGSEGV: [libjvm.so+0x35e9c0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGBUS: [libjvm.so+0x35e9c0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGFPE: [libjvm.so+0x2a4bd0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGPIPE: [libjvm.so+0x2a4bd0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGILL: [libjvm.so+0x2a4bd0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x2a6c10], sa_mask[0]=0x00000000, sa_flags=0x00000042 SIGHUP: [libjvm.so+0x2a5c70], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGINT: [libjvm.so+0x2a5c70], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGQUIT: [libjvm.so+0x2a5c70], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGTERM: [libjvm.so+0x2a5c70], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGUSR2: [libjvm.so+0x2a6c10], sa_mask[0]=0x00000000, sa_flags=0x00000042 --------------- S Y S T E M --------------- OS:Bsd uname:FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 rlimit: STACK 65536k, CORE infinity, NPROC 5547, NOFILE 11095 CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 13 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2 Memory: 4k page, physical 764700k(191175k free) vm_info: Java HotSpot(TM) Client VM (1.6.0_03-p3-root_16_feb_2008_09_59-b00) for bsd-x86, built on Feb 16 2008 11:10:46 by "root" with gcc 4.2.120070719 [FreeBSD] I'm going to try rebuilding jdk16 again. On Sun, Mar 30, 2008 at 6:45 AM, Rodney Hoskinson wrote: > Nick > > Thanks, > > I'm still having trouble trying to invoke the JVM from FreeBSD. > I compiled and ran the simple C++ JNI invocation program below, linked > against > jdk1.6.0 on FreeBSD7.0-Release. (Tried linking against diablo-jdk1.5.0also - > same result). > > I got the same result as trying to run rJava: Program received signal > SIGSYS > (Bad system call). > > > > or in gdb: > > # gdb ./a.out > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols > found)... > (gdb) run > Starting program: /usr/home/test3/src/a.out > (no debugging symbols found)...(no debugging symbols found)...(no > debugging > symbols found)...(no debugging symbols found)...(no debugging symbols > found)...(no debugging symbols found)...[New LWP 100131] > (no debugging symbols found)...[New Thread 0x28b01100 (LWP 100131)] > (no debugging symbols found)...(no debugging symbols found)...(no > debugging > symbols found)...(no debugging symbols found)...(no debugging symbols > found)...[New Thread 0x28b01300 (LWP 100192)] > [New Thread 0x28b01500 (LWP 100193)] > [New Thread 0x28b01600 (LWP 100203)] > > Program received signal SIGSYS, Bad system call. > [Switching to Thread 0x28b01100 (LWP 100131)] > 0x289bb86b in ksem_init () from /lib/libc.so.7 > (gdb) bt > #0 0x289bb86b in ksem_init () from /lib/libc.so.7 > #1 0x289b1229 in sem_init () from /lib/libc.so.7 > #2 0x28321e59 in os::signal_init_pd () > from /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so > #3 0x2831fb62 in os::signal_init () > from /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so > #4 0x283aa342 in Threads::create_vm () > from /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so > #5 0x2821b736 in JNI_CreateJavaVM () > from /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so > #6 0xbfbfe80b in ?? () > #7 0x00000000 in ?? () > #8 0x00000000 in ?? () > #9 0x00000000 in ?? () > #10 0xbfbfe868 in ?? () > #11 0xffffffff in ?? () > #12 0x28077000 in ?? () > #13 0x00000018 in ?? () > #14 0x28b0c000 in ?? () > #15 0x01bfe850 in ?? () > #16 0x00000001 in ?? () > #17 0xbfbfe8b0 in ?? () > #18 0x00000000 in ?? () > #19 0xbfbfe868 in ?? () > #20 0x080488ea in main () > (gdb) > > > Invocation program, built with compiler flags: > > -I/usr/local/jdk1.6.0/include -I/usr/local/jdk1.6.0/include/freebsd > -L/usr/local/jdk1.6.0/jre/lib/i386/server -ljvm > > #ifdef HAVE_CONFIG_H > #include > #endif > > > > using namespace std; > > #include > #include > #include /* where everything is defined */ > > > > int main(int argc, char *argv[]) > { > > JavaVM *jvm; /* denotes a Java VM */ > JNIEnv *env; /* pointer to native method interface */ > JavaVMInitArgs vm_args; /* JDK/JRE 6 VM initialization arguments */ > JavaVMOption* options = new JavaVMOption[1]; > options[0].optionString = "-Djava.class.path=/usr/local/jdk1.6.0/java"; > vm_args.version = JNI_VERSION_1_6; > vm_args.nOptions = 1; > vm_args.options = options; > vm_args.ignoreUnrecognized = false; > /* load and initialize a Java VM, return a JNI interface > * pointer in env */ > JNI_CreateJavaVM(&jvm,(void **)&env, &vm_args); > delete options; > /* invoke the Main.test method using the JNI */ > jclass cls = env->FindClass("Main"); > jmethodID mid = env->GetStaticMethodID(cls, "test", "(I)V"); > env->CallStaticVoidMethod(cls, mid, 100); > /* We are done. */ > jvm->DestroyJavaVM(); > > return EXIT_SUCCESS; > } > > I'm stumped as to why JNI invocation appears not to work for me on > FreeBSD. > > On Sunday 30 March 2008 01:53:52 Nick Johnson wrote: > > Yeah, it works. Take a look at jsvc that ships with Tomcat 6. It binds > > to a port, drops root permission and creates a JVM and does back and > forth > > communication with Tomcat. > > > > Nick > > > > On Sat, 29 Mar 2008, Rod wrote: > > > I'm having trouble using JNI software on FreeBSD. > > > In summary: > > > - I'm able to call native routines from a Java VM via JNI > > > - However in the other direction JNI seems not to work. I can't create > a > > > JVM via JNI from native software. > > > Admittedly, I'm using one specific software (R with rJava) and haven't > > > tried running my own JNI software. > > > > > > What I'm noticing is that a call to JNI_CreateJavaVM () in > > > /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so results in SIGSYS, > Bad > > > Sytem Call. > > > > > > Here's my output from running R with rJava under gdb with a stack > > > backtrace. It all seems to go pear-shaped at JNI_CreateJavaVM () : > > > From owner-freebsd-java@FreeBSD.ORG Sun Mar 30 08:23:53 2008 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 9739C106564A for ; Sun, 30 Mar 2008 08:23:53 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.239]) by mx1.freebsd.org (Postfix) with ESMTP id 569078FC34 for ; Sun, 30 Mar 2008 08:23:53 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1061408wxd.7 for ; Sun, 30 Mar 2008 01:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=UMQACpQM4qMbntGXl2ZaiB+ShpiRnz1U8eLyEpgtXi0=; b=B1cXgHWWQ5av6WVZ7G+KedKJMkVo7fVb8NbURgxbbk8DEh9OlfLxFhxWPoQgYh//z7pVSRfwnoKuGHu8o7BoNtiis5SK2AaVyI9rrvUXIIqGOFCDADUcAtGuejNQPReCb9tJZJl7rECeAuykUgVE01eQr4Or+U/W4PejamuiqVU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=HtyvxLa3nJhdCdGV8+96P1RiO/VOyqoqpzNdAwGPcR+y3HShEZgt6P05vNqUgjKAgDsglcl1N0/N5uuJaDkWyQU/9KvJvysE8XsBZ7iVRSU70KyrDFezqxGhvaTSBDq8W5lh6MVMTbw0CB6UgBDXHdwBnFP3/CZP/SYrmwLxEJo= Received: by 10.70.75.12 with SMTP id x12mr6046023wxa.68.1206865432527; Sun, 30 Mar 2008 01:23:52 -0700 (PDT) Received: by 10.70.75.7 with HTTP; Sun, 30 Mar 2008 01:23:52 -0700 (PDT) Message-ID: Date: Sun, 30 Mar 2008 08:23:52 +0000 From: Rod To: "Greg Lewis" In-Reply-To: <20080330075658.GA6492@misty.eyesbeyond.com> MIME-Version: 1.0 References: <20080330075658.GA6492@misty.eyesbeyond.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-java@freebsd.org Subject: Re: Is JNI (Java Native Interface) Known to Work in Both Directions on FreeBSD (to invoke the JVM from native software)? 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, 30 Mar 2008 08:23:53 -0000 I built the jdk16 originally under a FreeBSD7.0 installation that I had updated to 7-Release from pre-release via buildworld/buildkernel. The output below was from running under a fresh install of 7.0-Releaseinstalled from the 7.0-Release binaries (from the CDs). I installed the jdk16 that I had built under the older buildworlded 7.0-Release onto the fresh binary installed 7.0-Release (which I installed clean specifically to investigate this problem). I'm now rebuilding jdk16 under the fresh 7.0-Release to see if that helps. Thanks for your help so far everyone - I've posted some further details (output log from the invocation test program). Greg I'm not sure what you're referring to regarding removal of KSE syscalls. What would be the implications in this situation? I'm currently rebuilding jdk16 under the clean binary install of 7-Release (i386) to see if that helps. Regards On Sun, Mar 30, 2008 at 7:56 AM, Greg Lewis wrote: > On Sat, Mar 29, 2008 at 06:36:11AM +0000, Rod wrote: > > I'm running this under a clean install of 7-Release I386: > > > > # uname -a > > FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC > > 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > > > I was getting the same result on my existing installation, so in case it > was > > some mix-up with libraries I tried new installations of 7-Release and > also > > PCBSD-1.5 (based on 6.3), both with the same result. > > > > I've tried Java 1.6 built from ports (usr/ports/java/jdk16) > > > > # java -version > > java version "1.6.0_03-p3" > > Java(TM) SE Runtime Environment (build > > 1.6.0_03-p3-root_16_feb_2008_09_59-b00) > > Java HotSpot(TM) Client VM (build 1.6.0_03-p3-root_16_feb_2008_09_59-b00 > , > > mixed mode) > > So why is the build date from the JDK earlier than the build date of your > kernel? That makes me suspicious about it being something to do with > removal of the KSE syscalls. > > -- > 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 Sun Mar 30 15:16:27 2008 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 DEABB1065671 for ; Sun, 30 Mar 2008 15:16:27 +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 9FD928FC1A for ; Sun, 30 Mar 2008 15:16:27 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2UFGQBJ009018; Sun, 30 Mar 2008 08:16:26 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2UFGPh5009017; Sun, 30 Mar 2008 08:16:25 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sun, 30 Mar 2008 08:16:25 -0700 From: Greg Lewis To: Rod Message-ID: <20080330151625.GA8977@misty.eyesbeyond.com> References: <20080330075658.GA6492@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@freebsd.org Subject: Re: Is JNI (Java Native Interface) Known to Work in Both Directions on FreeBSD (to invoke the JVM from native software)? 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, 30 Mar 2008 15:16:28 -0000 On Sun, Mar 30, 2008 at 08:23:52AM +0000, Rod wrote: > I built the jdk16 originally under a FreeBSD7.0 installation that I had > updated to 7-Release from pre-release via buildworld/buildkernel. > > The output below was from running under a fresh install of > 7.0-Releaseinstalled from the > 7.0-Release binaries (from the CDs). I installed the jdk16 that I had built > under the older buildworlded 7.0-Release onto the fresh binary installed > 7.0-Release (which I installed clean specifically to investigate this > problem). > > I'm now rebuilding jdk16 under the fresh 7.0-Release to see if that helps. Sounds like a sensible thing to try. > Thanks for your help so far everyone - I've posted some further details > (output log from the invocation test program). > > Greg I'm not sure what you're referring to regarding removal of KSE > syscalls. What would be the implications in this situation? My bad, that has only happened in -current not in 7.x, so ignore that. I was thinking of a reason that you'd get a SIGSYS (which means you're invoking a non-existent syscall). Removal of the KSE syscalls would fit that, but it hasn't happened in 7.x so that can't be the case. -- 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 Mon Mar 31 01:00:57 2008 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 67F691065674 for ; Mon, 31 Mar 2008 01:00:57 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id 176D98FC1D for ; Mon, 31 Mar 2008 01:00:56 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.184]) by hub.org (Postfix) with ESMTP id 1D2AC1688436; Sun, 30 Mar 2008 22:00:57 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 64533-06; Sun, 30 Mar 2008 22:00:48 -0300 (ADT) Received: from fserv.hub.org (blk-7-245-234.eastlink.ca [71.7.245.234]) by hub.org (Postfix) with ESMTP id B09D41687519; Sun, 30 Mar 2008 22:00:56 -0300 (ADT) Received: from [192.168.1.2] (unknown [192.168.1.2]) by fserv.hub.org (Postfix) with ESMTP id E35F94A94F; Sun, 30 Mar 2008 22:01:00 -0300 (ADT) Date: Sun, 30 Mar 2008 21:59:08 -0300 From: "Marc G. Fournier" To: freebsd-stable@freebsd.org Message-ID: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-java@freebsd.org Subject: Azureus + 7-STABLE == Slow download + No Upload 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, 31 Mar 2008 01:00:57 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is anyone running Azureus on 7-STABLE and getting decent performance from it? I just upgraded to 7-STABLE, installed /usr/ports/java/jdk15 (instead of diablo) so that it uses libthr (checked with ldd), and now I'm barely able to get one downloaded, let alone multiple, and almost nothing uploaded ... I've added: "-Djava.net.preferIPv4Stack=true" to /usr/local/bin/azureus, but, from reading the jdk15 makefile, IPv6 is only enabled if/when you do WITH_IPV6, and I don't have that in my make.conf file, therefore this shouldn't affect anything ... I have nothing in my /etc/libmap.conf file ... So, if there a problem, or am I missing something? - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFH8Ddc4QvfyHIvDvMRApPKAKCU1c+VVRqKK9mGpbuTnSlL9+i1SwCggocA szQk1lVKoHLT9D2P7uAF7Zw= =q1vl -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 06:25:56 2008 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 F2860106566B; Mon, 31 Mar 2008 06:25:55 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id AA13F8FC23; Mon, 31 Mar 2008 06:25:55 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.2/8.14.1) with ESMTP id m2V60GO7038398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Mar 2008 02:00:16 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by aldan.algebra.com (8.14.2/8.14.1/Submit) id m2V60GBV038397; Mon, 31 Mar 2008 02:00:16 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) From: Mikhail Teterin To: Daniel Eischen Date: Mon, 31 Mar 2008 02:00:15 -0400 User-Agent: KMail/1.9.9 References: <200803240459.m2O4xvFL084633@bonkers.video-collage.com> In-Reply-To: X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: emulation@freebsd.org, java@freebsd.org Subject: Re: linux-jdk and linux-firefox 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, 31 Mar 2008 06:25:56 -0000 On =D0=CF=CE=C5=C4=A6=CC=CF=CB 24 =C2=C5=D2=C5=DA=C5=CE=D8 2008, Daniel Eis= chen wrote: =3D > I'd love to use the native java with the native browser, but I /also/ =3D > need the ICA Citrix plugin in the same session, which is only availab= le =3D > for Linux. =3D=20 =3D Do you really need the ICA Citrix plugin? =9ACan you get by =3D with net/{gkx}rdesktop? Yes, I really do need Citrix... The remote access "solution" I'm trying to = use=20 was designed by people I don't even know, much less have any influence over. Also, using linux-firefox is the ONLY solution for Java plugin on amd64 -- = the=20 native plugin is not available on 64-bit platforms due to an unfortunate bu= g=20 (Sun's -- a pointer is cast to an explicitly 32-bit integer), which FreeBSD= =20 are yet to locally patch: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=3D4802695 The patch is rather trivial, but it is a different subject... So, what about linux-jdk and linux-firefox? Is not our linuxulator somewhat= =20 incomplete without this combo working perfectly? I can add more details -- linux-sun-jdk16 never works (hangs). linux-sun-jd= k15=20 works sometimes (about 40% of the time), other times it dumps "java core" i= n=20 the form of an hs_err*.log file and the browser needs restarting... Once again, does anybody have Java plugin working in linux-firefox? -mi From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 07:29:46 2008 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 6FDFA1065679; Mon, 31 Mar 2008 07:29:46 +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 95C1F8FC1D; Mon, 31 Mar 2008 07:29:45 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2V6wj2P013171; Sun, 30 Mar 2008 23:58:45 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2V6wiKD013170; Sun, 30 Mar 2008 23:58:44 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sun, 30 Mar 2008 23:58:43 -0700 From: Greg Lewis To: Mikhail Teterin Message-ID: <20080331065843.GA13087@misty.eyesbeyond.com> References: <200803240459.m2O4xvFL084633@bonkers.video-collage.com> <200803310200.16485@aldan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200803310200.16485@aldan> User-Agent: Mutt/1.4.2.2i Cc: Daniel Eischen , emulation@FreeBSD.org, java@FreeBSD.org Subject: Re: linux-jdk and linux-firefox 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, 31 Mar 2008 07:29:46 -0000 On Mon, Mar 31, 2008 at 02:00:15AM -0400, Mikhail Teterin wrote: > On ????????? 24 ???????? 2008, Daniel Eischen wrote: > = > I'd love to use the native java with the native browser, but I /also/ > = > need the ICA Citrix plugin in the same session, which is only available > = > for Linux. > = > = Do you really need the ICA Citrix plugin? ?Can you get by > = with net/{gkx}rdesktop? > > Yes, I really do need Citrix... The remote access "solution" I'm trying to use > was designed by people I don't even know, much less have any influence over. > > Also, using linux-firefox is the ONLY solution for Java plugin on amd64 -- the > native plugin is not available on 64-bit platforms due to an unfortunate bug > (Sun's -- a pointer is cast to an explicitly 32-bit integer), which FreeBSD > are yet to locally patch: > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4802695 > > The patch is rather trivial, but it is a different subject... First, the native ports do support the Java plugin on amd64. In fact, BSD is the only OS that I know of to support the plugin on amd64. Second, the work to make the plugin 64 bit clean was far from trivial, so you either didn't read the bug you've linked to or you're being facetious. > So, what about linux-jdk and linux-firefox? Is not our linuxulator somewhat > incomplete without this combo working perfectly? > > I can add more details -- linux-sun-jdk16 never works (hangs). linux-sun-jdk15 > works sometimes (about 40% of the time), other times it dumps "java core" in > the form of an hs_err*.log file and the browser needs restarting... > > Once again, does anybody have Java plugin working in linux-firefox? > > -mi > _______________________________________________ > 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 Mon Mar 31 08:58:40 2008 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 C1EF11065674 for ; Mon, 31 Mar 2008 08:58:40 +0000 (UTC) (envelope-from joafog.lists@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id 916108FC29 for ; Mon, 31 Mar 2008 08:58:40 +0000 (UTC) (envelope-from joafog.lists@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so434925anc.13 for ; Mon, 31 Mar 2008 01:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=miSod+xdTDtFvUWNMk9sjea/1wWJYb8SnW3CAZMnGWA=; b=KOd8MDQlWwi7O0KHCh8SazXfGSydEZ1JffX4YAf52VYfnm9LIE7/4H5JWW+IaEaLTUfn0wYR+y5oNL8VMwG4690GWZ9EumFwZ1egjz0i42ETwhJHhelgpOQ6RZPzzkJebyZtR3L16CWsCbPi7cuposK9lIJ5dB95haA1+ge3NFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ESmUTADcYPlJN7sBbvtPqUKzEXqDCARNNVB+8kFJU0L7JbxHGl8/xjy3bpnoANlXVkITpyxPW4izDcuig5GELvhTJyB4RU8I6fxe9pearivCAqUITQNaN5PWDgYw5FLfyYczQEAW4GiWtvDgHJc6YJ2kos/X65x1WKu2bSKUiyg= Received: by 10.100.140.15 with SMTP id n15mr15228337and.87.1206952273416; Mon, 31 Mar 2008 01:31:13 -0700 (PDT) Received: by 10.100.37.6 with HTTP; Mon, 31 Mar 2008 01:31:12 -0700 (PDT) Message-ID: Date: Mon, 31 Mar 2008 10:31:12 +0200 From: "Joakim Fogelberg" To: "Marc G. Fournier" In-Reply-To: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> Cc: freebsd-stable@freebsd.org, freebsd-java@freebsd.org Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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, 31 Mar 2008 08:58:40 -0000 On Mon, Mar 31, 2008 at 2:59 AM, Marc G. Fournier wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Is anyone running Azureus on 7-STABLE and getting decent performance from it? > > I just upgraded to 7-STABLE, installed /usr/ports/java/jdk15 (instead of > diablo) so that it uses libthr (checked with ldd), and now I'm barely able to > get one downloaded, let alone multiple, and almost nothing uploaded ... > > I've added: > > "-Djava.net.preferIPv4Stack=true" > > to /usr/local/bin/azureus, but, from reading the jdk15 makefile, IPv6 is only > enabled if/when you do WITH_IPV6, and I don't have that in my make.conf file, > therefore this shouldn't affect anything ... > > I have nothing in my /etc/libmap.conf file ... > > So, if there a problem, or am I missing something? > > > - -- > Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) > Email . scrappy@hub.org MSN . scrappy@hub.org > Yahoo . yscrappy Skype: hub.org ICQ . 7615664 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.4 (FreeBSD) > > iD8DBQFH8Ddc4QvfyHIvDvMRApPKAKCU1c+VVRqKK9mGpbuTnSlL9+i1SwCggocA > szQk1lVKoHLT9D2P7uAF7Zw= > =q1vl > -----END PGP SIGNATURE----- > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > I believe I had the same problem with 7.0-prerelease + Azureus + jdk15. If I remember correct, I could only download from other Azureus clients. I had no time to even try to find out why. I simply installed deluge instead. -- Joakim Fogelberg From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 09:03:08 2008 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 2EDDC1065670 for ; Mon, 31 Mar 2008 09:03:08 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id F2D718FC28 for ; Mon, 31 Mar 2008 09:03:06 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id m2V93389047333 for ; Mon, 31 Mar 2008 12:03:03 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id m2V933sd047332 for freebsd-java@freebsd.org; Mon, 31 Mar 2008 12:03:03 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-java@freebsd.org Date: Mon, 31 Mar 2008 11:03:02 +0200 User-Agent: KMail/1.9.7 References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200803311203.03216.achill@matrix.gatewaynet.com> Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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, 31 Mar 2008 09:03:08 -0000 =D3=F4=E9=F2 Monday 31 March 2008 11:31:12 =EF/=E7 Joakim Fogelberg =DD=E3= =F1=E1=F8=E5: > On Mon, Mar 31, 2008 at 2:59 AM, Marc G. Fournier wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > > > Is anyone running Azureus on 7-STABLE and getting decent performance f= rom it? > > > > I just upgraded to 7-STABLE, installed /usr/ports/java/jdk15 (instead = of > > diablo) so that it uses libthr (checked with ldd), and now I'm barely = able to > > get one downloaded, let alone multiple, and almost nothing uploaded ... > > > > I've added: > > > > "-Djava.net.preferIPv4Stack=3Dtrue" > > > > to /usr/local/bin/azureus, but, from reading the jdk15 makefile, IPv6 = is only > > enabled if/when you do WITH_IPV6, and I don't have that in my make.con= f file, > > therefore this shouldn't affect anything ... > > > > I have nothing in my /etc/libmap.conf file ... > > > > So, if there a problem, or am I missing something? > > > > > > - -- > > Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub= =2Eorg) > > Email . scrappy@hub.org MSN . scrappy@hub= =2Eorg > > Yahoo . yscrappy Skype: hub.org ICQ . 7615664 > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v2.0.4 (FreeBSD) > > > > iD8DBQFH8Ddc4QvfyHIvDvMRApPKAKCU1c+VVRqKK9mGpbuTnSlL9+i1SwCggocA > > szQk1lVKoHLT9D2P7uAF7Zw=3D > > =3Dq1vl > > -----END PGP SIGNATURE----- > > > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.o= rg" > > >=20 > I believe I had the same problem with 7.0-prerelease + Azureus + > jdk15. If I remember correct, I could only download from other Azureus > clients. I had no time to even try to find out why. I simply installed > deluge instead. >=20 Azureus sucks even in windows. =2D-=20 Achilleas Mantzios From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 10:01:42 2008 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 C3088106564A for ; Mon, 31 Mar 2008 10:01:42 +0000 (UTC) (envelope-from voitau@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id AC3EC8FC17 for ; Mon, 31 Mar 2008 10:01:42 +0000 (UTC) (envelope-from voitau@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1885317waf.3 for ; Mon, 31 Mar 2008 03:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=7Tej9FAiCBneweT9RTkuPnPlN4Uz5wh9AEtqA4DUEbE=; b=WrXriokj9X6azqLFzRlVXcNWBVeu4AfIH/hZZhmywsvfII0cjcMrdwztQqjaf+lfNn6Aict1eovCX0rkqR0fwvA1oSqFCgtXJ3mfTfY4rG+wQc8N5aMwNbK1k6hnhqhjSbMDAw9rPXScjYYDNwnKxQbhU5ceNBHQqw/14UnEdSI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=aVQcLKKppuZmJ9cfwToDFWKei4/qQRwvnZ5pAsnkLS1GiTc6KvaZlh2u3vV6EgvQdMxz/V9j6iIrShRoFQRBNB2O18brC5HEZ0RAuRbpmrJ8s1wwjGgEPtM/7ZM2wzbuIIvGYA5R2hZOTXo0+eLSZN992dJ7iml7lkzDmZJLz10= Received: by 10.114.175.16 with SMTP id x16mr9613728wae.12.1206956020788; Mon, 31 Mar 2008 02:33:40 -0700 (PDT) Received: by 10.114.92.20 with HTTP; Mon, 31 Mar 2008 02:33:40 -0700 (PDT) Message-ID: <56c204c90803310233o1bfa8a6fgf7db91841ae02ca9@mail.gmail.com> Date: Mon, 31 Mar 2008 12:33:40 +0300 From: "Aliaksandr Voitau" To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Obsolete jdk15, jdk16, linux-sun-jdk15, linux-sun-jdk16 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, 31 Mar 2008 10:01:42 -0000 Hi, freebsd-java, Are there any plans to update jdk ports in accordance with recently updated versions (1.5.0_15, 1.6.0_05)? (since all previous are already not available for download officially) Thanks! Alex. From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 10:25:22 2008 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 F399A1065671 for ; Mon, 31 Mar 2008 10:25:21 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta4.srv.hcvlny.cv.net (mta4.srv.hcvlny.cv.net [167.206.4.199]) by mx1.freebsd.org (Postfix) with ESMTP id D31EE8FC1C for ; Mon, 31 Mar 2008 10:25:21 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta4.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JYL001IMBM7R9B0@mta4.srv.hcvlny.cv.net> for freebsd-java@freebsd.org; Mon, 31 Mar 2008 06:25:20 -0400 (EDT) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.2/8.14.2) with ESMTP id m2VAPI1E004115; Mon, 31 Mar 2008 06:25:18 -0400 Date: Mon, 31 Mar 2008 06:25:13 -0400 From: "Aryeh M. Friedman" In-reply-to: <56c204c90803310233o1bfa8a6fgf7db91841ae02ca9@mail.gmail.com> To: Aliaksandr Voitau Message-id: <47F0BC09.5090203@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.6 References: <56c204c90803310233o1bfa8a6fgf7db91841ae02ca9@mail.gmail.com> User-Agent: Thunderbird 2.0.0.12 (X11/20080329) Cc: freebsd-java@freebsd.org Subject: Re: Obsolete jdk15, jdk16, linux-sun-jdk15, linux-sun-jdk16 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, 31 Mar 2008 10:25:22 -0000 Aliaksandr Voitau wrote: > Hi, freebsd-java, > > Are there any plans to update jdk ports in accordance with recently updated > versions (1.5.0_15, 1.6.0_05)? (since all previous are already not available > for download officially) > A side note diablo also needs to be rebuilt to get rid of kse references. > Thanks! > Alex. > _______________________________________________ > 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" > > From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 11:07:04 2008 Return-Path: Delivered-To: freebsd-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 C145310657DF for ; Mon, 31 Mar 2008 11:07:04 +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 B1DCB8FC29 for ; Mon, 31 Mar 2008 11:07:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2VB74ju038969 for ; Mon, 31 Mar 2008 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2VB740Y038965 for freebsd-java@FreeBSD.org; Mon, 31 Mar 2008 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 31 Mar 2008 11:07:04 GMT Message-Id: <200803311107.m2VB740Y038965@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, 31 Mar 2008 11:07:04 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/60083 java java/jdk14 - Unsafe use of getaddrinfo in jvm 1.4.2-p5 o java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/110912 java Java krb5 client leaks UDP connections o java/112595 java Java appletviewer frequently hangs (kse_release loop) o ports/113467 java Multiple "missing return value" errors building JDK on o java/114644 java tomcat goes out of PermSpace, jvm crashes o java/118496 java Eclipse packages do not work with 6.3-RC1/amd64 o java/118956 java eclipse and netbeans break on diablo-jdk15 o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o ports/121420 java java/jdk16: Java applet fails to find class under fire o java/121692 java java/jdk16: Java 1.5 1.5.0.14p8 crashes in RMI TCP Con 11 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext s java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires o java/97461 java Diablo JDK does not report Update level in a format su o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/115279 java [UPDATE] java/java3d to 1.5.1 o java/115773 java [request] java.nio channel selectors should use kqueue o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116841 java cannot build java/jdk16 by using java/linux-sun-jdk16 o java/119063 java An unexpected error has been detected by Java Runtime o java/119654 java jdk 1.6: java.awt.SplashScreen#getSplashScreen throws o java/120146 java netbeans 6.0 crash on amd64 a ports/120959 java java/sablevm-classpath did not build/install from port o ports/121416 java java/jdk15 can't build if BIN environment variable is 15 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 13:32:54 2008 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 423EC1065674 for ; Mon, 31 Mar 2008 13:32:54 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.187]) by mx1.freebsd.org (Postfix) with ESMTP id BC0738FC29 for ; Mon, 31 Mar 2008 13:32:53 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: by ti-out-0910.google.com with SMTP id j2so409527tid.3 for ; Mon, 31 Mar 2008 06:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=j2sHMGAf7w2JZnYPDX948IA7/KN8ZDo60wJJ7Ambykw=; b=VzrHwsy4tQVp3fJiv1JKcOaGIF3bFuKiG6nmu6gGgq7EIGgejWdcRVmuYKrUoVY+iRqrrdpk8zfHFhwE0gYe+Kqx0kBQc7Ws4B6p3OcSq/p+BeHvGU55cwwwcZyFY+yULL2N3mt1+WYEJtS6kCmSWfAZXc2s3mKI89kpnRtJtDo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=MQBgAvbOVjNxOngnt7YwN3+hIDDiGtuyMXDtVe8bpUYRkdQ2sdi1RqZT9pATKqk+GaaXz2g7S0AexyUFcEHl0wMqeGEzwp9A+8RfeUFOiLqPekGY2nTtdvtkfw51mmkOdgePFGMO01iU30zg16RGq+wCOaU3qSSEpDVDLyGGFOk= Received: by 10.110.32.9 with SMTP id f9mr2836534tif.8.1206970372217; Mon, 31 Mar 2008 06:32:52 -0700 (PDT) Received: by 10.70.75.7 with HTTP; Mon, 31 Mar 2008 06:32:51 -0700 (PDT) Message-ID: Date: Mon, 31 Mar 2008 13:32:51 +0000 From: Rod To: "Greg Lewis" In-Reply-To: <20080330151625.GA8977@misty.eyesbeyond.com> MIME-Version: 1.0 References: <20080330075658.GA6492@misty.eyesbeyond.com> <20080330151625.GA8977@misty.eyesbeyond.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-java@freebsd.org Subject: Re: Is JNI (Java Native Interface) Known to Work in Both Directions on FreeBSD (to invoke the JVM from native software)? 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, 31 Mar 2008 13:32:54 -0000 Guys Thanks for your help with this. After re-building jdk16, I was able to run the simple c++ invocation program to invoke a JVM via the JNI. For some reason however, I still get the SIGSYS with R and rJava so I'll contact the rJava developers next. Regards Rod. On Sun, Mar 30, 2008 at 3:16 PM, Greg Lewis wrote: > On Sun, Mar 30, 2008 at 08:23:52AM +0000, Rod wrote: > > I built the jdk16 originally under a FreeBSD7.0 installation that I had > > updated to 7-Release from pre-release via buildworld/buildkernel. > > > > The output below was from running under a fresh install of > > 7.0-Releaseinstalled from the > > 7.0-Release binaries (from the CDs). I installed the jdk16 that I had > built > > under the older buildworlded 7.0-Release onto the fresh binary installed > > 7.0-Release (which I installed clean specifically to investigate this > > problem). > > > > I'm now rebuilding jdk16 under the fresh 7.0-Release to see if that > helps. > > Sounds like a sensible thing to try. > > > Thanks for your help so far everyone - I've posted some further details > > (output log from the invocation test program). > > > > Greg I'm not sure what you're referring to regarding removal of KSE > > syscalls. What would be the implications in this situation? > > My bad, that has only happened in -current not in 7.x, so ignore that. I > was thinking of a reason that you'd get a SIGSYS (which means you're > invoking a non-existent syscall). Removal of the KSE syscalls would fit > that, but it hasn't happened in 7.x so that can't be the case. > > -- > 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 Mon Mar 31 13:51:13 2008 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 778B71065672; Mon, 31 Mar 2008 13:51:13 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id 292C98FC13; Mon, 31 Mar 2008 13:51:12 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.2/8.14.1) with ESMTP id m2VDospJ039930 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Mar 2008 09:50:54 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by aldan.algebra.com (8.14.2/8.14.1/Submit) id m2VDoret039929; Mon, 31 Mar 2008 09:50:53 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) From: Mikhail Teterin To: Greg Lewis Date: Mon, 31 Mar 2008 09:50:52 -0400 User-Agent: KMail/1.9.9 References: <200803240459.m2O4xvFL084633@bonkers.video-collage.com> <200803310200.16485@aldan> <20080331065843.GA13087@misty.eyesbeyond.com> In-Reply-To: <20080331065843.GA13087@misty.eyesbeyond.com> X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: Daniel Eischen , emulation@freebsd.org, java@freebsd.org Subject: native Java plugin for 64-bit (Re: linux-jdk and linux-firefox) 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, 31 Mar 2008 13:51:13 -0000 On =D0=CF=CE=C5=C4=A6=CC=CF=CB 31 =C2=C5=D2=C5=DA=C5=CE=D8 2008, Greg Lewis= wrote: =3D First, the native ports do support the Java plugin on amd64. =9AIn fact, =3D BSD is the only OS that I know of to support the plugin on amd64. =3D Second, the work to make the plugin 64 bit clean was far from trivial, =3D so you either didn't read the bug you've linked to or you're being =3D facetious. I'm sorry, Greg, I thought, it is still unavailable. I did not read the pag= e=20 in full, because I had my own recollection of the matter -- some years ago = I=20 tried building the plugin myself and saw the problem with the cast somewher= e=20 in it... I think, we even had a conversation on the subject, but I can not= =20 find it :( But, anyway, I still need Citrix and thus can not use the native browser... Can anyone respond to the original question? Thanks! -mi From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 19:08:43 2008 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 3AC9A106566C for ; Mon, 31 Mar 2008 19:08:43 +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 F289D8FC24 for ; Mon, 31 Mar 2008 19:08:42 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2VJ8gUH018862; Mon, 31 Mar 2008 12:08:42 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2VJ8fXK018861; Mon, 31 Mar 2008 12:08:41 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 31 Mar 2008 12:08:41 -0700 From: Greg Lewis To: Aliaksandr Voitau Message-ID: <20080331190841.GA18553@misty.eyesbeyond.com> References: <56c204c90803310233o1bfa8a6fgf7db91841ae02ca9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56c204c90803310233o1bfa8a6fgf7db91841ae02ca9@mail.gmail.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@FreeBSD.org Subject: Re: Obsolete jdk15, jdk16, linux-sun-jdk15, linux-sun-jdk16 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, 31 Mar 2008 19:08:43 -0000 On Mon, Mar 31, 2008 at 12:33:40PM +0300, Aliaksandr Voitau wrote: > Are there any plans to update jdk ports in accordance with recently updated > versions (1.5.0_15, 1.6.0_05)? (since all previous are already not available > for download officially) jdk15 is being done. jdk16 can't be done until Sun release the source for Update 5. You could speed up the linux ports updates by submitting patches :-). -- 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 Mon Mar 31 19:10:50 2008 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 8A736106564A for ; Mon, 31 Mar 2008 19:10:50 +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 4D0628FC20 for ; Mon, 31 Mar 2008 19:10:50 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2VJAnMY018898; Mon, 31 Mar 2008 12:10:49 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2VJAmoW018897; Mon, 31 Mar 2008 12:10:48 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 31 Mar 2008 12:10:48 -0700 From: Greg Lewis To: "Aryeh M. Friedman" Message-ID: <20080331191048.GB18553@misty.eyesbeyond.com> References: <56c204c90803310233o1bfa8a6fgf7db91841ae02ca9@mail.gmail.com> <47F0BC09.5090203@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47F0BC09.5090203@gmail.com> User-Agent: Mutt/1.4.2.2i Cc: Aliaksandr Voitau , freebsd-java@freebsd.org Subject: Re: Obsolete jdk15, jdk16, linux-sun-jdk15, linux-sun-jdk16 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, 31 Mar 2008 19:10:50 -0000 On Mon, Mar 31, 2008 at 06:25:13AM -0400, Aryeh M. Friedman wrote: > Aliaksandr Voitau wrote: > >Hi, freebsd-java, > > > >Are there any plans to update jdk ports in accordance with recently updated > >versions (1.5.0_15, 1.6.0_05)? (since all previous are already not > >available > >for download officially) > > > > A side note diablo also needs to be rebuilt to get rid of kse references. Very unlikely to happen unless someone wants to fund this. You can't just rebuild it, you've got to rebuild it and then run it through the JCK tests again. Time is much more likely to be invested in getting a Diablo release for 1.6 done rather than updating the 1.5 release unless someone is paid to do 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 Mon Mar 31 19:50:20 2008 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 355FB106566B for ; Mon, 31 Mar 2008 19:50:20 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta5.srv.hcvlny.cv.net (mta5.srv.hcvlny.cv.net [167.206.4.200]) by mx1.freebsd.org (Postfix) with ESMTP id 0985A8FC16 for ; Mon, 31 Mar 2008 19:50:19 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta5.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JYM00ACF1RU8OJ0@mta5.srv.hcvlny.cv.net> for freebsd-java@freebsd.org; Mon, 31 Mar 2008 15:50:19 -0400 (EDT) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.2/8.14.2) with ESMTP id m2VJoHYh017597; Mon, 31 Mar 2008 15:50:18 -0400 Date: Mon, 31 Mar 2008 15:50:12 -0400 From: "Aryeh M. Friedman" In-reply-to: <20080331191048.GB18553@misty.eyesbeyond.com> To: Greg Lewis Message-id: <47F14074.2080801@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.6 References: <56c204c90803310233o1bfa8a6fgf7db91841ae02ca9@mail.gmail.com> <47F0BC09.5090203@gmail.com> <20080331191048.GB18553@misty.eyesbeyond.com> User-Agent: Thunderbird 2.0.0.12 (X11/20080329) Cc: Aliaksandr Voitau , freebsd-java@freebsd.org Subject: Re: Obsolete jdk15, jdk16, linux-sun-jdk15, linux-sun-jdk16 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, 31 Mar 2008 19:50:20 -0000 Greg Lewis wrote: > On Mon, Mar 31, 2008 at 06:25:13AM -0400, Aryeh M. Friedman wrote: > >> Aliaksandr Voitau wrote: >> >>> Hi, freebsd-java, >>> >>> Are there any plans to update jdk ports in accordance with recently updated >>> versions (1.5.0_15, 1.6.0_05)? (since all previous are already not >>> available >>> for download officially) >>> >>> >> A side note diablo also needs to be rebuilt to get rid of kse references. >> > > Very unlikely to happen unless someone wants to fund this. You can't just > rebuild it, you've got to rebuild it and then run it through the JCK tests > again. Time is much more likely to be invested in getting a Diablo release > for 1.6 done rather than updating the 1.5 release unless someone is paid > to do it. > > Valid SoC project? If so I will make an application for it. (I already applied for ports 2.0 but will make this my alt) From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 20:16:19 2008 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 1A0681065674 for ; Mon, 31 Mar 2008 20:16:19 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mx1.freebsd.org (Postfix) with ESMTP id CBCB08FC16 for ; Mon, 31 Mar 2008 20:16:18 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from 209-6-22-188.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.22.188]) by smtp01.lnh.mail.rcn.net with ESMTP; 31 Mar 2008 17:07:11 -0400 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18417.17323.160703.979205@jerusalem.litteratus.org> Date: Mon, 31 Mar 2008 16:03:55 -0400 To: "Aryeh M. Friedman" In-Reply-To: <47F14074.2080801@gmail.com> References: <56c204c90803310233o1bfa8a6fgf7db91841ae02ca9@mail.gmail.com> <47F0BC09.5090203@gmail.com> <20080331191048.GB18553@misty.eyesbeyond.com> <47F14074.2080801@gmail.com> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid Cc: Aliaksandr Voitau , freebsd-java@freebsd.org Subject: Re: Obsolete jdk15, jdk16, linux-sun-jdk15, linux-sun-jdk16 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, 31 Mar 2008 20:16:19 -0000 Aryeh M. Friedman writes: > >>> Are there any plans to update jdk ports in accordance with > >>> recently updated versions (1.5.0_15, 1.6.0_05)? (since all > >>> previous are already not available for download officially) > >>> > >> A side note diablo also needs to be rebuilt to get rid of kse references. > > > > Very unlikely to happen unless someone wants to fund this. You can't just > > rebuild it, you've got to rebuild it and then run it through the JCK tests > > again. Time is much more likely to be invested in getting a Diablo release > > for 1.6 done rather than updating the 1.5 release unless someone is paid > > to do it. > > Valid SoC project? If so I will make an application for it. (I > already applied for ports 2.0 but will make this my alt) As I understand things, the obstacle is not "rebuild it" but "run it through the JCK tests again". The latter takes time, it takes (five digits ?? of) money, and it takes one or more Official People babysitting the process. Diablo-1.5 happened in part because a third party thought it worth their effort to fund the effort. Given a viable successor is already in the field, it would seem to ake sense for them to fund that ... if they fund anything at all. Robert Huff From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 20:30:15 2008 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 E1A7A1065675 for ; Mon, 31 Mar 2008 20:30: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 864F88FC2F for ; Mon, 31 Mar 2008 20:30:15 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2VKUEos019687; Mon, 31 Mar 2008 13:30:14 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2VKUDHM019686; Mon, 31 Mar 2008 13:30:13 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 31 Mar 2008 13:30:13 -0700 From: Greg Lewis To: Robert Huff Message-ID: <20080331203013.GA19523@misty.eyesbeyond.com> References: <56c204c90803310233o1bfa8a6fgf7db91841ae02ca9@mail.gmail.com> <47F0BC09.5090203@gmail.com> <20080331191048.GB18553@misty.eyesbeyond.com> <47F14074.2080801@gmail.com> <18417.17323.160703.979205@jerusalem.litteratus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18417.17323.160703.979205@jerusalem.litteratus.org> User-Agent: Mutt/1.4.2.2i Cc: "Aryeh M. Friedman" , freebsd-java@freebsd.org Subject: Re: Obsolete jdk15, jdk16, linux-sun-jdk15, linux-sun-jdk16 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, 31 Mar 2008 20:30:16 -0000 On Mon, Mar 31, 2008 at 04:03:55PM -0400, Robert Huff wrote: > Aryeh M. Friedman writes: > > >>> Are there any plans to update jdk ports in accordance with > > >>> recently updated versions (1.5.0_15, 1.6.0_05)? (since all > > >>> previous are already not available for download officially) > > >>> > > >> A side note diablo also needs to be rebuilt to get rid of kse references. > > > > > > > Very unlikely to happen unless someone wants to fund this. You can't just > > > rebuild it, you've got to rebuild it and then run it through the JCK tests > > > again. Time is much more likely to be invested in getting a Diablo release > > > for 1.6 done rather than updating the 1.5 release unless someone is paid > > > to do it. > > > > Valid SoC project? If so I will make an application for it. (I > > already applied for ports 2.0 but will make this my alt) > > As I understand things, the obstacle is not "rebuild it" but > "run it through the JCK tests again". The latter takes time, it > takes (five digits ?? of) money, and it takes one or more Official > People babysitting the process. > Diablo-1.5 happened in part because a third party thought it > worth their effort to fund the effort. Given a viable successor is > already in the field, it would seem to ake sense for them to fund > that ... if they fund anything at all. The monetary cost of doing it I was speaking of was to pay someone to do it (the Foundation has previously done this as contract work). If the Foundation were willing, a volunteer could do this. The volunteer would need to be ready for a significant time investment and be familiar with the JDK build process and code. All the current porting volunteer time being spent on Diablo is being spent on 1.6. The next most pressing project that is ongoing has to do with OpenJDK, which will heopfully make these binary releases obsolete to some extent. Given that, its unlikely that one of the current porting team is going to look at updating the current 1.5 binary. I don't know if this is a valid SoC project or not since I'm not sure what qualifies as one. If you have to be able to show code at the end of it then it isn't, since the code would be restricted. -- 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 Mon Mar 31 21:01:17 2008 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 E13781065671 for ; Mon, 31 Mar 2008 21:01:16 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from mail1.intricatesoftware.com (cl-18.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:11::2]) by mx1.freebsd.org (Postfix) with ESMTP id A0F518FC2A for ; Mon, 31 Mar 2008 21:01:15 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from seraph.intricatesoftware.com (relay@localhost.intricatesoftware.com [IPv6:::1]) by mail1.intricatesoftware.com (8.14.1/8.13.4) with ESMTP id m2VL0tY8025616; Mon, 31 Mar 2008 17:00:56 -0400 (EDT) Received: from seraph.intricatesoftware.com (truk@localhost.intricatesoftware.com [127.0.0.1]) by seraph.intricatesoftware.com (8.14.1/8.14.1) with ESMTP id m2VL0t9n007162; Mon, 31 Mar 2008 17:00:55 -0400 (EDT) Received: (from truk@localhost) by seraph.intricatesoftware.com (8.14.1/8.14.1/Submit) id m2VL0slu013326; Mon, 31 Mar 2008 17:00:54 -0400 (EDT) X-Authentication-Warning: seraph.intricatesoftware.com: truk set sender to lists@intricatesoftware.com using -f From: Kurt Miller To: freebsd-java@freebsd.org Date: Mon, 31 Mar 2008 17:00:54 -0400 User-Agent: KMail/1.9.7 References: <20080323191540.9FCAC8FC16@mx1.freebsd.org> In-Reply-To: <20080323191540.9FCAC8FC16@mx1.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803311700.54567.lists@intricatesoftware.com> X-SMTP-Vilter-Version: 1.3.6 X-SMTP-Vilter-Virus-Backend: clamd X-SMTP-Vilter-Status: clean X-SMTP-Vilter-clamd-Virus-Status: clean X-Spamd-Symbols: ALL_TRUSTED,BAYES_00 X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -4.4 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.9 X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean Cc: Dominic Bishop Subject: Re: File descriptor leaks under java 1.6 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kurt@intricatesoftware.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 21:01:17 -0000 On Sunday 23 March 2008 3:13:33 pm Dominic Bishop wrote: > I have an application that makes use of 2 way socket communcations, so uses > Socket/ServerSocket, this is all standard IO, no java.nio is involved. > > When running this under diablo 1.5 everything works fine, watching allocated > file descriptors with lsof shows nothing abnormal whatsoever. > > If I run this under a port build JDK 1.6 then it starts leaking file > descriptors originating from TCP, until eventually the available descriptors > are exhausted and the application crashes with a 'too many open files' > error. > > I've tried both patchset 3 and 4 of the port, under amd64 and i386 > architecture FreeBSD 6.3 and the same problem occurs under all > circumstances. > > The problem file descriptors in the lsof output appear as: > > java 47065 djb 46u IPv4 0xffffff01354a4000 0t0 TCP *:* > (CLOSED) > java 47065 djb 47u IPv4 0xffffff006b2875f0 0t0 TCP *:* > (CLOSED) > java 47065 djb 48u IPv4 0xffffff0001bdcbe0 0t0 TCP *:* > (CLOSED) > java 47065 djb 49u IPv4 0xffffff015924c000 0t0 TCP *:* > (CLOSED) > java 47065 djb 50u IPv4 0xffffff01375078e8 0t0 TCP *:* > (CLOSED) > > I ran the application with -Xrunhprof enabled under jdk 1.6 and then used > jhat to look at the resulting dump. > > I managed to determine from this that the FD number (ie 46u) corresponds to > the 'fd' field in a java.io.FileDescriptor instance. > > Using the Object Query Language in jhat I went looking for these file > descriptor instances using: > > 'select f from java.io.FileDescriptor f where f.fd == ##' > > For numbers which were genuine file descriptors (ie connected sockets etc) > this would always find the file descriptor instance and walking through the > referenced objects/fields it was clear it had located the correct file > descriptor. By that I mean the connected address, or for actual files, the > pointed to filename agreed with the lsof output. > > If however I tried this query looking for file descriptor numbers which lsof > was showing in the CLOSED state then it would fail to find them at all, so > no FileDescriptor instance in the java heap referenced these file descriptor > numbers. > > To make sure I did a: > 'select f.fd from java.io.FileDescriptor f' > > This listed the 'fd' field value for all instances of java.io.FileDescriptor > in the heap, I had numbers for the ones expected (ie actual bound sockets, > open files/pipes etc that lsof showed) as well as quite a few set to -1 and > a lot set to 0. Presumably these last 2 are either newly created instances > or ones awaiting garbage collection. > > I've basically completely run out of ideas as to where these file > descriptors are leaking, and given the working behaviour under diablo 1.5 > and the lack of references in the heap dump I'm no longer sure that this is > actually a problem in my code. > > Anyone more familiar with the JVM internals got any suggestions as to where > to go next? Hi Dominic, My next step would be to create a minimal test case and post it here to see if others can reproduce it. A minimal test case is also useful to narrow the scope of what JVM code needs to be reviewed to find the cause. -Kurt From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 22:09:52 2008 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 E315A106566B for ; Mon, 31 Mar 2008 22:09:52 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id A7AA98FC1E for ; Mon, 31 Mar 2008 22:09:52 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id C2E4C1687513; Mon, 31 Mar 2008 18:50:58 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 64234-07; Mon, 31 Mar 2008 18:50:57 -0300 (ADT) Received: from fserv.hub.org (blk-7-245-234.eastlink.ca [71.7.245.234]) by hub.org (Postfix) with ESMTP id 51571168750C; Mon, 31 Mar 2008 18:50:58 -0300 (ADT) Received: from [192.168.1.2] (unknown [192.168.1.2]) by fserv.hub.org (Postfix) with ESMTP id 7227C5FA1B; Mon, 31 Mar 2008 18:51:00 -0300 (ADT) Date: Mon, 31 Mar 2008 18:49:05 -0300 From: "Marc G. Fournier" To: Achilleas Mantzios , freebsd-java@freebsd.org Message-ID: <5182068AEA70F5E0F2FC84AC@ganymede.hub.org> In-Reply-To: <200803311203.03216.achill@matrix.gatewaynet.com> References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> <200803311203.03216.achill@matrix.gatewaynet.com> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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, 31 Mar 2008 22:09:53 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On Monday, March 31, 2008 11:03:02 +0200 Achilleas Mantzios wrote: > Azureus sucks even in windows. Alternate recommendations? Someone mentioned deluge to me ... is there something better yet? - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFH8VxS4QvfyHIvDvMRAt/8AJ9YZDG/zjIqAqww2IqnJVVfrbT+AACeNYDy pimRwAP+4MGQ5gt5+93A/xI= =xuZx -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 23:04:37 2008 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 77A06106564A for ; Mon, 31 Mar 2008 23:04:37 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (chen.org.nz [202.89.146.5]) by mx1.freebsd.org (Postfix) with ESMTP id 2C7148FC21 for ; Mon, 31 Mar 2008 23:04:37 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 967F92852C; Tue, 1 Apr 2008 12:04:35 +1300 (NZDT) Date: Tue, 1 Apr 2008 12:04:35 +1300 From: Jonathan Chen To: "Marc G. Fournier" Message-ID: <20080331230435.GB11344@osiris.chen.org.nz> References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> <200803311203.03216.achill@matrix.gatewaynet.com> <5182068AEA70F5E0F2FC84AC@ganymede.hub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5182068AEA70F5E0F2FC84AC@ganymede.hub.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-java@freebsd.org Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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, 31 Mar 2008 23:04:37 -0000 On Mon, Mar 31, 2008 at 06:49:05PM -0300, Marc G. Fournier wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > - --On Monday, March 31, 2008 11:03:02 +0200 Achilleas Mantzios > wrote: > > > Azureus sucks even in windows. > > Alternate recommendations? Someone mentioned deluge to me ... is there > something better yet? There's ktorrent for KDE; but if you're using Gnome, I would go with deluge. It's pretty lightweight compared to Azureus. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- Experience is a hard teacher because she gives the test first, the lesson afterwards From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 23:26:55 2008 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 AE442106566B for ; Mon, 31 Mar 2008 23:26:55 +0000 (UTC) (envelope-from fluffy@ael.ru) Received: from ns.ael.RU (ns.ael.ru [62.76.207.226]) by mx1.freebsd.org (Postfix) with ESMTP id DA1578FC15 for ; Mon, 31 Mar 2008 23:26:54 +0000 (UTC) (envelope-from fluffy@ael.ru) Received: from neko.fluffy.khv.ru (thor@neko.local.ael [192.168.7.162]) by ns.ael.RU (8.14.1/8.14.1/Fluffy/5.2) with ESMTP id m2VNGUnB010907 for ; Tue, 1 Apr 2008 10:16:30 +1100 (VLAST) (envelope-from fluffy@ael.ru) From: Dima Panov To: freebsd-java@freebsd.org Date: Tue, 1 Apr 2008 09:16:19 +1000 User-Agent: KMail/1.9.7 References: <1d3ed48c0803282143k75c475a1i1bd5ffa99a26463e@mail.gmail.com> In-Reply-To: <1d3ed48c0803282143k75c475a1i1bd5ffa99a26463e@mail.gmail.com> X-Face: (Zs+'ncTcchkOX|~t6{?Iii=O!G#WEK!+OD0|-F=i%1pvP5V_Sz4PaJC8o)=?utf-8?q?MiSnH/JMJFy=0A=09oBN-My?=, v":S7, (=?utf-8?q?mmkPm=27U=7BMgT+eM=2EBd=5Cp/P!dr=5DhOTXqpse21O!=25Ct=60SE=2EOodq?= =?utf-8?q?=5Dry=5E=23kU=5E=0A=09-?=GT.[8D}i$6P>=" =?utf-8?q?=23=0A=09*J+4d=7E?= MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200804011016.20303.fluffy@ael.ru> X-Virus-Scanned: ClamAV version 0.92.1, clamav-milter version 0.92.1 on ns.ael.RU X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (ns.ael.RU [192.168.1.1]); Tue, 01 Apr 2008 10:16:30 +1100 (VLAST) X-Spam-Status: No, score=-110.9 required=8.0 tests=ALL_TRUSTED,BAYES_00, J_CHICKENPOX_72,TW_OC,USER_IN_WHITELIST autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on ns.ael.RU Subject: Re: java v. procfs 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, 31 Mar 2008 23:26:55 -0000 On 29 March 2008, Kevin Downey wrote: > I was having trouble getting java to work and I googled and found a > site that said they don't mix. When I unmounted /proc java started > working. I would kind of like to have both since /proc is needed for > gnome. > > > % sudo mount -t procfs null /proc > % java -cp /usr/local/share/java/classes/jline.jar:clojure.jar > jline.ConsoleRunner clojure.lang.Repl > Error: could not find libjava.so > Error: could not find Java 2 Runtime Environment. Confirmed this on Intel Core 2 Duo systems. On single-core systems java and procfs can coexist. Is it SMP-related bug in procfs implementation? -- Дмитрий А. Панов Администратор ЛВС Государственная Академия Экономики и Права Хабаровск, Россия From owner-freebsd-java@FreeBSD.ORG Tue Apr 1 00:37:56 2008 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 74C391065671 for ; Tue, 1 Apr 2008 00:37:56 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta3.srv.hcvlny.cv.net (mta3.srv.hcvlny.cv.net [167.206.4.198]) by mx1.freebsd.org (Postfix) with ESMTP id CE9C98FC2C for ; Tue, 1 Apr 2008 00:37:55 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta3.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JYM006HXF1XFXI0@mta3.srv.hcvlny.cv.net> for freebsd-java@freebsd.org; Mon, 31 Mar 2008 20:37:55 -0400 (EDT) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.2/8.14.2) with ESMTP id m310b7pd017887; Mon, 31 Mar 2008 20:37:08 -0400 Date: Mon, 31 Mar 2008 20:37:02 -0400 From: "Aryeh M. Friedman" In-reply-to: <20080331203013.GA19523@misty.eyesbeyond.com> To: Greg Lewis Message-id: <47F183AE.3010408@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.6 References: <56c204c90803310233o1bfa8a6fgf7db91841ae02ca9@mail.gmail.com> <47F0BC09.5090203@gmail.com> <20080331191048.GB18553@misty.eyesbeyond.com> <47F14074.2080801@gmail.com> <18417.17323.160703.979205@jerusalem.litteratus.org> <20080331203013.GA19523@misty.eyesbeyond.com> User-Agent: Thunderbird 2.0.0.12 (X11/20080329) Cc: Robert Huff , freebsd-java@freebsd.org Subject: Re: Obsolete jdk15, jdk16, linux-sun-jdk15, linux-sun-jdk16 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, 01 Apr 2008 00:37:56 -0000 Greg Lewis wrote: > On Mon, Mar 31, 2008 at 04:03:55PM -0400, Robert Huff wrote: > >> Aryeh M. Friedman writes: >> >>> >>> Are there any plans to update jdk ports in accordance with >>> >>> recently updated versions (1.5.0_15, 1.6.0_05)? (since all >>> >>> previous are already not available for download officially) >>> >>> >>> >> A side note diablo also needs to be rebuilt to get rid of kse references. >>> > >>> >>> > Very unlikely to happen unless someone wants to fund this. You can't just >>> > rebuild it, you've got to rebuild it and then run it through the JCK tests >>> > again. Time is much more likely to be invested in getting a Diablo release >>> > for 1.6 done rather than updating the 1.5 release unless someone is paid >>> > to do it. >>> >>> Valid SoC project? If so I will make an application for it. (I >>> already applied for ports 2.0 but will make this my alt) >>> >> As I understand things, the obstacle is not "rebuild it" but >> "run it through the JCK tests again". The latter takes time, it >> takes (five digits ?? of) money, and it takes one or more Official >> People babysitting the process. >> Diablo-1.5 happened in part because a third party thought it >> worth their effort to fund the effort. Given a viable successor is >> already in the field, it would seem to ake sense for them to fund >> that ... if they fund anything at all. >> > > The monetary cost of doing it I was speaking of was to pay someone to do it > (the Foundation has previously done this as contract work). If the > Foundation were willing, a volunteer could do this. The volunteer would > need to be ready for a significant time investment and be familiar > with the JDK build process and code. All the current porting volunteer > time being spent on Diablo is being spent on 1.6. The next most pressing > project that is ongoing has to do with OpenJDK, which will heopfully make > these binary releases obsolete to some extent. Given that, its unlikely > that one of the current porting team is going to look at updating the > current 1.5 binary. > > I don't know if this is a valid SoC project or not since I'm not sure what > qualifies as one. If you have to be able to show code at the end of it > then it isn't, since the code would be restricted. > > My understanding is I just need to show a deliverable of some kind (binary is fine). I am familiar with the JDK build process but not the code (but do have a solid course work background in VM's and Compilor Theory as well I have read the JVM spec as well as the class format spec as well as 25 years experience in general coding before returning to school). Since the deadline for appiling for SoC is tonight I will file the application immediately (I can always revise it). Some things I will have to guess at. I will post a copy of the application as a reply to this thread. The way I understand it someone like Greg would need to be my "mentor". From owner-freebsd-java@FreeBSD.ORG Tue Apr 1 01:07:06 2008 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 ABA021065672 for ; Tue, 1 Apr 2008 01:07:05 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta4.srv.hcvlny.cv.net (mta4.srv.hcvlny.cv.net [167.206.4.199]) by mx1.freebsd.org (Postfix) with ESMTP id 7872E8FC12 for ; Tue, 1 Apr 2008 01:07:05 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta4.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JYM00E9IGFSTBA0@mta4.srv.hcvlny.cv.net> for freebsd-java@freebsd.org; Mon, 31 Mar 2008 21:07:04 -0400 (EDT) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.2/8.14.2) with ESMTP id m31173Ok017931; Mon, 31 Mar 2008 21:07:03 -0400 Date: Mon, 31 Mar 2008 21:06:58 -0400 From: "Aryeh M. Friedman" In-reply-to: <47F183AE.3010408@gmail.com> To: Greg Lewis Message-id: <47F18AB2.9030002@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.6 References: <56c204c90803310233o1bfa8a6fgf7db91841ae02ca9@mail.gmail.com> <47F0BC09.5090203@gmail.com> <20080331191048.GB18553@misty.eyesbeyond.com> <47F14074.2080801@gmail.com> <18417.17323.160703.979205@jerusalem.litteratus.org> <20080331203013.GA19523@misty.eyesbeyond.com> <47F183AE.3010408@gmail.com> User-Agent: Thunderbird 2.0.0.12 (X11/20080329) Cc: Robert Huff , freebsd-java@freebsd.org Subject: Re: Obsolete jdk15, jdk16, linux-sun-jdk15, linux-sun-jdk16 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, 01 Apr 2008 01:07:06 -0000 Aryeh M. Friedman wrote: > Greg Lewis wrote: >> On Mon, Mar 31, 2008 at 04:03:55PM -0400, Robert Huff wrote: >> >>> Aryeh M. Friedman writes: >>> >>>> >>> Are there any plans to update jdk ports in accordance with >>>> >>> recently updated versions (1.5.0_15, 1.6.0_05)? (since all >>>> >>> previous are already not available for download officially) >>>> >>> >> A side note diablo also needs to be rebuilt to get rid of >>>> kse references. >>>> > >>>> > Very unlikely to happen unless someone wants to fund >>>> this. You can't just >>>> > rebuild it, you've got to rebuild it and then run it through the >>>> JCK tests >>>> > again. Time is much more likely to be invested in getting a >>>> Diablo release >>>> > for 1.6 done rather than updating the 1.5 release unless someone >>>> is paid >>>> > to do it. >>>> >>>> Valid SoC project? If so I will make an application for it. (I >>>> already applied for ports 2.0 but will make this my alt) >>>> >>> As I understand things, the obstacle is not "rebuild it" but >>> "run it through the JCK tests again". The latter takes time, it >>> takes (five digits ?? of) money, and it takes one or more Official >>> People babysitting the process. >>> Diablo-1.5 happened in part because a third party thought it >>> worth their effort to fund the effort. Given a viable successor is >>> already in the field, it would seem to ake sense for them to fund >>> that ... if they fund anything at all. >>> >> >> The monetary cost of doing it I was speaking of was to pay someone to >> do it >> (the Foundation has previously done this as contract work). If the >> Foundation were willing, a volunteer could do this. The volunteer would >> need to be ready for a significant time investment and be familiar >> with the JDK build process and code. All the current porting volunteer >> time being spent on Diablo is being spent on 1.6. The next most >> pressing >> project that is ongoing has to do with OpenJDK, which will heopfully >> make >> these binary releases obsolete to some extent. Given that, its unlikely >> that one of the current porting team is going to look at updating the >> current 1.5 binary. >> >> I don't know if this is a valid SoC project or not since I'm not sure >> what >> qualifies as one. If you have to be able to show code at the end of it >> then it isn't, since the code would be restricted. >> >> > My understanding is I just need to show a deliverable of some kind > (binary is fine). I am familiar with the JDK build process but not > the code (but do have a solid course work background in VM's and > Compilor Theory as well I have read the JVM spec as well as the class > format spec as well as 25 years experience in general coding before > returning to school). Since the deadline for appiling for SoC is > tonight I will file the application immediately (I can always revise > it). Some things I will have to guess at. I will post a copy of > the application as a reply to this thread. The way I understand it > someone like Greg would need to be my "mentor". > _______________________________________________ > 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" > Here is the text of the application: Name: Aryeh M. Friedman Email: aryeh.friedman@gmail.com Phone: +1 845 558 4829 Project Title: Diablo 1.5 porting to post-KSE kernels Possible Mentor: Greg Lewis Benefits to the FreeBSD Community: As outlined by Greg Lewis in order to port Diablo 1.5 to kernels that don't have KSE (and other more modern IPC/threading mechanisms). Requires the following: * Sigificant time commitment to bring the code upto date * Needs to pass the JCK test suite Currently due to KSE's removal the only way to "boot strap" a native JDK is to install Diablo but only after making the approriate mappings in /etc/libmnap.conf which are largely undocumented and dependant on the OS version and build platform. This means that a working JDK (required for Open-Office, Eclipse, Ant, Eclipse, etc. as well any working Java developer) on 7 (latest patch cvs version) or 8-CURRENT one needs to perform some rather undocumented and less then intutive manual adjustments. The goal of this project is to rebuild/port Diablo 1.5 to not require these manual procedures. Deliverables: A. Binaries for all supported platforms B. Record of the JCK test results for all supported platforms Note: I can only do i386 and AMD86 directly Project Schedule: Total Time Comittment: 8 Weeks Can start: 6/1/08 Key Milestones and deadlines: Milestone Deadline -------------------------------------------------------- Build of Diablo 1.5 on 8-Current AMD64 Week 4 Above passes JCK Tests Week 6 Rebuild and test for all supported platforms Week 8 Availability: 30 to 40 hrs/week avaible I have 1 (maybe 2) classes this summer. Bio: I am a experienced UNIX developer (self taught) who has worked as a CS researcher and product developer (see resume, http://www.flosoft-systems.com/resume note it is about 4 years out of date). I returned to school for two reasons: 1. More and more employers insist on a BA/MA min. for even an interview 2. Be able to rewrite some of my research in more formal form in pursuit of my PhD. I feel I am the person to do this project for the following reasons: 1. I have used FreeBSD as my primary (only) Java development platform for 5 years thus am familure with the user level interface to the JVM Wrapper system as well use of the JDK 1.5 command line 2. Broad experience in multiple languages and systems level coding has given me a view point that would be hard to find in a non-returning student. Summery of Programming Experience: * 25 Years of general coding (as a hobby and professionally) * 20 Years of userland coding experience with BSD * 5 Years experience with Java * Have been involved as a coder and/or designer in many projects that exceed 20k lines of code * Single developer on several 10+k line of code projects Other experience: * Techinical manager of 2 program teams * 20 Years of work in and/or arround open source projects Most recent/relivent course work: * Theory of Computation (aka Intro to Theortical CS at the grad level) (currently enrolled) * Compilor Theory (self taught) * Advanced Data Structures (including Graph Theory) (A) * Data structures (A-) * Alogrithm design/ananylsis (A) * Operating system development (B+) * Oracle DBA/RDBMS theory (A) Cumm. GPA: 3.75 Total credits: 116 (96 from prior learning credit) Current professional interests: * Operating systems * Transport protocols * Optimal search algorithms (subuject of a pending patent) * Social/political effects of FOSS * Alternative licensing schemes that allow for better blending of FOSS and commerical projects * Wide scale use of persitent object spaces * Data representation * Multi-language/paradigm compilors * Agile methods From owner-freebsd-java@FreeBSD.ORG Tue Apr 1 03:37:16 2008 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 D55E1106564A for ; Tue, 1 Apr 2008 03:37:16 +0000 (UTC) (envelope-from tim1timau@yahoo.com) Received: from web50301.mail.re2.yahoo.com (web50301.mail.re2.yahoo.com [206.190.38.55]) by mx1.freebsd.org (Postfix) with SMTP id 60E7F8FC21 for ; Tue, 1 Apr 2008 03:37:16 +0000 (UTC) (envelope-from tim1timau@yahoo.com) Received: (qmail 24700 invoked by uid 60001); 1 Apr 2008 03:10:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=sv40pdWEKeiPqSAmtSHSVu4cgwXLfR7AfPtYxK7jzPo/NtYnX2Z/+XNe6z3GkIQCZL5ZJ2ViEmH5EG8MU2ZLEHtdMF8T+6wvgriRltNYTCWzouToV0ISCmtXXrkb1+++pLps/NoFeqkPnhfTf+Z3ltVOoO8vG31AKfQL+TIn9N0=; X-YMail-OSG: IV7rXDkVM1kkWnCTXUR1HmcOiDYH_lQdV8.jbdsJe8p015jUSaChngghAJmDXV26x2KHiBQQ1qIrvwTYucLSM6S9SnX6IwYAxnBy3e1usuHfizv3xe.a2O6m6Exi Received: from [210.215.149.194] by web50301.mail.re2.yahoo.com via HTTP; Mon, 31 Mar 2008 20:10:33 PDT Date: Mon, 31 Mar 2008 20:10:33 -0700 (PDT) From: Tim Clewlow To: "Marc G. Fournier" , Achilleas Mantzios , freebsd-java@freebsd.org In-Reply-To: <5182068AEA70F5E0F2FC84AC@ganymede.hub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <192666.24347.qm@web50301.mail.re2.yahoo.com> Cc: Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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, 01 Apr 2008 03:37:16 -0000 --- "Marc G. Fournier" wrote: > > - --On Monday, March 31, 2008 11:03:02 +0200 Achilleas Mantzios > wrote: > > > Azureus sucks even in windows. > > Alternate recommendations? Someone mentioned deluge to me ... is there > something better yet? > I use rtorrent - it runs in a text terminal. Which I like because it means I can remote control it with ssh and screen. Cheers, Tim. We are BSD ... resistance is futile. http://www.freebsd.org/ - http://www.openbsd.org/ - http://www.netbsd.org/ ____________________________________________________________________________________ OMG, Sweet deal for Yahoo! users/friends:Get A Month of Blockbuster Total Access, No Cost. W00t http://tc.deals.yahoo.com/tc/blockbuster/text2.com From owner-freebsd-java@FreeBSD.ORG Tue Apr 1 13:37:21 2008 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 A8BD5106564A for ; Tue, 1 Apr 2008 13:37:21 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id B76358FC2D for ; Tue, 1 Apr 2008 13:37:20 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id m31DbHp2059009 for ; Tue, 1 Apr 2008 16:37:17 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id m31DbHCX059008 for freebsd-java@freebsd.org; Tue, 1 Apr 2008 16:37:17 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-java@freebsd.org Date: Tue, 1 Apr 2008 16:37:16 +0300 User-Agent: KMail/1.9.7 References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> <5182068AEA70F5E0F2FC84AC@ganymede.hub.org> <20080331230435.GB11344@osiris.chen.org.nz> In-Reply-To: <20080331230435.GB11344@osiris.chen.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200804011637.16925.achill@matrix.gatewaynet.com> Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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, 01 Apr 2008 13:37:21 -0000 =CE=A3=CF=84=CE=B9=CF=82 Tuesday 01 April 2008 02:04:35 =CE=BF/=CE=B7 Jonat= han Chen =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > On Mon, Mar 31, 2008 at 06:49:05PM -0300, Marc G. Fournier wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > >=20 > >=20 > >=20 > > - --On Monday, March 31, 2008 11:03:02 +0200 Achilleas Mantzios=20 > > wrote: > >=20 > > > Azureus sucks even in windows. > >=20 > > Alternate recommendations? Someone mentioned deluge to me ... is there= =20 > > something better yet? >=20 > There's ktorrent for KDE; but if you're using Gnome, I would go with > deluge. It's pretty lightweight compared to Azureus. One can use Gnome and run ktorrent with no problem at all, ofcourse that wo= uld cause=20 installation of qt, kdelibs, kdehier. If that is an issue then someone coul= d try an alternative torrent client as people here have suggested. >=20 > Cheers. =2D-=20 Achilleas Mantzios From owner-freebsd-java@FreeBSD.ORG Tue Apr 1 14:44:47 2008 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 4C50B106566C for ; Tue, 1 Apr 2008 14:44:47 +0000 (UTC) (envelope-from "cyb."@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id AE8E68FC1A for ; Tue, 1 Apr 2008 14:44:46 +0000 (UTC) (envelope-from "cyb."@gmx.net) Received: (qmail invoked by alias); 01 Apr 2008 14:18:05 -0000 Received: from pD952E51F.dip0.t-ipconnect.de (EHLO core2duo.local) [217.82.229.31] by mail.gmx.net (mp011) with SMTP; 01 Apr 2008 16:18:05 +0200 X-Authenticated: #4870692 X-Provags-ID: V01U2FsdGVkX198NW5lYJx8MRz7Ju50g7WEo6HmiKNtQvuEjuikxW 8kDBJFFy8md8rv Date: Tue, 1 Apr 2008 16:18:00 +0200 From: Andreas Rudisch To: "Marc G. Fournier" Message-Id: <20080401161800.1c4ee021.cyb.@gmx.net> In-Reply-To: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Tue__1_Apr_2008_16_18_00_+0200_=JvDiH.RB9yWFkL5" X-Y-GMX-Trusted: 0 Cc: freebsd-java@freebsd.org Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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, 01 Apr 2008 14:44:47 -0000 --Signature=_Tue__1_Apr_2008_16_18_00_+0200_=JvDiH.RB9yWFkL5 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 30 Mar 2008 21:59:08 -0300 "Marc G. Fournier" wrote: > Is anyone running Azureus on 7-STABLE and getting decent performance from= it? >=20 > I just upgraded to 7-STABLE, installed /usr/ports/java/jdk15 (instead of= =20 > diablo) so that it uses libthr (checked with ldd), and now I'm barely abl= e to=20 > get one downloaded, let alone multiple, and almost nothing uploaded ... >=20 > I have nothing in my /etc/libmap.conf file ... I had the problem too when testing FreeBSD 7.0-RC2. Azureus would start but data transfer was very slow, if there was a connection happing to other peers at all. On FreeBSD 6.1/2/3 Azureus shows the same behaviour (at least on my PC) when _not_ using /etc/libmap.conf to map libthread to libc_r. Work-arounds like using other clients are one thing, but I would like to see a fix for this on FreeBSD 7. Is there anything that can be done to help identify / solve the problem? Andreas -- GnuPG key : 0x2A573565 | http://www.gnupg.org/howtos/de/ Fingerprint: 925D 2089 0BF9 8DE5 9166 33BB F0FD CD37 2A57 3565 --Signature=_Tue__1_Apr_2008_16_18_00_+0200_=JvDiH.RB9yWFkL5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkfyRBsACgkQ8P3NNypXNWX23QCgsOd3nOCa3GF7/peHHR6mX9Ak jrcAn1Eya9zCFpLrpO/Ypf1HGVFor2Qk =bryA -----END PGP SIGNATURE----- --Signature=_Tue__1_Apr_2008_16_18_00_+0200_=JvDiH.RB9yWFkL5-- From owner-freebsd-java@FreeBSD.ORG Tue Apr 1 14:54:38 2008 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 40BFD1065673 for ; Tue, 1 Apr 2008 14:54:38 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1BE3A8FC2D for ; Tue, 1 Apr 2008 14:54:37 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from localhost (localhost.morons.org [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 8A484170DA; Tue, 1 Apr 2008 07:54:37 -0700 (PDT) X-DomainKeys: Sendmail DomainKeys Filter v0.6.0 turing.morons.org 8A484170DA DomainKey-Signature: a=rsa-sha1; s=selector1; d=spatula.net; c=nofws; q=dns; h=date:from:to:cc:subject:in-reply-to:message-id:references; b=GCx/0/e4yddzv+kyAQGpWDK8ESIKtVI5K7qBugn3go14adi4E+rZfHqb+fhyfuPaP J+XPQS2dGZTm0nN3AeB1tkQIPe1w2oDuDq/S+tbpCWjSUkSPiroHmzdwXKxjcgdR8Q4 4xEJet7YJ32HWxwC7htW4v+NtuLUo8iSpRuiWeA= X-DKIM: Sendmail DKIM Filter v2.4.2 turing.morons.org 8A484170DA DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=spatula.net; s=selector1; t=1207061677; bh=LS4GYXCPNn1sJ2xz+R/RmYauKvU=; h=X-Virus-Scanned:Date:From:X-X-Sender:To:cc:Subject:In-Reply-To: Message-ID:References:MIME-Version:Content-Type; b=Hn49P9BDGJdARTS 7dV9jGsKEmUNjymcjJfGwVF3APAxyg4i/43KtLjg7TnLZRcBJqbni4RuEnOzGj4wZwC 1h9Dy/q2KGYVYJEmaW75128FnKpzjJPxkclD+fHIODczNTBQNW6odhFQlPOga+5+nRU vZQKGT3rmPhnzbU6ICWUtw= X-Virus-Scanned: amavisd-new at morons.org Received: from turing.morons.org ([127.0.0.1]) by localhost (turing.morons.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uOdxuJgFN6d8; Tue, 1 Apr 2008 07:54:36 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by turing.morons.org (Postfix) with ESMTP; Tue, 1 Apr 2008 07:54:36 -0700 (PDT) Date: Tue, 1 Apr 2008 07:54:36 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: Andreas Rudisch <"cyb."@gmx.net> In-Reply-To: <20080401161800.1c4ee021.cyb.@gmx.net> Message-ID: <20080401074956.H2617@turing> References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> <20080401161800.1c4ee021.cyb.@gmx.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: "Marc G. Fournier" , freebsd-java@freebsd.org Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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, 01 Apr 2008 14:54:38 -0000 On Tue, 1 Apr 2008, Andreas Rudisch wrote: > I had the problem too when testing FreeBSD 7.0-RC2. Azureus would start > but data transfer was very slow, if there was a connection happing to > other peers at all. Some who have experienced similar problems have reported that building a kernel without IPv6 support alleviates it, though for some reason -Djava.net.preferIPv4Stack=true on the JVM command line does not. You might give those a try and see if it makes any difference. Nick -- From owner-freebsd-java@FreeBSD.ORG Wed Apr 2 00:05:11 2008 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 098B7106564A for ; Wed, 2 Apr 2008 00:05:11 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id BD9B98FC1F for ; Wed, 2 Apr 2008 00:05:10 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id DB9051687514; Tue, 1 Apr 2008 21:05:10 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48991-03; Tue, 1 Apr 2008 21:05:04 -0300 (ADT) Received: from fserv.hub.org (blk-7-245-234.eastlink.ca [71.7.245.234]) by hub.org (Postfix) with ESMTP id 08F6B168751E; Tue, 1 Apr 2008 21:05:05 -0300 (ADT) Received: from [192.168.1.2] (unknown [192.168.1.2]) by fserv.hub.org (Postfix) with ESMTP id 8FAA86087A; Tue, 1 Apr 2008 21:05:08 -0300 (ADT) Date: Tue, 01 Apr 2008 21:03:08 -0300 From: "Marc G. Fournier" To: Nick Johnson , Andreas Rudisch Message-ID: <60A932E3CD65576A38807441@ganymede.hub.org> In-Reply-To: <20080401074956.H2617@turing> References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> <20080401161800.1c4ee021.cyb.@gmx.net> <20080401074956.H2617@turing> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-java@freebsd.org Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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: Wed, 02 Apr 2008 00:05:11 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On Tuesday, April 01, 2008 07:54:36 -0700 Nick Johnson wrote: > On Tue, 1 Apr 2008, Andreas Rudisch wrote: > >> I had the problem too when testing FreeBSD 7.0-RC2. Azureus would start >> but data transfer was very slow, if there was a connection happing to >> other peers at all. > > Some who have experienced similar problems have reported that building a > kernel without IPv6 support alleviates it, though for some reason > -Djava.net.preferIPv4Stack=true on the JVM command line does not. You > might give those a try and see if it makes any difference. > grep -i ipv kernel > uname -a FreeBSD fserv.hub.org 7.0-STABLE FreeBSD 7.0-STABLE #10: Thu Mar 20 23:34:34 ADT 2008 root@fserv.hub.org:/usr/local/obj/usr/src/sys/kernel i386 On a good note (bad for java, good for me), without making any other changes, I installed deluge and it works right out of the box, but it uses python instead of java :( - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFH8s084QvfyHIvDvMRAgvdAKC4AksHuGxK41ibRk5ijQuavXvzpQCgmtLA Yk6U5SYqIe2VjaSUiZpzNKA= =9waf -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Wed Apr 2 00:06:46 2008 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 3BC711065670 for ; Wed, 2 Apr 2008 00:06:46 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id F237A8FC18 for ; Wed, 2 Apr 2008 00:06:45 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id 6EF3D1687519; Tue, 1 Apr 2008 21:06:46 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48374-06; Tue, 1 Apr 2008 21:06:42 -0300 (ADT) Received: from fserv.hub.org (blk-7-245-234.eastlink.ca [71.7.245.234]) by hub.org (Postfix) with ESMTP id F0B801687514; Tue, 1 Apr 2008 21:06:42 -0300 (ADT) Received: from [192.168.1.2] (unknown [192.168.1.2]) by fserv.hub.org (Postfix) with ESMTP id BDB016057A; Tue, 1 Apr 2008 21:06:46 -0300 (ADT) Date: Tue, 01 Apr 2008 21:04:46 -0300 From: "Marc G. Fournier" To: Andreas Rudisch Message-ID: In-Reply-To: <20080401161800.1c4ee021.cyb.@gmx.net> References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> <20080401161800.1c4ee021.cyb.@gmx.net> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-java@freebsd.org Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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: Wed, 02 Apr 2008 00:06:46 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On Tuesday, April 01, 2008 16:18:00 +0200 Andreas Rudisch wrote: > I had the problem too when testing FreeBSD 7.0-RC2. Azureus would start > but data transfer was very slow, if there was a connection happing to > other peers at all. > > On FreeBSD 6.1/2/3 Azureus shows the same behaviour (at least on my PC) > when _not_ using /etc/libmap.conf to map libthread to libc_r. > > Work-arounds like using other clients are one thing, but I would like > to see a fix for this on FreeBSD 7. Is there anything that can be done > to help identify / solve the problem? I have to agree here ... with the report that 7.x is 15% hten current Linux kernel on SMP systems, it would definitely set us back in the good PR dept if we have a problem with our java :( - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFH8s2e4QvfyHIvDvMRAoDdAKC2weLngiO9DNXbocJUjtGVTk7tDgCguWja dw/yeKnNRZ1Pnml636G2VPY= =VpIU -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Wed Apr 2 04:01:41 2008 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 2D17B106564A for ; Wed, 2 Apr 2008 04:01:41 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id A52518FC13 for ; Wed, 2 Apr 2008 04:01:40 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id EF5B01687514; Wed, 2 Apr 2008 01:01:37 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41793-09; Wed, 2 Apr 2008 01:01:37 -0300 (ADT) Received: from fserv.hub.org (blk-7-245-234.eastlink.ca [71.7.245.234]) by hub.org (Postfix) with ESMTP id 35E3C16874CD; Wed, 2 Apr 2008 01:01:37 -0300 (ADT) Received: from [192.168.1.2] (unknown [192.168.1.2]) by fserv.hub.org (Postfix) with ESMTP id 2587560053; Wed, 2 Apr 2008 01:01:35 -0300 (ADT) Date: Wed, 02 Apr 2008 00:59:39 -0300 From: "Marc G. Fournier" To: Jonathan Chen Message-ID: <502EB3D223ABA31ED14DA2A5@ganymede.hub.org> In-Reply-To: <20080331230435.GB11344@osiris.chen.org.nz> References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> <200803311203.03216.achill@matrix.gatewaynet.com> <5182068AEA70F5E0F2FC84AC@ganymede.hub.org> <20080331230435.GB11344@osiris.chen.org.nz> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-java@freebsd.org Subject: Java Problem (Was: Re: Azureus + 7-STABLE == Slow download + No Upload) 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: Wed, 02 Apr 2008 04:01:41 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On Tuesday, April 01, 2008 12:04:35 +1300 Jonathan Chen wrote: > There's ktorrent for KDE; but if you're using Gnome, I would go with > deluge. It's pretty lightweight compared to Azureus. I've installed deluge ... big thing for me was the built in RSS feed ... and performance is like night-n-day from Azureus ... ... *but*, that still doesn't fix the underlying problem, and that is that Java appears to have a problem that is very visible with Azureus, and based on past experiences with 6.x, this is an ongoing issue ... In 6.x, it was using pthread vs thr libraries ... a simple fix to /etc/libmap.conf cleared up the problem ... but, with 7.x, we are already using libthr.*, so what broke this time? Is it with 7.x threading? Or Java? Is this something specific to Azureus, or only something that Azureus makes very visible? - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFH8wSr4QvfyHIvDvMRAqbgAKDn2fYTnaDZBPjbuaBQp2H2Je+k/gCZAW9Z 8aOS4p4jtettLysfABLYvdY= =DkJ7 -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Wed Apr 2 06:45:46 2008 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 23F6B1065671 for ; Wed, 2 Apr 2008 06:45:46 +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 BB8268FC28 for ; Wed, 2 Apr 2008 06:45:45 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m326jiel031283; Tue, 1 Apr 2008 23:45:44 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m326jhuG031282; Tue, 1 Apr 2008 23:45:43 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 1 Apr 2008 23:45:43 -0700 From: Greg Lewis To: "Marc G. Fournier" Message-ID: <20080402064543.GA30534@misty.eyesbeyond.com> References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> <20080401161800.1c4ee021.cyb.@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: Andreas Rudisch <"cyb."@gmx.net>, freebsd-java@freebsd.org Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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: Wed, 02 Apr 2008 06:45:46 -0000 On Tue, Apr 01, 2008 at 09:04:46PM -0300, Marc G. Fournier wrote: > - --On Tuesday, April 01, 2008 16:18:00 +0200 Andreas Rudisch > wrote: > > > I had the problem too when testing FreeBSD 7.0-RC2. Azureus would start > > but data transfer was very slow, if there was a connection happing to > > other peers at all. > > > > On FreeBSD 6.1/2/3 Azureus shows the same behaviour (at least on my PC) > > when _not_ using /etc/libmap.conf to map libthread to libc_r. > > > > Work-arounds like using other clients are one thing, but I would like > > to see a fix for this on FreeBSD 7. Is there anything that can be done > > to help identify / solve the problem? > > I have to agree here ... with the report that 7.x is 15% hten current Linux > kernel on SMP systems, it would definitely set us back in the good PR dept if > we have a problem with our java :( The reason that we've persisted with doing patchsets for Java is so that everybody can get at the source and investigate/fix things which are important to them. I've persistently argued against switching solely to binary releases, when that has come up, for just this reason. So, if you can't find someone on the porting team who is both interested and has time to investigate it right now then there are a number of things you can do yourselves to start the investigation. Here are some possibilities: . Look through the list archives into what people have found out about problems with Azureus before. This isn't the first time this has come up. . Look at what the kernel threads are doing periodically with ps(1). . Dump the Java threads periodically. . Run Azureus under ktrace and look at what syscalls are being made. There is going to be a lot of output from ktrace I expect, so its going to take some time to sort through. . Run this on 6.x and 7.x and try the different threading libraries. . Run it on Linux and compare what it does if you're interested. . Run it under different JDKs to see if that makes any difference. None of this will even require getting your hands dirty with the code, it will just take some time commitment to do it and analyse the results. If you wanted to go further you could start trying to mess around with gdb and/or trace statements in the code. -- 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 Wed Apr 2 16:24:03 2008 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 4A0141065674 for ; Wed, 2 Apr 2008 16:24:03 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id CAC5A8FC2C for ; Wed, 2 Apr 2008 16:24:02 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.184]) by hub.org (Postfix) with ESMTP id 175A41687519; Wed, 2 Apr 2008 13:24:02 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 46198-05; Wed, 2 Apr 2008 13:23:59 -0300 (ADT) Received: from fserv.hub.org (blk-7-245-234.eastlink.ca [71.7.245.234]) by hub.org (Postfix) with ESMTP id AFFD31687514; Wed, 2 Apr 2008 13:24:00 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by fserv.hub.org (Postfix) with ESMTP id 7852A60169; Wed, 2 Apr 2008 13:24:00 -0300 (ADT) Date: Wed, 2 Apr 2008 13:24:00 -0300 (ADT) From: "Marc G. Fournier" To: Greg Lewis In-Reply-To: <20080402064543.GA30534@misty.eyesbeyond.com> Message-ID: <20080402131022.P87973@fserv.hub.org> References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> <20080401161800.1c4ee021.cyb.@gmx.net> <20080402064543.GA30534@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Andreas Rudisch <"cyb."@gmx.net>, freebsd-java@freebsd.org Subject: Re: Azureus + 7-STABLE == Slow download + No Upload 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: Wed, 02 Apr 2008 16:24:03 -0000 > The reason that we've persisted with doing patchsets for Java is so that > everybody can get at the source and investigate/fix things which are > important to them. I've persistently argued against switching solely to > binary releases, when that has come up, for just this reason. First, a note ... I think the Java group is doing a fantastic job, considering all of the hurdle that you guys had to jump through at the start of this with NDA (I believe?) and such ... please do not take *any* of what I have (or will) say as anything but an attempt to further improve, as they aren't meant as anything but ... > So, if you can't find someone on the porting team who is both interested > and has time to investigate it right now then there are a number of things > you can do yourrselves to start the investigation. In this case, I'm curious as to why nobody is taking this as an opportunity ... Azureus is a huge piece of software, that tends to make extensive use of threading (from what I can tell), and since at least 6.x, has had problem reports when trying to do 'two things at once' ... if this is a coding bug with Azureus itself, fine, but if this is a bug with FreeBSD (ie. our threading + java) that Azureus highlights to the extreme, then if we can get Azureus fixed, that would trickle down to other less 'intense' java applications, and, possible even non-java ones ... *But* ... after installing deluge (python), which I'm getting massive transfer rates (such that I'd never seen with Azureus even at its best) even with 20+ torrents on the go, I don't see it as being a FreeBSD threading issue, except for how that interacts with Java+Azureus ... Now, it could be like with Wine, where Azureus was programmed with 'linux in mind', so that someone is missing / broken in FreeBSD/java in relation ... but even knowing *that* would at least make it easier for ppl posting about such issues ... > . Look through the list archives into what people have found out about > problems with Azureus before. This isn't the first time this has come > up. I've done that, and you are right, it isn't the firs time ... the bulk of the reports have revolved around 6.x, where you need to add an entry to /etc/libmap.conf to map pthread -> thr ... with that, Azureus on 6.x works fine, but with 7.x, thr is the default library, and I've checked jdk15 using ldd to make sure that that is what is being used ... The only other issue I've found relates to IPv6, but I don't have that built into my kernel, and, just in case, I did add the flag that was suggested to force IPv4 ... The other email's that I've seen on the subject generally went along the lines of "I gave up on Azureus+Java and moved to something else to fix the problem" ... > . Look at what the kernel threads are doing periodically with ps(1). What should one be looking at here? I have no problems with doing the 'leg work' on this, just need to know what I need to be looking for ... > . Dump the Java threads periodically. Huh? > . Run Azureus under ktrace and look at what syscalls are being made. > There is going to be a lot of output from ktrace I expect, so its > going to take some time to sort through. I have the disk space, but insufficicent knowledge to know what I'm looking for from the output ... > . Run this on 6.x and 7.x and try the different threading libraries. 6.x runs fine with the pthread->thr map in /etc/libmap.conf ... I've tried it on 7.x with both diablo (uses pthreads, I believe) and jdk15 (with thr) .. same results ... > . Run it on Linux and compare what it does if you're interested. Not an option ... I don't have a Linux box to run it on ... > . Run it under different JDKs to see if that makes any difference. Tried both diablo and jdk15 ... haven't tried the linux jdk though, will look at installing that tonight ... From owner-freebsd-java@FreeBSD.ORG Thu Apr 3 06:51:00 2008 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 B0D65106578C for ; Thu, 3 Apr 2008 06:51:00 +0000 (UTC) (envelope-from errors@yuan.sc) Received: from st1.yuan.sc (s154162.ppp.asahi-net.or.jp [220.157.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id A37AC8FF30 for ; Thu, 3 Apr 2008 06:34:25 +0000 (UTC) (envelope-from errors@yuan.sc) Received: by st1.yuan.sc (System YUAN Exclusive Use., from userid 0) id 50318A45B8B; Thu, 3 Apr 2008 15:34:06 +0900 (JST) To: java@freebsd.org From: =?iso-2022-jp?B?GyRCIVobKEJJTkNMVUIbJEIkTiVhJWslXiUsJCpKdT5wSnMhWxsoQg==?= MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp"; Organization: msMail/qidmelmaga341s345 for java@freebsd.org sxg1865 X-Priority: 3 X-Mail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Message-Id: <20080403063410.50318A45B8B@st1.yuan.sc> Date: Thu, 3 Apr 2008 15:34:06 +0900 (JST) Cc: Subject: =?iso-2022-jp?b?GyRCP001JDVePmU+OiROPnBKcyRyTyM2Yj5wSnMbKEIg?= X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: marioda4@ybb.ne.jp List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 06:51:05 -0000 $B"!(B****************************************************************$B!~(B $B!!!!!!!!!!!!!!!!!!!!!!(B $B!!!!!!!!!!!!!!!!!!!Z(BINCLUB$B$N%a%k%^%,$*Ju>pJs![(B $B!!!!!!!!!!!!!!!!"!5.J}$N%S%8%M%9%Q!<%H%J!<$G$9"!(B $B!~(B****************************************************************$B"!(B java@freebsd.org$BMM(B $B!z(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B(,(BTOP$B(,(B+$B!z(B $B!!!!!!!!!!!!!!"#%$%s%U%)%9%?%$%k:#=5$NGd$l6Z"*#10L"#(B $B!!!!!!!!!!!!!!!!!!!!B(6bL[<(O?!Z:G8e$NO#6b![(B $B!!!!!!!!!!!!!!!!!!B(6bFqL1!&I{6HGT;D&:`(B $B![(B http://marioda.net/info-style03 $B!z!\(BTOP$B(,(B+$B(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B(,(B+$B!y(,(B+$B!z(B INCLUB$B$G$O!"$_$J$5$^$NEj9F$*BT$A$7$F$$$^$9(B $B!!!!!!"-!!"-!!"-!!"-(B $B!{(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!!{(B $B!!3'MM$NEj9F$r$*BT$A$7$F$$$^$9(B $B!vL5NAEj9F$O$3$A$i$+$i"M!!(Bhttp://www.formpro.jp/form.php?fid=21660 $B!!$*5$7Z$K$I$&$>!!(B $B!v8z2LH472$NFH@j9-9p$OM-NA$K$J$j$^$9$,!"BgJQ$*0B$/@_Dj$7$F$$$^$9$N$G(B $B!!@'Hs$4MxMQ$7$F$/$@$5$$!#(BTOP$B9-9p$bMQ0U$7$F$$$^$9!#(B $B!!M-NA9-9p?=$79~$_!!!!"M!!(Bhttp://marioda.net/melmaga/yuryoumm $B!{(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!!{(B $B!vEPO?2r=|$O$3$A$i$+$i$G$-$^$9!!"-!!"-!!"-(B $B!!!v9XFIEPO?!u2r=|(B http://marioda.net/melmaga/incubmm $B!{(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!!{(B INCLUB$B$N0f>e$G$9(B $BFCA*9-9p(B $B!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z(B $B!!!!"#"!4JC1!&B(6b!&9b<}F~!&$7$+$b%(%s%I%l%9!*"!"#(B $B!!!!!!!!!!!!!!!!!!!!(Bhttp://ocs5.com/?ID=esp146&PG=esp $B!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z"^!y"^!z(B (*^m^*)$B"v!c!c!cD69b3[Js=7$NB(6b%S%8%M%9!*!*!d!d!d(B(*^m^*)$B"v(B $B!@!J(B*^$B"&(B^*$B!K!?!c!c!c$7$+$b4r$7$$=55k@)$G$9!*!d!d!d!@!J(B*^$B"&(B^*$B!K!?(B $B!&!&!&$b$N$9$4$$$NH?6A$K!";d$b4r$7$$HaLD$r>e$2$F$^$9!A$C"v!&!&!&(B $B!!"-"-(B $B$3$N%S%8%M%9$N?M5$$NM}M3$O$:$P$j$3$l(B!$B!*(B $B"-"-(B $B!!!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!!!!(B(*^^)v$B!!!z%j%T!<%H$,$$$i$J$$!*(B $B!!!!(B(*^^)v$B!!!z=i4|HqMQ$ODc3[!*(B1$B#1#2#0#0#01_!A$G#O#K!*(B $B!!!!(B(*^^)v$B!!!zKh=5LZMK$,5kNAF|!*!*(B $B!!!!(B(*^^)v$B!!!zJs=7$O%(%s%I%l%9$KF~$jB3$1$k%7%9%F%`$r:NMQ!*!*(B $B!!!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!|(B $B!{(B $B!!!!2?$h$j$b>/$J$$;q6b$G;O$a$i$l$k$N$G0B?4$G$9$M"v!0!0(B $B!!!!!!!Z!Z(B $B%S%8%M%9$G<:GT$7$??M!"B?3[$Nh$j49$(AH$_$bB3=P$G$9"v"v(B $B!!$O$C$-$j8@$C$F!Z!Z(B $B#5!A#7%1%?(B $B![![$N=55k$O8=$`J}$O$3$A$i$N#H#P$+$i"'"&(B $B!!!!!!(B http://ocs5.com/?ID=esp146&PG=esp $B!!&E(B========$B%X(B(^$B"&!,(B)$B%N(B $B%$%=%2!<(B!!$B&E(B========$B%X(B(^$B"&!,(B)$B%N(B $B!|!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!|(B $B""(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,""(B $B!!!!!!!!!!!!!!!!!!!|!!!y!z!y(BMake Your Biz$B!y!z!y!!!|(B $B!!!!!!!!!!(B>> http://www.affilitool.com/file/23071.html << $B!!!!!!!!!!!!!!!!!!>R2p#I#D!'!Z(Binclub$B![$rK:$l$J$$$G$M(B $B!!!!!!!!!!:#!"EPO?$9$k$H<+F09=C[$5$l$F(B $B!!!!!!!!!!!!!!!!!!!!!!!!!!!!$"$J$?$O6C$-$NBN46$,$G$-$^$9(B $B!!!!!!A4;22Ce$2$^$9!*!*(B $B!!!!!!!!!!!!!!!!!!!!!y!z!y(BMake Your Biz$B!y!z!y!!(B $B!!!!!!!!!!(B>> http://www.affilitool.com/file/23071.html << $B!!!!!!!!!!!!!!!!!!>R2p#I#D!'!Z(Binclub$B![$r$*K:$l$J$/(B $B""(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,""(B $B"#46>p$GJ*;v$rH=CG$7$J$$"#(B $B%S%8%M%9$O3Z$7$$$P$+$j$G$O$J$$!#(B $B$3$l$OEv$?$jA0$NK!B'$@$H;W$&!#(B $B%S%8%M%9$N4pK\$O!"<+J,$,3Z$7$a$kJ*$r(B $B%S%8%M%9$K$7$J$$8B$j!"@dBP$K?M$K$OEA$o$i$J$$!#(B $B<+J,$,>pG.$r;}$F$J$$J*$r%S%8%M%9$K$7$J$$8B$j(B $B8+9~$_5R$,9b$$$*6b$rJ'$&;v$J$IE~Dl$"$j$($J$$!#(B $B$7$+$7!"3Z$7$$$@$1!"pG.$r$$$/$i79$1$i$l$k$+$i$H8@$C$F>epG.$r79$1$i$l$k%S%8%M%9$NMn$H$77j$H$O!"(B $B$D$$$D$$46>p$@$1$G;E;v$r$7$F$7$^$&$H$$$&;v$G$9!#(B $B%S%8%M%9$GMx1W$rDI5a$9$k;~$O!"I,$:A4$F$r?t;z$K(B $BMn$H$7$3$`;v$@!#(B $B%S%8%M%9$N4pK\$O!"IT3Np$O>o$K%_%:%b%N$G$"$k!#(B $B%S%8%M%9$r$9$k>e$G!"$3$N?t;z$KBP$9$k9M$($O(B $B87$7$/;}$C$F$*$3$&!#(B $BJ*;v$r46>p$GH=CG$;$:$KA4$F?t;z$KMn$H$7$3$`!#(B $B$3$N71N}$rBU$i$J$$$h$&$K$7$^$7$g$&!#(B $B!Z:#=5$NCmL\>&IJ![(B $BB(6bFqL1!&!&!&!&(B $BB(6b7O>&:`$rGc$C$F$b2T$2$J$$$"$J$?$K(B $B!HK\J*!I$NB(6b>pJs$r(B $BAw$j$^$9!#(B $B!!"-(B $B!!(Bhttp://www.affilitool.com/file/23089.html $B!Z?M5$5^>e>:$NO#6b>pJs![(B $B?M5$5^>e>:$N>pJs$rO#6b>pJs$r>R2p$7$^$9(B $B@'Hs!"%A%'%C%/$7$F2<$5$$$M!*(B $BB(6bFqL1!&I{6HGT;DpJs![$NM-NA2q0w$r(B $BJg=8$7$F$$$^$9"M8=:_(B15,000$BItG[?.Cf(B $B2q0wEPO?$9$k$H#1G/4V$KFH@j9-9p$r#6#02sG[?.$G$-$^$9(B $B#12s$"$?$j#5#01_$H$?$$$X$s$*F@$G$9$N$G!"@'Hs$H$b(B $B$4MxMQ$7$F$/$@$5$$(B $B$*?=$79~$_$O#H#P$N%a%K%e!<$+$i$I$&$>(B $B!!#H#P"M!!(Bhttp://marioda.net/melmaga/incubmm $B""(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,""(B $BL5NAEj9F#1(B $B"!!~(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!~"!(B $B!!(B $B!!"#!z5pBg;qK\2qeN&=`Hw3+;O$G$9!*(B $B!!!!$3$N%S%8%M%9$r8+F($7$?$i!"$"$J$?$O0l@88e2y$r$9$k$3$H$K$J$j$^$9!#(B $B!!!!!!!!!!!!$d$C$HC5$7$F$$$?%S%8%M%9$,8+$D$+$j$^$7$?!#(B $B!!!!!!!!!!(Bhttp://tfdream.sakura.ne.jp/a/?ID=ikki0004&PG=ada $B!|(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!|(B $BL5NAEj9F#2(B $B"!!~(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!~"!(B $B!!(B $B!!!!!!!!!!"#!z"#!Z(BFCO$BA4<+F0F~6b%7%9%F%`%-%C%H!["#!z"#(B $B"!!~(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!~"!(B $B$3$N%S%8%M%9$O%"%a%j%+$N%$%s%?!<%M%C%H%S%8%M%9%3%s%5%k%?%s%H2qe$K0n$l$F$$$k2x$7$$%S%8%M%9(B($B%S%8%M%9$H(B $B$O8F$Y$J$$$G$9$M!#(B)$B$J$s$+$G$O$"$j$^$;$s!#(B $B$b$7!"??7u$K%$%s%?!<%M%C%H$G<}F~$rF@$k$3$H$r$48!F$Cf$G$7$?$i!"$<$R(B $B$3$N%S%8%M%9$r$48!F$$/$@$5$$!#@dBP$KB;$O$5$;$^$;$s!#(B $B!!!!!!!!!!!!!!!!(Bhttp://edc.magic-biz.net/?ref=1266 $B!|(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!|(B $BL5NAEj9F#3(B $B"!!~(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!~"!(B $B!!(B $B!!!!!!!!!!!!"#!z$H$C$F$b4JC1$J%@%$%(%C%H$G!A$9"v"#(B $B"!!~(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!~"!(B $B!!!!!!!!!!!!!!!!!!$$$m$s$J%@%$%(%C%H$G<:GT$7$?;d$,(B $B!!!!!!!!!!!!!!!!(B $B$:$C$H!]#7%-%m$r%-!<%W$7$F$$$^$9"v(B $B!!!!!!!!!!!!!!!!!!(B http://htk.sakura.ne.jp/diet/ $B!|(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!|(B $BL5NAEj9F#4(B $B"!!~(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!~"!(B $B!!(B $B!!!!!!!!!!"#!zCM>e$2%i%C%7%e!*!*$J$s$H$+$7$J$-$c!*!*"#(B $B"!!~(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!~"!(B $BIT67IT67$C$F8@$C$F$k$1$I"#"""#(B $BIT67$J$s$F4X78$J$$$h(B $BG=NO!!;q3J!!3XNr!!4X78$J$7$C!*!*!!%(%j!<%H%3!<%9$N$"$$$D$r!!(B $B%.%c%U%s%C$H8@$o$7$A$c$$$^$7$?$!!A$C!*!*(B $B$@$C$F!!;d!&!&!&!!2T$.$9$.$#!A$C!*!*!4(B($B!f"`!e(B)$B!7(B $B"#"""#!!$=$NHkL)$O!&!&(Bhttp://preget.sakura.ne.jp/ruirui/$B!!"#"""#(B $B!|(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!|(B $B:G8e$^$G$*FI$_$$$?$@$$$F$"$j$,$H$&$4$6$$$^$9(Bm(_ _)m $B$=$l$G$O$3$N$X$s$G<:Ni$7$^$9(B $B!|!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!|(B $B"!%(%/%9%H%j!<%`(B http://marioda.net/extriem $B"!%^%8%'%9%F%#(B http://marioda.net/majesuty $B!z$*Ju>pJs$G$9(B http://marioda.blog105.fc2.com/ $B!z(BINCLUB$B$N#H#P(B http://marioda.net/top.html $B!z$b$7$b(BShopping https://www.moshimo.com/top/106083 $B!z>pJs%S%8%M%9(B http://blotop.jp/mario46/ $B!|!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!|(B $BEv%a%k%^%,$O(B $B!zL5NA%l%]!<%H$4MxMQ$5$l$?J}(B $B!zL5NA0l3g%5%$%H$K$4Ej9F$5$l$?J}(B $B!|>e5-%5%$%H$KEj9F!&EPO?$5$l$?J}$K$bG[?.$5$;$FD:$$$F$*$j$^$9(B $B!!EPO?2r=|$O2<5-#U#R#L$+$i!"$4<+?H$G$*4j$$$7$^$9(B $B!{!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!{(B $B3'MM$NEj9F$r$*BT$A$7$F$$$^$9!#$*5$7Z$K$I$&$>(B $B!vL5NAEj9F$O$3$A$i!!(Bhttp://www.formpro.jp/form.php?fid=21660 $B!v8z2LH472$NFH@j9-9p$OM-NA$K$J$j$^$9$,!"BgJQ$*0B$/@_Dj$7$F$$$^$9(B $B!!$N$G@'Hs$4MxMQ$7$F$/$@$5$$!#(BTOP$B9-9p$bMQ0U$7$F$$$^$9(B $B!vM-NA9-9p?=$79~$_!!(B http://marioda.net/melmaga/yuryoumm $B!v9XFIEPO?!u2r=|(B http://marioda.net/melmaga/incubmm $B!v%P%C%/%J%s%P!<(B $B!!(B http://mag.yuan.sc/index.php?cat=melmagacontents&melmagaid=345 $B"!(B****************************************************************$B!~(B $B!!!!!!!!!!!!!!!!!!!!!!(B $B!!!!!!!!!!!!!!!!!!!Z(BINCLUB$B$N%a%k%^%,$*Ju>pJs![(B $B!!!!!!!!!!!!!!!!"!5.J}$N%S%8%M%9%Q!<%H%J!<$G$9"!(B $B!~(B****************************************************************$B"!(B $B$40U8+$O$3$A$i$X!!(BINCLUB$B;vL36I!!(B marioda4@ybb.ne.jp $B9XFI2r=|$O$3$A$i$r%/%j%C%/"-"-0lH/$G2r=|$5$l$^$9$+$iCm0U$7$F$/$@$5$$(B http://mag.yuan.sc/index.php?mode=del&writertable=melmaga341s345&email=java@freebsd.org From owner-freebsd-java@FreeBSD.ORG Thu Apr 3 14:37:31 2008 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 69C531065670 for ; Thu, 3 Apr 2008 14:37:31 +0000 (UTC) (envelope-from bounce+freebsd-java=freebsd.org@care.ringo.com) Received: from fallback1.tickle.com (nmail136.tickle.com [130.94.250.136]) by mx1.freebsd.org (Postfix) with ESMTP id 4BDFD8FC0A for ; Thu, 3 Apr 2008 14:37:31 +0000 (UTC) (envelope-from bounce+freebsd-java=freebsd.org@care.ringo.com) Received: from ringotouch2.ringo.com (130.94.250.147) by fallback1.tickle.com (PowerMTA(TM) v3.0r29) id hujlqm06a5ok for ; Thu, 3 Apr 2008 06:17:29 -0800 (envelope-from ) Received: from ringo17.tickle.com (www.ringo.com [130.94.250.39]) by ringotouch2.ringo.com (Postfix) with ESMTP id 4177838247 for ; Thu, 3 Apr 2008 07:17:29 -0700 (PDT) Message-ID: <1432707117.1207232249245.JavaMail.ringo@ringo17.tickle.com> From: Iuli Varzariu-Darie To: Mime-Version: 1.0 X-Original-Recip: freebsd-java@freebsd.org Accreditor: Habeas X-Habeas-Report: Please report use of this mark in spam to X-Originating-IP: 86.105.210.112 Date: Thu, 3 Apr 2008 07:17:29 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: New photos/videos 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, 03 Apr 2008 14:37:31 -0000 Check out my photos and videos: http://www.ringo.com/i.html?i=168190102x940850&homeEmail=freebsd-java%40freebsd.org&firstName=&lastName=&origin=invite Block invitations from Iuli: http://www.ringo.com/friends/invite/blockInvites.html?memberId=168190102&e=MTESMlEZMb4vmLMQidMzMlKro6ixN8ET&origin=invite Block all invitations: http://www.ringo.com/friends/invite/blockInvites.html?e=MTESMlEZMb4vmLMQidMzMlKro6ixN8ET&origin=invite Copyright 2007 Tickle, inc. All rights reserved. 222 Sutter St, 5th Floor, San Francisco, CA 94108 From owner-freebsd-java@FreeBSD.ORG Fri Apr 4 15:48:03 2008 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 EDC69106564A for ; Fri, 4 Apr 2008 15:48:03 +0000 (UTC) (envelope-from M.Rogers@cs.ucl.ac.uk) Received: from bells.cs.ucl.ac.uk (bells.cs.ucl.ac.uk [128.16.5.31]) by mx1.freebsd.org (Postfix) with SMTP id 465B58FC23 for ; Fri, 4 Apr 2008 15:48:03 +0000 (UTC) (envelope-from M.Rogers@cs.ucl.ac.uk) Received: from bells3.cs.ucl.ac.uk by bells.cs.ucl.ac.uk with local SMTP id ; Fri, 4 Apr 2008 16:37:03 +0100 Received: from prayer by bells3.cs.ucl.ac.uk with local (Exim 4.54) id 1JhnxE-000Azq-GO for freebsd-java@freebsd.org; Fri, 04 Apr 2008 16:35:48 +0100 From: Michael Rogers Sender: M.Rogers@cs.ucl.ac.uk To: freebsd-java@freebsd.org Date: 04 Apr 2008 16:35:47 +0100 X-Mailer: Prayer v1.0.16 X-Originating-IP: [128.40.196.96] Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Subject: mmap problem with diablo-1.5.0 on 6.1-RELEASE i386 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, 04 Apr 2008 15:48:04 -0000 Hi, I'm having problems running Java on FreeBSD 6.1-RELEASE i386. The JVM seems to be unable to allocate memory for the code cache using mmap. Here's what I see on the command line: ~ $ java -version Error occurred during initialization of VM Could not reserve enough space for code cache ~ $ uname -mrs FreeBSD 6.1-RELEASE i386 ~ $ ulimit -a core file size (blocks, -c) unlimited data seg size (kbytes, -d) 2929687 file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 11095 pipe size (512 bytes, -p) 1 stack size (kbytes, -s) 65536 cpu time (seconds, -t) unlimited max user processes (-u) 5547 virtual memory (kbytes, -v) unlimited ~ $ Here's the tail of the kdump output: 48178 java CALL mmap(0,0x2000000,0,0x1042,0xffffffff,0,0,0) 48178 java RET mmap -1 errno 12 Cannot allocate memory 48178 java CALL write(0x1,0xbfbfd2d0,0x2b) 48178 java GIO fd 1 wrote 43 bytes "Error occurred during initialization of VM " 48178 java RET write 43/0x2b 48178 java CALL write(0x1,0xbfbfd2d0,0x2d) 48178 java GIO fd 1 wrote 45 bytes "Could not reserve enough space for code cache" 48178 java RET write 45/0x2d 48178 java CALL write(0x1,0xbb2ce361,0x1) 48178 java GIO fd 1 wrote 1 byte " " 48178 java RET write 1 48178 java CALL unlink(0x8064500) 48178 java NAMI "/tmp/hsperfdata_mrogers/48178" 48178 java RET unlink 0 48178 java CALL exit(0x1) So it seems the mmap call is the problem, but I'm not sure why. I get the same results with the installed version of Java and a fresh download of diablo-1.5.0 from freebsdfoundation.org. I also have access to a FreeBSD 6.2-RELEASE amd64 box where diablo-1.5.0 works fine; here's the corresponding command line and kdump output for comparison: ~ $ java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01) Java HotSpot(TM) 64-Bit Server VM (build diablo-1.5.0_07-b01, mixed mode) ~ $ uname -mrs FreeBSD 6.2-RELEASE amd64 ~ $ ulimit -a core file size (blocks, -c) unlimited data seg size (kbytes, -d) 33554432 file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 11095 pipe size (512 bytes, -p) 1 stack size (kbytes, -s) 524288 cpu time (seconds, -t) unlimited max user processes (-u) 5547 virtual memory (kbytes, -v) unlimited ~ $ 31867 java CALL mmap(0,0x3000000,0,0x1042,0xffffffff,0,0) 31867 java RET mmap 78553088/0x804aea000 31867 java CALL mmap(0x804aea000,0x270000,0x7,0x1012,0xffffffff,0,0) 31867 java RET mmap 78553088/0x804aea000 ... etc Any thoughts on what could be causing this problem? Could it be something to do with ulimit? Unfortunately I don't have root on either of the boxes so I can't easily experiment with changing the limits. Thanks in advance, Michael From owner-freebsd-java@FreeBSD.ORG Fri Apr 4 20:33:41 2008 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 1F61A1065671 for ; Fri, 4 Apr 2008 20:33:41 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from mail1.intricatesoftware.com (cl-18.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:11::2]) by mx1.freebsd.org (Postfix) with ESMTP id BD3DA8FC1E for ; Fri, 4 Apr 2008 20:33:40 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from seraph.intricatesoftware.com (relay@localhost.intricatesoftware.com [IPv6:::1]) by mail1.intricatesoftware.com (8.14.1/8.13.4) with ESMTP id m34KXWYw019304; Fri, 4 Apr 2008 16:33:33 -0400 (EDT) Received: from seraph.intricatesoftware.com (truk@localhost.intricatesoftware.com [127.0.0.1]) by seraph.intricatesoftware.com (8.14.1/8.14.1) with ESMTP id m34KXV1U003481; Fri, 4 Apr 2008 16:33:32 -0400 (EDT) Received: (from truk@localhost) by seraph.intricatesoftware.com (8.14.1/8.14.1/Submit) id m34KXVnv000254; Fri, 4 Apr 2008 16:33:31 -0400 (EDT) X-Authentication-Warning: seraph.intricatesoftware.com: truk set sender to lists@intricatesoftware.com using -f From: Kurt Miller To: freebsd-java@freebsd.org Date: Fri, 4 Apr 2008 16:33:30 -0400 User-Agent: KMail/1.9.9 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804041633.30999.lists@intricatesoftware.com> X-SMTP-Vilter-Version: 1.3.6 X-SMTP-Vilter-Virus-Backend: clamd X-SMTP-Vilter-Status: clean X-SMTP-Vilter-clamd-Virus-Status: clean X-Spamd-Symbols: ALL_TRUSTED,BAYES_00 X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -4.4 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.9 X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean Cc: Michael Rogers Subject: Re: mmap problem with diablo-1.5.0 on 6.1-RELEASE i386 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kurt@intricatesoftware.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 20:33:41 -0000 Most of the memory the jdk uses is from mmap. Using a very high data seg size ulimit has the effect of reducing the amount of memory an application can mmap (at least on some FreeBSD versions). Try reducing your data seg size ulimit to 819200 kbytes. The port versions of the jdks do this automatically for you (e.g. cap data seg size to 800M). -Kurt On Friday 04 April 2008 11:35:47 am Michael Rogers wrote: > Hi, > > I'm having problems running Java on FreeBSD 6.1-RELEASE i386. The JVM seems > to be unable to allocate memory for the code cache using mmap. Here's what > I see on the command line: > > ~ $ java -version > Error occurred during initialization of VM > Could not reserve enough space for code cache > ~ $ uname -mrs > FreeBSD 6.1-RELEASE i386 > ~ $ ulimit -a > core file size (blocks, -c) unlimited > data seg size (kbytes, -d) 2929687 > file size (blocks, -f) unlimited > max locked memory (kbytes, -l) unlimited > max memory size (kbytes, -m) unlimited > open files (-n) 11095 > pipe size (512 bytes, -p) 1 > stack size (kbytes, -s) 65536 > cpu time (seconds, -t) unlimited > max user processes (-u) 5547 > virtual memory (kbytes, -v) unlimited > ~ $ > > Here's the tail of the kdump output: > > 48178 java CALL mmap(0,0x2000000,0,0x1042,0xffffffff,0,0,0) > 48178 java RET mmap -1 errno 12 Cannot allocate memory > 48178 java CALL write(0x1,0xbfbfd2d0,0x2b) > 48178 java GIO fd 1 wrote 43 bytes > "Error occurred during initialization of VM > " > 48178 java RET write 43/0x2b > 48178 java CALL write(0x1,0xbfbfd2d0,0x2d) > 48178 java GIO fd 1 wrote 45 bytes > "Could not reserve enough space for code cache" > 48178 java RET write 45/0x2d > 48178 java CALL write(0x1,0xbb2ce361,0x1) > 48178 java GIO fd 1 wrote 1 byte > " > " > 48178 java RET write 1 > 48178 java CALL unlink(0x8064500) > 48178 java NAMI "/tmp/hsperfdata_mrogers/48178" > 48178 java RET unlink 0 > 48178 java CALL exit(0x1) > > So it seems the mmap call is the problem, but I'm not sure why. I get the > same results with the installed version of Java and a fresh download of > diablo-1.5.0 from freebsdfoundation.org. I also have access to a FreeBSD > 6.2-RELEASE amd64 box where diablo-1.5.0 works fine; here's the > corresponding command line and kdump output for comparison: > > ~ $ java -version > java version "1.5.0" > Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01) > Java HotSpot(TM) 64-Bit Server VM (build diablo-1.5.0_07-b01, mixed mode) > ~ $ uname -mrs > FreeBSD 6.2-RELEASE amd64 > ~ $ ulimit -a > core file size (blocks, -c) unlimited > data seg size (kbytes, -d) 33554432 > file size (blocks, -f) unlimited > max locked memory (kbytes, -l) unlimited > max memory size (kbytes, -m) unlimited > open files (-n) 11095 > pipe size (512 bytes, -p) 1 > stack size (kbytes, -s) 524288 > cpu time (seconds, -t) unlimited > max user processes (-u) 5547 > virtual memory (kbytes, -v) unlimited > ~ $ > > 31867 java CALL mmap(0,0x3000000,0,0x1042,0xffffffff,0,0) > 31867 java RET mmap 78553088/0x804aea000 > 31867 java CALL mmap(0x804aea000,0x270000,0x7,0x1012,0xffffffff,0,0) > 31867 java RET mmap 78553088/0x804aea000 > ... etc > > Any thoughts on what could be causing this problem? Could it be something > to do with ulimit? Unfortunately I don't have root on either of the boxes > so I can't easily experiment with changing the limits. > > Thanks in advance, > Michael > _______________________________________________ > 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" > From owner-freebsd-java@FreeBSD.ORG Sat Apr 5 11:28:44 2008 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 6B7DD106568A for ; Sat, 5 Apr 2008 11:28:44 +0000 (UTC) (envelope-from m.rogers@cs.ucl.ac.uk) Received: from bells.cs.ucl.ac.uk (bells.cs.ucl.ac.uk [128.16.5.31]) by mx1.freebsd.org (Postfix) with SMTP id 9A3218FC16 for ; Sat, 5 Apr 2008 11:28:43 +0000 (UTC) (envelope-from m.rogers@cs.ucl.ac.uk) Received: from 79-66-37-122.dynamic.dsl.as9105.com by bells.cs.ucl.ac.uk with Internet SMTP id ; Sat, 5 Apr 2008 12:28:27 +0100 Message-ID: <47F7627C.8090609@cs.ucl.ac.uk> Date: Sat, 05 Apr 2008 12:29:00 +0100 From: Michael Rogers User-Agent: Mozilla-Thunderbird 2.0.0.9 (X11/20080110) MIME-Version: 1.0 To: kurt@intricatesoftware.com References: <200804041633.30999.lists@intricatesoftware.com> In-Reply-To: <200804041633.30999.lists@intricatesoftware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: mmap problem with diablo-1.5.0 on 6.1-RELEASE i386 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, 05 Apr 2008 11:28:44 -0000 Kurt, Thank you so much, that solved the problem! Cheers, Michael Kurt Miller wrote: > Most of the memory the jdk uses is from mmap. Using a very high > data seg size ulimit has the effect of reducing the amount of memory > an application can mmap (at least on some FreeBSD versions). Try > reducing your data seg size ulimit to 819200 kbytes. The port versions > of the jdks do this automatically for you (e.g. cap data seg size to 800M). > > -Kurt > > On Friday 04 April 2008 11:35:47 am Michael Rogers wrote: >> Hi, >> >> I'm having problems running Java on FreeBSD 6.1-RELEASE i386. The JVM seems >> to be unable to allocate memory for the code cache using mmap. Here's what >> I see on the command line: >> >> ~ $ java -version >> Error occurred during initialization of VM >> Could not reserve enough space for code cache >> ~ $ uname -mrs >> FreeBSD 6.1-RELEASE i386 >> ~ $ ulimit -a >> core file size (blocks, -c) unlimited >> data seg size (kbytes, -d) 2929687 >> file size (blocks, -f) unlimited >> max locked memory (kbytes, -l) unlimited >> max memory size (kbytes, -m) unlimited >> open files (-n) 11095 >> pipe size (512 bytes, -p) 1 >> stack size (kbytes, -s) 65536 >> cpu time (seconds, -t) unlimited >> max user processes (-u) 5547 >> virtual memory (kbytes, -v) unlimited >> ~ $ >> >> Here's the tail of the kdump output: >> >> 48178 java CALL mmap(0,0x2000000,0,0x1042,0xffffffff,0,0,0) >> 48178 java RET mmap -1 errno 12 Cannot allocate memory >> 48178 java CALL write(0x1,0xbfbfd2d0,0x2b) >> 48178 java GIO fd 1 wrote 43 bytes >> "Error occurred during initialization of VM >> " >> 48178 java RET write 43/0x2b >> 48178 java CALL write(0x1,0xbfbfd2d0,0x2d) >> 48178 java GIO fd 1 wrote 45 bytes >> "Could not reserve enough space for code cache" >> 48178 java RET write 45/0x2d >> 48178 java CALL write(0x1,0xbb2ce361,0x1) >> 48178 java GIO fd 1 wrote 1 byte >> " >> " >> 48178 java RET write 1 >> 48178 java CALL unlink(0x8064500) >> 48178 java NAMI "/tmp/hsperfdata_mrogers/48178" >> 48178 java RET unlink 0 >> 48178 java CALL exit(0x1) >> >> So it seems the mmap call is the problem, but I'm not sure why. I get the >> same results with the installed version of Java and a fresh download of >> diablo-1.5.0 from freebsdfoundation.org. I also have access to a FreeBSD >> 6.2-RELEASE amd64 box where diablo-1.5.0 works fine; here's the >> corresponding command line and kdump output for comparison: >> >> ~ $ java -version >> java version "1.5.0" >> Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01) >> Java HotSpot(TM) 64-Bit Server VM (build diablo-1.5.0_07-b01, mixed mode) >> ~ $ uname -mrs >> FreeBSD 6.2-RELEASE amd64 >> ~ $ ulimit -a >> core file size (blocks, -c) unlimited >> data seg size (kbytes, -d) 33554432 >> file size (blocks, -f) unlimited >> max locked memory (kbytes, -l) unlimited >> max memory size (kbytes, -m) unlimited >> open files (-n) 11095 >> pipe size (512 bytes, -p) 1 >> stack size (kbytes, -s) 524288 >> cpu time (seconds, -t) unlimited >> max user processes (-u) 5547 >> virtual memory (kbytes, -v) unlimited >> ~ $ >> >> 31867 java CALL mmap(0,0x3000000,0,0x1042,0xffffffff,0,0) >> 31867 java RET mmap 78553088/0x804aea000 >> 31867 java CALL mmap(0x804aea000,0x270000,0x7,0x1012,0xffffffff,0,0) >> 31867 java RET mmap 78553088/0x804aea000 >> ... etc >> >> Any thoughts on what could be causing this problem? Could it be something >> to do with ulimit? Unfortunately I don't have root on either of the boxes >> so I can't easily experiment with changing the limits. >> >> Thanks in advance, >> Michael >> _______________________________________________ >> 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" >> > >