From nobody@FreeBSD.org  Tue Oct 24 11:20:27 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A869216A403
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Oct 2006 11:20:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5917A43D53
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Oct 2006 11:20:27 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k9OBKRcV062065
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Oct 2006 11:20:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k9OBKRwW062064;
	Tue, 24 Oct 2006 11:20:27 GMT
	(envelope-from nobody)
Message-Id: <200610241120.k9OBKRwW062064@www.freebsd.org>
Date: Tue, 24 Oct 2006 11:20:27 GMT
From: Kay Abendroth<kay.abendroth@raxion.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: java/berkeley-db installation error
X-Send-Pr-Version: www-3.0

>Number:         104744
>Category:       java
>Synopsis:       java/berkeley-db installation error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    glewis
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 24 11:30:18 GMT 2006
>Closed-Date:    Tue Jul 31 23:11:05 UTC 2012
>Last-Modified:  Tue Jul 31 23:11:05 UTC 2012
>Originator:     Kay Abendroth
>Release:        6.1
>Organization:
>Environment:
FreeBSD susi.redhill.net 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Tue Oct  3 13:30:56 GMT 2006     root@susi.redhill.net:/usr/obj/usr/src/sys/SUSI  i386
>Description:
While running the UnitTests, the installation of java/berkeley-db crashes:

[...]
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.111 sec

    [junit] Testcase: testSubclassIndex took 1.983 sec

BUILD FAILED
/usr/ports/java/berkeley-db/work/je-3.1.0/build.xml:591: The following error occurred while executing this line:
/usr/ports/java/berkeley-db/work/je-3.1.0/build.xml:665: The following error occurred while executing this line:
/usr/ports/java/berkeley-db/work/je-3.1.0/build.xml:724: UnitTests failed. Check log and/or reports.

Total time: 68 minutes 42 seconds
Please, review test failures and consider reporting them via http://forums.oracle.com/forums/forum.jspa?forumID=273
*** Error code 1

Stop in /usr/ports/java/berkeley-db.
*** Error code 1

Stop in /usr/ports/java/berkeley-db.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall.60060.0 env make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
        ! java/berkeley-db      (unknown build error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

And here's the output of the log-file:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x283e965f, pid=69886, tid=0x8135000
#
# Java VM: Java HotSpot(TM) Client VM (diablo-1.5.0_07-b01 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x24765f]
#

---------------  T H R E A D  ---------------

Current thread (0x08130000):  VMThread [id=135483392]

siginfo:si_signo=11, si_errno=0, si_code=12, si_addr=0x000000b4

Registers:
EAX=0x000000b0, EBX=0x286239d8, ECX=0x000002c0, EDX=0x00004e2b
ESP=0xbf8fd610, EBP=0xbf8fd628, ESI=0x000000b0, EDI=0x080e5b00
EIP=0x283e965f, EFLAGS=0x00010202

Top of Stack: (sp=0xbf8fd610)
0xbf8fd610:   286239d8 000003ba 000002c0 080e18c0
0xbf8fd620:   28639948 286377bc bf8fd6b8 283df7b1
0xbf8fd630:   080e18c0 286377bc 00000000 00000000
0xbf8fd640:   00002000 08130000 bf8fd660 286377b4
0xbf8fd650:   286124d8 0812f080 bf8fd688 283e8a27
0xbf8fd660:   00000000 00000001 00000001 00000000
0xbf8fd670:   00000000 bf8fd678 00001eb0 00000000
0xbf8fd680:   081a75e0 080600c0 bf8fd6b8 283df52c

Instructions: (pc=0x283e965f)
0x283e964f:   c0 74 4f 89 c6 eb 09 8d 7e 04 8b 37 85 f6 74 3d
0x283e965f:   f6 46 04 01 75 4f 8b 55 0c 50 50 8b 02 8b 4e 08

Stack: [0xbf8be000,0xbf8fe000),  sp=0xbf8fd610,  free space=253k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x24765f]
V  [libjvm.so+0x23d7b1]
V  [libjvm.so+0x23dbb5]
V  [libjvm.so+0x243da0]
V  [libjvm.so+0x3ee5e9]
V  [libjvm.so+0x23b0cf]
V  [libjvm.so+0x1f95e0]
V  [libjvm.so+0x23b422]
V  [libjvm.so+0x42bf8a]
V  [libjvm.so+0x42bcc9]
V  [libjvm.so+0x42b1ab]
V  [libjvm.so+0x42b4c5]
V  [libjvm.so+0x42b6c0]
V  [libjvm.so+0x383d79]
C  [libpthread.so.2+0xf3cb]  _pthread_create+0x75b

VM_Operation (0xbfbfc720): generation collection for allocation, mode: safepoint, requested by thread 0x08066200


