Bug 265805

Summary: java/openjdk11: fails to build: SIGSEGV for support_jmods_jdk.naming.ldap.jmod
Product: Ports & Packages Reporter: iron.udjin
Component: Individual Port(s)Assignee: freebsd-java (Nobody) <java>
Status: Closed Unable to Reproduce    
Severity: Affects Only Me CC: michaelo, yuri
Priority: --- Flags: bugzilla: maintainer-feedback? (java)
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
hs_err_pid57410.log none

Description iron.udjin 2022-08-12 21:47:31 UTC
Created attachment 235871 [details]
hs_err_pid57410.log

OS: 13.1-RELEASE

Trying to compille java/openjdk11 from ports:

gmake[3]: Leaving directory '/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1'

ERROR: Build failed for target 'images' in configuration 'bsd-x86_64-normal-server-release' (exit code 2) 
gmake[3]: Entering directory '/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1'

=== Output from failing command(s) repeated here ===
* For target support_jmods_jdk.naming.ldap.jmod:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000802ccd4e8, pid=57410, tid=740820
#
# JRE version: OpenJDK Runtime Environment (11.0.16+8) (build 11.0.16+8-1)
# Java VM: OpenJDK 64-Bit Server VM (11.0.16+8-1, mixed mode, tiered, compressed oops, serial gc, bsd-amd64)
# Problematic frame:
# V  [libjvm.so+0xecd4e8]  JVM_RaiseSignal+0x3d3888
#
# Core dump will be written. Default location: /usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1/make/jmod.core
#
# An error report file with more information is saved as:
# /usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1/make/hs_err_pid57410.log
#
   ... (rest of output omitted)

* All command lines available in /usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1/build/bsd-x86_64-normal-server-release/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

gmake[3]: Leaving directory '/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1'
gmake[2]: *** [/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1/make/Init.gmk:305: main] Error 2
gmake[2]: Leaving directory '/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1'
gmake[1]: *** [/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1/make/Init.gmk:186: images] Error 2
gmake[1]: Leaving directory '/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1'
===> Compilation failed unexpectedly.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2022-09-11 05:57:35 UTC
Dear iron.udjin@gmail.com,


Is the failure always reproducible or is it intermittent?

Did you try to compile the same code with other Java versions (16, 17)?

On what system version did you observe the failure?


Thank you,
Yuri
Comment 2 iron.udjin 2022-09-11 06:50:08 UTC
(In reply to Yuri Victorovich from comment #1)

It's not reproducible. Currently openjdk11-11.0.16+8.1_1 builds fine on 13.1-RELEASE-p2. We can close this issue.
Comment 3 Michael Osipov freebsd_committer freebsd_triage 2024-01-30 21:22:16 UTC
Closing as per request.