From owner-freebsd-java@FreeBSD.ORG Thu Jan 30 01:16:47 2014 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E29F5E52; Thu, 30 Jan 2014 01:16:47 +0000 (UTC) Received: from mail-ve0-x236.google.com (mail-ve0-x236.google.com [IPv6:2607:f8b0:400c:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8E89E10B5; Thu, 30 Jan 2014 01:16:47 +0000 (UTC) Received: by mail-ve0-f182.google.com with SMTP id jy13so1770956veb.13 for ; Wed, 29 Jan 2014 17:16:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ln/N761Yr6Ts5XX4hhkl8Na3C4UCqb1lYvC+H9bJt3Y=; b=QTDrdd6PllPNzknG2qx6JQ8Bq4grr7lB3HGU8Z8vHgZxaWXV0vGgnqg8NHVdmd0/m5 Xa7w0U4vHWJi+/yGvfKlx80OV16KvA/4vtbrgVGt1iTsY5ywLhslBt+NRQ1Ddc4prNo4 oCHigCDR6dX7kKJrBdXjpc4QZKF2LETK/ZBwf1wHqpH4pydPLls8PFdCpEGr3pkcJIHF 6vq9nJbls8XwdZZhhohdwB6Ril4vx4/5TZAC57XJLPJ+wfhz9LrBcT7IrwnyaKUT/sjP nRVIjgBVHiArBkw2Fq5J33kapDbjI3hrtnMiVLKLB6QuJJFNFqL+OjrGqzGwYE2JNbZE fAUQ== MIME-Version: 1.0 X-Received: by 10.58.7.1 with SMTP id f1mr9046050vea.15.1391044606680; Wed, 29 Jan 2014 17:16:46 -0800 (PST) Received: by 10.59.10.99 with HTTP; Wed, 29 Jan 2014 17:16:46 -0800 (PST) In-Reply-To: References: Date: Wed, 29 Jan 2014 20:16:46 -0500 Message-ID: Subject: Re: freebsd-stable Digest, Vol 549, Issue 2 From: Jason Unovitch To: freebsd-stable@freebsd.org, freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jan 2014 01:16:48 -0000 Bottom line up front, the disabling BackgroundCompliation didn't prevent crashes on either OpenJDK6 or OpenJDK7. I've found that Serviio is reliable on OpenJDK7 as long as it isn't pushed. It's been running for about 48 hours based off the current version in ports (openjdk-7.25.15_2,1). On the other hand, it is unreliable and crashes when attempting to parse through media directories looking for files to add to its database. It is reliable while reading in images but when it gets to videos and it is forking off ffmpegs to get thumbnails it eventually crashes. To answer earlier question regarding make.conf, this is it. I do compile all my own packages mainly to turn a few knobs for Nginx/RoR/PHP and some ffmpeg knobs for Serviio. The only global one is stack protection. WITH_SSP_PORTS=yes php5_SET+=FPM ffmpeg_SET+=RTMP X11GRAB FAAC LAME AMR_NB AMR_WB ASS DEFAULT_VERSIONS= ruby=1.9 perl5=5.16 rubygem-passenger_UNSET+=APACHE22 rubygem-passenger_SET+=NGINX nginx_SET+=PASSENGER HTTP_SSL The first set below is on OpenJDK6. On the first it ran for a few hours until it went through all the image additions. It crashed on video. The ones that follow crash quickly because it picks up looking through videos. # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000800a4dfb8, pid=38507, tid=100590 # # JRE version: 6.0_32-b30 # Java VM: OpenJDK 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libthr.so.3+0x12fb8] operator->+0x88 OS:BSD uname:FreeBSD 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 rlimit: STACK 524288k, CORE infinity, NPROC 19558, NOFILE 470934, AS infinity load average:1.67 1.07 0.98 CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, tsc, tscinvbit Memory: 4k page, physical 16744408k(732520k free), swap 4194304k(3092044k free) vm_info: OpenJDK 64-Bit Server VM (23.25-b01) for bsd-amd64 JRE (1.6.0_32-b30), built on Jan 29 2014 17:44:56 by "root" with gcc 4.2.1 Compatible FreeBSD Clang 3.3 (tags/RELEASE_33/final 183502) time: Wed Jan 29 20:02:10 2014 elapsed time: 7283 seconds # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000800d04f5d, pid=54278, tid=101331 # # JRE version: 6.0_32-b30 # Java VM: OpenJDK 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libc.so.7+0xa4f5d] short+0x7f2d OS:BSD uname:FreeBSD 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 rlimit: STACK 524288k, CORE infinity, NPROC 19558, NOFILE 470934, AS infinity load average:4.82 4.06 2.83 CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, tsc, tscinvbit Memory: 4k page, physical 16744408k(854608k free), swap 4194304k(3101492k free) vm_info: OpenJDK 64-Bit Server VM (23.25-b01) for bsd-amd64 JRE (1.6.0_32-b30), built on Jan 29 2014 17:44:56 by "root" with gcc 4.2.1 Compatible FreeBSD Clang 3.3 (tags/RELEASE_33/final 183502) time: Wed Jan 29 20:28:36 2014 elapsed time: 414 seconds # A fatal error has been detected by the Java Runtime Environment: # # SIGBUS (0xa) at pc=0x00000008039f8194, pid=82303, tid=101252 # # JRE version: 6.0_32-b30 # Java VM: OpenJDK 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops) # Problematic frame: # J java.io.File.listFiles(Ljava/io/FileFilter;)[Ljava/io/File; # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (safepoint.cpp:687), pid=83838, tid=100192 # fatal error: Deadlock in safepoint code. Should have called back to the VM before blocking. # # JRE version: 6.0_32-b30 # Java VM: OpenJDK 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops) # Core dump written. Default location: //core or core.83838 # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (compileBroker.cpp:311), pid=7314, tid=100516 # guarantee(_code_handle != NULL) failed: # # JRE version: 6.0_32-b30 # Java VM: OpenJDK 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops) # Core dump written. Default location: //core or core.7314 This is on OpenJDK7 with the same patched Background Compilation patch. # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000803c4b8b5, pid=82769, tid=35219752960 # # JRE version: OpenJDK Runtime Environment (7.0-b18) (build 1.7.0_45-b18) # Java VM: OpenJDK 64-Bit Server VM (24.45-b08 mixed mode bsd-amd64 compressed oops) # Problematic frame: # J java.util.regex.Pattern.matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; OS:BSDuname:FreeBSD 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 rlimit: STACK 524288k, CORE infinity, NPROC 19558, NOFILE 470934, AS infinity load average:0.69 0.50 0.43 CPU:total 4 (4 cTo answer earlier question regarding make.conf, this is it. I do compile all my own packages mainly to turn a few knobs for Nginx/RoR/PHP and some ffmpeg knobs for Serviio. The only global one is stack protection. WITH_SSP_PORTS=yes php5_SET+=FPM ffmpeg_SET+=RTMP X11GRAB FAAC LAME AMR_NB AMR_WB ASS DEFAULT_VERSIONS= ruby=1.9 perl5=5.16 rubygem-passenger_UNSET+=APACHE22 rubygem-passenger_SET+=NGINX nginx_SET+=PASSENGER HTTP_SSLores per cpu, 1 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, tsc, tscinvbit /proc/cpuinfo: Memory: 4k page, physical 2609044k(652261k free) /proc/meminfo: vm_info: OpenJDK 64-Bit Server VM (24.45-b08) for bsd-amd64 JRE (1.7.0_45-b18), built on Jan 29 2014 21:14:23 by "root" with gcc 4.6.4 time: Wed Jan 29 22:25:26 2014 elapsed time: 41 seconds # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000800d0d49d, pid=15794, tid=34410443776 # # JRE version: 7.0-b15 # Java VM: OpenJDK 64-Bit Server VM (23.21-b01 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libc.so.7+0xac49d] __free+0x29d OS:BSDuname:FreeBSD 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 rlimit: STACK 524288k, CORE infinity, NPROC 19558, NOFILE 470934, AS infinity load average:1.08 1.19 1.21 CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, tsc, tscinvbit /proc/cpuinfo: Memory: 4k page, physical 1959320k(489830k free) /proc/meminfo: vm_info: OpenJDK 64-Bit Server VM (23.21-b01) for bsd-amd64 JRE (1.7.0_25-b15), built on Jan 27 2014 23:27:55 by "root" with gcc 4.6.4 time: Tue Jan 28 03:44:19 2014 elapsed time: 5332 seconds Respectfully, Jason Unovitch > From: Huang Wen Hui > > Content-Type: text/plain; charset="utf-8" > > Hi, > I got the same problem on FreeBSD 10, disable Background Compilation seems > to fixed this problem. > Please try this patch: > > --- work/hotspot/src/cpu/x86/vm/c1_globals_x86.hpp.orig 2014-01-28 > 09:01:59.000000000 +0800 > +++ work/hotspot/src/cpu/x86/vm/c1_globals_x86.hpp 2014-01-28 > 09:02:49.000000000 +0800 > @@ -32,7 +32,7 @@ > // (see c1_globals.hpp) > > #ifndef TIERED > -define_pd_global(bool, BackgroundCompilation, true ); > +define_pd_global(bool, BackgroundCompilation, false); > define_pd_global(bool, UseTLAB, true ); > define_pd_global(bool, ResizeTLAB, true ); > define_pd_global(bool, InlineIntrinsics, true ); > --- work/hotspot/src/cpu/x86/vm/c2_globals_x86.hpp.orig 2014-01-28 > 09:02:06.000000000 +0800 > +++ work/hotspot/src/cpu/x86/vm/c2_globals_x86.hpp 2014-01-28 > 09:04:34.000000000 +0800 > @@ -31,7 +31,7 @@ > // Sets the default values for platform dependent flags used by the server > compiler. > // (see c2_globals.hpp). Alpha-sorted. > > -define_pd_global(bool, BackgroundCompilation, true); > +define_pd_global(bool, BackgroundCompilation, false); > define_pd_global(bool, UseTLAB, true); > define_pd_global(bool, ResizeTLAB, true); > define_pd_global(bool, CICompileOSR, true); > > > Cheers, > > Huang Wen Hui > > > 2014-01-29 Kenneth Culver > >> I built from ports, I'm running 10.0-STABLE, but the problems were >> occurring on 10.0-RELEASE as well. >> >> >> On Tue, Jan 28, 2014 at 9:31 AM, Sevan / Venture37 > >wrote: >> >> > Jason, >> > A couple of questions, >> > Are you using packages or building from ports? >> > If you're building, what does your /etc/make.conf >> > >> > I've been suffering from sigsegv issues for a few weeks now on my >> > server running -current which I build world/ports on myself. >> > I looked to see if the problems are there in 10.0-RELEASE & >> > 11.0-CURRENT using the official packages & install CD & the problem >> > did not manifest on either environments. >> > I'm currently working backwards on my aforementioned server, reverting >> > changes to find where the problem is introduced. >> > >> > >> > Sevan >> > _______________________________________________ >> > 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 >> " >> > >> _______________________________________________ >> 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" >>