---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x08156200 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=135619584]
  0x08135e00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=135618560]
  0x08135a00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=135486464]
  0x08135600 JavaThread "Finalizer" daemon [_thread_blocked, id=135485440]
  0x08135200 JavaThread "Reference Handler" daemon [_thread_blocked, id=135484416]
  0x08066200 JavaThread "main" [_thread_blocked, id=134594560]

Other Threads:
=>0x08130000 VMThread [id=135483392]
  0x08056b00 WatcherThread [id=135620608]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x08063500/0x08063540] Threads_lock - owner thread: 0x08130000
[0x08053700/0x08063b00] Heap_lock - owner thread: 0x08066200

Heap
 def new generation   total 576K, used 27K [0x2d630000, 0x2d6d0000, 0x2e9e0000)
  eden space 512K,   0% used [0x2d630000, 0x2d630000, 0x2d6b0000)
  from space 64K,  42% used [0x2d6c0000, 0x2d6c6c88, 0x2d6d0000)
  to   space 64K,   0% used [0x2d6b0000, 0x2d6b0000, 0x2d6c0000)
 tenured generation   total 1408K, used 456K [0x2e9e0000, 0x2eb40000, 0x3d630000)
   the space 1408K,  32% used [0x2e9e0000, 0x2ea522e0, 0x2ea52400, 0x2eb40000)
 compacting perm gen  total 8192K, used 4471K [0x3d630000, 0x3de30000, 0x41630000)
   the space 8192K,  54% used [0x3d630000, 0x3da8dc58, 0x3da8de00, 0x3de30000)
No shared spaces configured.

Dynamic libraries:
0x08048000      /usr/local/diablo-jdk1.5.0/jre/bin/java
0x28080000      /lib/libz.so.3
0x28091000      /usr/lib/libpthread.so.2
0x280b8000      /lib/libc.so.6
0x281a2000      /usr/local/diablo-jdk1.5.0/jre/lib/i386/client/libjvm.so
0x28642000      /lib/libm.so.4
0x28659000      /usr/local/diablo-jdk1.5.0/jre/lib/i386/native_threads/libhpi.so
0x2866a000      /usr/local/diablo-jdk1.5.0/jre/lib/i386/libverify.so
0x28677000      /usr/local/diablo-jdk1.5.0/jre/lib/i386/libjava.so
0x28696000      /usr/local/diablo-jdk1.5.0/jre/lib/i386/libzip.so
0x4198e000      /usr/local/diablo-jdk1.5.0/jre/lib/i386/libnet.so
0x4199f000      /usr/local/diablo-jdk1.5.0/jre/lib/i386/libnio.so
0x28052000      /libexec/ld-elf.so.1

VM Arguments:
jvm_args: -ea -Xmx256M -Dtestdestdir=/usr/ports/java/berkeley-db/work/je-3.1.0/build/test/classes -Dtxnnosync=true -DisolationLevel= -Dlongtest=false -DexpectEnhanced=true
java_command: org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner com.sleepycat.persist.test.EvolveTest filtertrace=true haltOnError=false haltOnFailure=false showoutput=false formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,/usr/ports/java/berkeley-db/work/je-3.1.0/build/test/data/TEST-com.sleepycat.persist.test.EvolveTest.xml propsfile=/usr/ports/java/berkeley-db/work/je-3.1.0/junit2127156414.properties
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/local/diablo-jdk1.5.0
PATH=/usr/local/libexec/ccache/:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
LD_LIBRARY_PATH=/usr/local/diablo-jdk1.5.0/jre/lib/i386/client:/usr/local/diablo-jdk1.5.0/jre/lib/i386:/usr/local/diablo-jdk1.5.0/jre/../lib/i386
SHELL=/bin/sh
HOSTTYPE=FreeBSD
OSTYPE=FreeBSD
ARCH=i386
MACHTYPE=i386

Signal Handlers:
SIGSEGV: [libjvm.so+0x425170], sa_mask[0]=0xffffffff, sa_flags=0x00000002
SIGBUS: [libjvm.so+0x425170], sa_mask[0]=0xffffffff, sa_flags=0x00000002
SIGFPE: [libjvm.so+0x386c20], sa_mask[0]=0xffffffff, sa_flags=0x00000042
SIGPIPE: [libjvm.so+0x386c20], sa_mask[0]=0xffffffff, sa_flags=0x00000042
SIGILL: [libjvm.so+0x386c20], sa_mask[0]=0xffffffff, sa_flags=0x00000042
SIGUSR1: [libjvm.so+0x386cf0], sa_mask[0]=0x00000000, sa_flags=0x00000040
SIGUSR2: [libjvm.so+0x386c20], sa_mask[0]=0xffffffff, sa_flags=0x00000042
SIGHUP: [libjvm.so+0x385480], sa_mask[0]=0xffffffff, sa_flags=0x00000002
SIGINT: [libjvm.so+0x385480], sa_mask[0]=0xffffffff, sa_flags=0x00000002
SIGQUIT: [libjvm.so+0x385480], sa_mask[0]=0xffffffff, sa_flags=0x00000002
SIGTERM: [libjvm.so+0x385480], sa_mask[0]=0xffffffff, sa_flags=0x00000002


