Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 2014 20:16:46 -0500
From:      Jason Unovitch <jason.unovitch@gmail.com>
To:        freebsd-stable@freebsd.org, freebsd-java@freebsd.org
Subject:   Re: freebsd-stable Digest, Vol 549, Issue 2
Message-ID:  <CABW2x9p2jWDYfpCH4OVCt-inW8kvUeD2jzsYMdyCADpm19gwSg@mail.gmail.com>
In-Reply-To: <mailman.6219.1391006126.1399.freebsd-stable@freebsd.org>
References:  <mailman.6219.1391006126.1399.freebsd-stable@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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:
  <Not Available>

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:
  <Not Available>

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 <huanghwh@gmail.com>
>         <CAB8uncZDWzkHwBNBG96cmPnky8roJ4W9+xyLUACvMLkXoorJ6g@mail.gmail.com>
> 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 <kwculver@gmail.com>
>
>> 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 <venture37@gmail.com
>> >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"
>>



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