Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jun 2022 13:03:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 264689] java/openjdk7 and 8 Build Errors on FreeBSD 13.1R
Message-ID:  <bug-264689-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264689

            Bug ID: 264689
           Summary: java/openjdk7 and 8 Build Errors on FreeBSD 13.1R
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: glewis@FreeBSD.org
          Reporter: incin@incin.me
             Flags: maintainer-feedback?(glewis@FreeBSD.org)
          Assignee: glewis@FreeBSD.org

I am testing ports with the new version of FreeBSD and having issues with J=
ava
on head and the 2022Q2 tree.

The build server is on FreeBSD 13.1R and the poudriere jail is also 13.1R.

13.1 - HEAD
Version openjdk8-8.332.09.1 builds

Version openjdk-7.261.02.1,1 fails with fatal error and core dump

13.1 - 2022Q2 Tree

Version openjdk8-8.322.06.1 fails with a gmake error
 -For fun I back ported the version from head and got it to build
(openjdk8-8.332.09.1)

Version openjdk-7.261.02.1,1 fails with fatal error and core dump.

I can give more logs if needed.=20

Part of the gmake error from the openjdk8-8.322.06.1 2022Q2 tree build are:

Creating images/lib/ct.sym
gmake[3]: Leaving directory
'/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u322-b06.1/jdk/make'
gmake[3]: Entering directory
'/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u322-b06.1/jdk/make'
cd:
/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u322-b06.1/build/bsd-x86_64=
-normal-server-release/images/j2re-image/man:
No such file or directory
gmake[3]: *** [Images.gmk:454:
/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u322-b06.1/build/bsd-x86_64=
-normal-server-release/images/j2re-image/man/ja]
Error 2
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory
'/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u322-b06.1/jdk/make'
gmake[2]: *** [BuildJdk.gmk:102: images] Error 2
gmake[2]: Leaving directory
'/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u322-b06.1/jdk/make'
gmake[1]: ***
[/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u322-b06.1//make/Main.gmk:=
141:
images-only] Error 2
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u322-b06.1'
=3D=3D=3D> Compilation failed unexpectedly.


Logs from the openjdk-7.261.02.1,1 2022Q2 tree and head builds are the same:

 A fatal error has been detected by the Java Runtime Environment:

  SIGSEGV (0xb) at pc=3D0x0000000800bddffb, pid=3D55704, tid=3D34382882560

 JRE version:  (6.0_32-b44) (build )
 Java VM: OpenJDK 64-Bit Server VM (24.95-b-internal mixed mode bsd-amd64
compressed oops)#
 Problematic frame:
 V  [libjvm.so+0x7ddffb]  JVM_FindSignal+0x81b2b

 Core dump written. Default location: /cores/core or core.55704

 If you would like to submit a bug report, please visit:
   http://bugreport.java.com/bugreport/crash.jsp

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

Current thread (0x0000000801e17800):  JavaThread "Unknown thread"
[_thread_in_vm, id=3D23144192, stack(0x00007fffdfefd000,0x00007fffdfffd000)]

siginfo:si_signo=3DSIGSEGV: si_errno=3D0, si_code=3D1 (SEGV_MAPERR),
si_addr=3D0x0000000000000180

Registers:
RAX=3D0x0000000805701b48, RBX=3D0x0000000000000000, RCX=3D0x0000000805701ea=
0,
RDX=3D0x0000000000000000
RSP=3D0x00007fffdfffc3d0, RBP=3D0x00007fffdfffc420, RSI=3D0x00007fffdfffc5c=
4,
RDI=3D0x00007fffdfffc5c0
R8 =3D0x0000000000000021, R9 =3D0x0000000000000000, R10=3D0x000000000000000=
0,
R11=3D0x0000000000000000
R12=3D0x0000000000000001, R13=3D0x0000000800eebdb0, R14=3D0x00007fffdfffc7d=
0,
R15=3D0x0000000805701ea0
RIP=3D0x0000000800bddffb, EFLAGS=3D0x0000000000000005, ERR=3D0x000000000000=
0004
  TRAPNO=3D0x000000000000000c