---------------  S Y S T E M  ---------------

OS:FreeBSD
uname:FreeBSD 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Tue Oct  3 13:30:56 GMT 2006     root@susi.redhill.net:/usr/obj/usr/src/sys/SUSI i386
rlimit: STACK 65536k, CORE infinity, NOFILE 11095
CPU:total 1 family 6, cmov, cx8, fxsr, mmx

Memory: 4k page, physical 1376808k

vm_info: Java HotSpot(TM) Client VM (diablo-1.5.0_07-b01) for freebsd-x86, built on Sep 24 2006 16:09:01 by root with gcc 3.4.4 [FreeBSD] 20050518
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Oct 24 11:30:41 UTC 2006 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104744 

From: Mikhail Teterin <mi+mx@aldan.algebra.com>
To: bug-followup@freebsd.org, kay.abendroth@raxion.net
Cc:  
Subject: Re: ports/104744: java/berkeley-db installation error
Date: Tue, 24 Oct 2006 11:05:47 -0400

 Looks like a bug in JVM -- try updating your Diablo installation, or build the 
 java/jdk15 port instead. If the former does not help, but the latter does, 
 please, follow up with the Diablo maintainers...
 
 	-mi

From: Kay Abendroth <kay.abendroth@raxion.net>
To: Mikhail Teterin <mi+mx@aldan.algebra.com>
Cc: bug-followup@freebsd.org
Subject: Re: ports/104744: java/berkeley-db installation error
Date: Tue, 24 Oct 2006 21:19:11 +0200

 I have installed the latest diablo-jdk.
 
 After some testing, I found that the following little change in Makefile
 works very well for me. Maybe there's something wrong with the client-vm?
 
 http://www.raxion.net/freebsd/patch/_patch_berkeley-db.txt
 
 
 Mikhail Teterin wrote:
 > Looks like a bug in JVM -- try updating your Diablo installation, or build the 
 > java/jdk15 port instead. If the former does not help, but the latter does, 
 > please, follow up with the Diablo maintainers...
 > 
 > 	-mi

From: Mikhail Teterin <mi+mx@aldan.algebra.com>
To: Kay Abendroth <kay.abendroth@raxion.net>
Cc: bug-followup@freebsd.org, java@freebsd.org, glewis@freebsd.org
Subject: Re: ports/104744: java/berkeley-db installation error
Date: Tue, 24 Oct 2006 15:29:30 -0400

 צ 24  2006 15:19, Kay Abendroth :
 > After some testing, I found that the following little change in Makefile
 > works very well for me. Maybe there's something wrong with the client-vm?
 
 There definitely is something wrong -- in the client-vm *of Diablo*... Hence 
 my original suggestion for reinstalling Diablo and/or building jdk15 anew.
 
 Diablo is the official Java build for FreeBSD, and, I believe, it is only 
 supported on the exact version of the OS, where it was built (and certified).
 
 If installing the latest one does not solve the problem for you, please, 
 contact java@FreeBSD.org -- we'd rather have the official Java, that works 
 with our (soon-to-be) latest stable release (6.2).
 
 > http://www.raxion.net/freebsd/patch/_patch_berkeley-db.txt
 
 Yes, using the server VM is a good work-around. But java/jdk15 works fine 
 without it, which means, whatever bug you are hitting, it is fixed already.
 
 	http://www.freebsd.org/cgi/query-pr.cgi?pr=java/104744
 
 Greg! Would you take this PR, please? Thanks!
 
 	-mi
 
Responsible-Changed-From-To: freebsd-ports-bugs->glewis 
Responsible-Changed-By: glewis 
Responsible-Changed-When: Wed Oct 25 00:56:09 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104744 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Sun Mar 2 06:08:33 UTC 2008 
State-Changed-Why:  
Note that feedback was received some time ago. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104744 
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Tue Jul 31 23:10:05 UTC 2012 
State-Changed-Why:  
There isn't going to be another diablo-jdk15 release, ever.  So there isn't any 
point keeping this PR open. 

If there are failures using one of the modern JDK ports then that should be 
opened in a separate PR with more details. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104744 
>Unformatted:
