Bug 267121 - java/openjdk11: crash SIGSEGV (0xb) at pc=0x000000081359c140, pid=66614, tid=973593
Summary: java/openjdk11: crash SIGSEGV (0xb) at pc=0x000000081359c140, pid=66614, tid=...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-java (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2022-10-16 12:44 UTC by Martin Filla
Modified: 2022-10-16 16:12 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (java)


Attachments
idea.log (895.92 KB, text/plain)
2022-10-16 12:44 UTC, Martin Filla
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Filla 2022-10-16 12:44:10 UTC
Created attachment 237377 [details]
idea.log

Hi,
i tried run android-studio for linux with FreeBSD java. Here is bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267093

pkg info openjdk11
openjdk11-11.0.16+8.1_2
Name           : openjdk11
Version        : 11.0.16+8.1_2
Installed on   : Sun Oct 16 14:29:59 2022 CEST
Origin         : java/openjdk11
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : java devel
Licenses       : GPLv2
Maintainer     : java@FreeBSD.org
WWW            : https://openjdk.java.net/
Comment        : Java Development Kit 11


Process command line: /compat/linux/android-studio/jre/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/maxfx/AndroidStudioProjects/MyApplication/gradle/wrapper/dists/gradle-7.0.2-bin/857tjihv64xamwrf0h14cai3r/gradle-7.0.2/wrapper/dists/gradle-7.0.2-bin/857tjihv64xamwrf0h14cai3r/gradle-7.0.2/lib/gradle-launcher-7.0.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.0.2
Please read the following process output to find out more:
-----------------------
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000081359c140, pid=66614, tid=973593
#
# JRE version: OpenJDK Runtime Environment (11.0.10) (build 11.0.10+0-b96-7249189)
# Java VM: OpenJDK 64-Bit Server VM (11.0.10+0-b96-7249189, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# J 90 c2 java.lang.String.hashCode()I java.base@11.0.10 (49 bytes) @ 0x000000081359c140 [0x000000081359bfa0+0x00000000000001a0]
#
# Core dump will be written. Default location: core.66614 (may not exist)
#
# An error report file with more information is saved as:
# /usr/home/maxfx/AndroidStudioProjects/MyApplication/gradle/wrapper/dists/gradle-7.0.2-bin/857tjihv64xamwrf0h14cai3r/gradle-7.0.2/daemon/7.0.2/hs_err_pid66614.log
Compiled method (c2)     924  690       4       java.util.HashMap::get (23 bytes)
 total in heap  [0x00000008135cb310,0x00000008135cb930] = 1568
 relocation     [0x00000008135cb488,0x00000008135cb4b0] = 40
 main code      [0x00000008135cb4c0,0x00000008135cb720] = 608
 stub code      [0x00000008135cb720,0x00000008135cb738] = 24
 metadata       [0x00000008135cb738,0x00000008135cb758] = 32
 scopes data    [0x00000008135cb758,0x00000008135cb830] = 216
 scopes pcs     [0x00000008135cb830,0x00000008135cb8d0] = 160
 dependencies   [0x00000008135cb8d0,0x00000008135cb8d8] = 8
 handler table  [0x00000008135cb8d8,0x00000008135cb920] = 72
 nul chk table  [0x00000008135cb920,0x00000008135cb930] = 16
Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
Comment 1 Ronald Klop 2022-10-16 13:42:20 UTC
Your process command line in the dump-info is different then where java/openjdk11 is installed:
/compat/linux/android-studio/jre/bin/java

And the version of your "pkg info openjdk11": 11.0.16 is different then the version in the error: 11.0.10.

I doubt the crash is from java/openjdk11. I think it is an embedded (Linux) java in android-studio.
Comment 2 Martin Filla 2022-10-16 16:12:01 UTC
(In reply to Ronald Klop from comment #1)
The problem is not implemented syscalls maybe

linux: jid 0 pid 27328 (clang-tidy): syscall rseq not implemented
linux: jid 0 pid 27460 (clang-tidy): syscall rseq not implemented
linux: jid 0 pid 27461 (clang-tidy): syscall rseq not implemented
linux: jid 0 pid 32080 (clang-tidy): syscall rseq not implemented
linux: jid 0 pid 32081 (clang-tidy): syscall rseq not implemented
linux: jid 0 pid 32093 (clang-tidy): syscall rseq not implemented
linux: jid 0 pid 32094 (clang-tidy): syscall rseq not implemented
linux: jid 0 pid 32095 (java): syscall rseq not implemented
linux: jid 0 pid 32095 (java): syscall clone3 not implemented
linux: jid 0 pid 32095 (Sweeper thread): syscall faccessat2 not implemented
linux: jid 0 pid 32096 (java): syscall rseq not implemented
linux: jid 0 pid 32096 (java): syscall clone3 not implemented
pid 32096 (GC Thread#2), jid 0, uid 1001: exited on signal 6 (core dumped)