Top of Stack: (sp=3D0x00007fffdfffc3d0)
0x00007fffdfffc3d0:   00007fffdfffc5c4 0000000800ec49e9
0x00007fffdfffc3e0:   0000000800ec57f0 0000002101e206a0
0x00007fffdfffc3f0:   000000000000000e 0000000801e17800
0x00007fffdfffc400:   0000000000000001 0000000800eebdb0
0x00007fffdfffc410:   00007fffdfffc7d0 00007fffdfffc701
0x00007fffdfffc420:   00007fffdfffc700 0000000800957b1a
0x00007fffdfffc430:   0000000801f7f580 0000000805701b48
0x00007fffdfffc440:   0000000801e17800 0000000800957a6a
0x00007fffdfffc450:   0000000000000000 0000000000002cac
0x00007fffdfffc460:   0000000800215301 0000000801e0be00
0x00007fffdfffc470:   0000000801e0be40 0000000000000000
0x00007fffdfffc480:   0000000801e401a4 0000000801e401c0
0x00007fffdfffc490:   ffffffff00000001 0000000801e17800
0x00007fffdfffc4a0:   0000000801e071b0 0000000801e20400
0x00007fffdfffc4b0:   0000000801e20680 0000000801e207e8
0x00007fffdfffc4c0:   00000000000003d8 00007fffdfffcc90
0x00007fffdfffc4d0:   0000000000000000 0000000000000000
0x00007fffdfffc4e0:   0000000000000000 0000000000000000
0x00007fffdfffc4f0:   0000000000000000 0000000000000000
0x00007fffdfffc500:   0000000000000000 0000000000000002
0x00007fffdfffc510:   0000000801e206b8 0000000800c889d8
0x00007fffdfffc520:   0000000801f4b600 00000000000005c3
0x00007fffdfffc530:   0000000801f37c40 0000000801e73280
0x00007fffdfffc540:   00007fffdfffc560 0000000800b580e2
0x00007fffdfffc550:   0000000000000000 0000000801e73280
0x00007fffdfffc560:   00007fffdfffc590 0000000000000000
0x00007fffdfffc570:   0000000801e20690 0000000801e206b0
0x00007fffdfffc580:   0000000000000000 0000000000000000
0x00007fffdfffc590:   0000000000000000 0000000802440992
0x00007fffdfffc5a0:   0000000000000000 0000000000000000
0x00007fffdfffc5b0:   0000000800000000 0000000801f37c40
0x00007fffdfffc5c0:   0000000000000000 0000000800d1e79f

Instructions: (pc=3D0x0000000800bddffb)
0x0000000800bddfdb:   54 53 48 83 ec 28 44 89 45 cc 49 89 cf 48 89 d3
0x0000000800bddfeb:   c7 07 00 00 00 00 48 89 75 b0 c7 06 00 00 00 00
0x0000000800bddffb:   8b 82 80 01 00 00 48 89 7d d0 89 07 48 8d 05 ca
0x0000000800bde00b:   66 2e 00 8a 00 31 c9 84 c0 0f 94 c1 41 8b 4c 8f

Stack: [0x00007fffdfefd000,0x00007fffdfffd000],  sp=3D0x00007fffdfffc3d0,  =
free
space=3D1020k
Native frames: (J=3Dcompiled Java code, j=3Dinterpreted, Vv=3DVM code, C=3D=
native code)
V  [libjvm.so+0x7ddffb]  JVM_FindSignal+0x81b2b
V  [libjvm.so+0x557b1a]  ClassFileParser::parseClassFile(Symbol*, Handle,
Handle, KlassHandle, GrowableArray<Handle>*, TempNewSymbol&, bool,
Thread*)+0xf3a
V  [libjvm.so+0x55e514]  ClassLoader::load_classfile(Symbol*, Thread*)+0x204
V  [libjvm.so+0x9829e0]  JVM_handle_bsd_signal+0xcc1b0
V  [libjvm.so+0x9815fe]  JVM_handle_bsd_signal+0xcadce
V  [libjvm.so+0x98594f]  JVM_handle_bsd_signal+0xcf11f
V  [libjvm.so+0x985458]  JVM_handle_bsd_signal+0xcec28
V  [libjvm.so+0x9c2b0d]  JVM_handle_bsd_signal+0x10c2dd
V  [libjvm.so+0x9c47bf]  JVM_handle_bsd_signal+0x10df8f
V  [libjvm.so+0x6aad3d]  AsyncGetCallTrace+0x7ec3d
V  [libjvm.so+0x9ad7a4]  JVM_handle_bsd_signal+0xf6f74
V  [libjvm.so+0x71aaf5]  JNI_CreateJavaVM+0x55
C  [gamma+0x74ea]  JavaMain+0x99a
C  [gamma+0x6bfe]  JavaMain+0xae
C  [libthr.so.3+0x1083a]  operator->+0x8ca


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

Java Threads: ( =3D> current thread )

Other Threads:

=3D>0x0000000801e17800 (exited) JavaThread "Unknown thread" [_thread_in_vm,
id=3D23144192, stack(0x00007fffdfefd000,0x00007fffdfffd000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (0 events):
No events

Events (1 events):
Event: 0.010 loading class 0x0000000801f7f580


Dynamic libraries:
0x0000000000000000=20=20=20=20=20
/wrkdirs/usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/=
hotspot/outputdir/bsd_amd64_compiler2/product/gamma
0x00007fffffffe5d0      [vdso]
0x0000000800400000      ./libjvm.so
0x000000080024c000      /lib/libm.so.5
0x0000000800287000      /lib/libthr.so.3
0x0000000800ef0000      /lib/libc.so.7
0x00000008002b5000      /usr/lib/libc++.so.1
0x000000080038c000      /lib/libcxxrt.so.1
0x00000008003ae000      /lib/libgcc_s.so.1
0x0000000802000000=20=20=20=20=20
/usr/local/bootstrap-openjdk6/jre/lib/amd64/libverify.so
0x000000080220f000      /usr/local/bootstrap-openjdk6/jre/lib/amd64/libjava=
.so
0x000000080243b000      /usr/local/bootstrap-openjdk6/jre/lib/amd64/libzip.=
so
0x000000080131e000      /lib/libz.so.6
0x000000080020a000      /libexec/ld-elf.so.1

VM Arguments:
jvm_args: -Xbatch
java_command: Queens
Launcher Type: gamma

Environment Variables:
JAVA_HOME=3D/usr/local/bootstrap-openjdk6
CLASSPATH=3D.:/usr/local/bootstrap-openjdk6/jre/lib/rt.jar:/usr/local/boots=
trap-openjdk6/jre/lib/i18n.jar
PATH=3D/wrkdirs/usr/ports/java/openjdk7/work/.bin:/sbin:/bin:/usr/sbin:/usr=
/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LD_LIBRARY_PATH=3D.:/usr/local/bootstrap-openjdk6/jre/lib/amd64/native_thre=
ads:/usr/local/bootstrap-openjdk6/jre/lib/amd64:
SHELL=3D/bin/sh

Signal Handlers:
SIGSEGV: [libjvm.so+0x9f1e10], sa_mask[0]=3D0x7fffffff, sa_flags=3D0x000000=
42
SIGBUS: [libjvm.so+0x9f1e10], sa_mask[0]=3D0x7fffffff, sa_flags=3D0x00000042
SIGFPE: [libjvm.so+0x8b3db0], sa_mask[0]=3D0x7fffffff, sa_flags=3D0x00000042
SIGPIPE: [libjvm.so+0x8b3db0], sa_mask[0]=3D0x7fffffff, sa_flags=3D0x000000=
42
SIGXFSZ: [libjvm.so+0x8b3db0], sa_mask[0]=3D0x7fffffff, sa_flags=3D0x000000=
42
SIGILL: [libjvm.so+0x8b3db0], sa_mask[0]=3D0x7fffffff, sa_flags=3D0x00000042
SIGUSR1: SIG_DFL, sa_mask[0]=3D0x20000000, sa_flags=3D0x00000002
SIGUSR2: [libjvm.so+0x8b4720], sa_mask[0]=3D0x00000000, sa_flags=3D0x000000=
42
SIGHUP: SIG_DFL, sa_mask[0]=3D0x00000001, sa_flags=3D0x00000002
SIGINT: SIG_DFL, sa_mask[0]=3D0x00000000, sa_flags=3D0x00000000
SIGTERM: SIG_DFL, sa_mask[0]=3D0x00000000, sa_flags=3D0x00000000
SIGQUIT: SIG_IGN, sa_mask[0]=3D0x00000004, sa_flags=3D0x00000002


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

OS:BSDuname:FreeBSD 13.1-RELEASE FreeBSD 13.1-RELEASE amd64
rlimit: STACK 524288k, CORE infinity, NPROC 89999, NOFILE 1024, AS infinity
load average:43.63 74.49 163.38

CPU:total 128 (initial active 128) (64 cores per cpu, 1 threads per core)
family 23 model 49 stepping 0, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3,
sse4.1, sse4.2, popcnt, avx, avx2, aes, mmxext, 3dnowpref, lzcnt, sse4a, ts=
c,
tscinvbit, tscinv

/proc/cpuinfo:
  <Not Available>

Memory: 4k page, physical 140071764k(35017941k free)

/proc/meminfo:


vm_info: OpenJDK 64-Bit Server VM (24.95-b-internal) for bsd-amd64 JRE
(1.7.0_261-b), built on Jun 15 2022 12:39:39 by "root" with gcc FreeBSD Cla=
ng
13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)

time: Wed Jun 15 12:39:40 2022
elapsed time: 0 seconds

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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