Konloch / Konloch/bytecode-viewer

Crash when try open java class

Open
#503 3 comments 0 reactions 0 assignees View on GitHub
Bug Discussion MacOS
Dominant language
Java
Stars
15.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

```
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000018c9edc20, pid=17791, tid=259
#
# JRE version: OpenJDK Runtime Environment (21.0.1+12) (build 21.0.1+12-29)
# Java VM: OpenJDK 64-Bit Server VM (21.0.1+12-29, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# C [libobjc.A.dylib+0x9c20] objc_msgSend+0x20
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/krutskih/hs_err_pid17791.log
[47.674s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
[1] 17791 abort java -jar ~/soft/Bytecode-Viewer-2.12.jar
```
[hs_err_pid17791.log](https://github.com/user-attachments/files/16478962/hs_err_pid17791.log)
[hs_err_pid83698.log](https://github.com/user-attachments/files/16478963/hs_err_pid83698.log)

Contributor guide

Open the contributing guide

Research direction

Start by reading hs_err_pid17791.log and hs_err_pid83698.log, then reproduce the crash with `java -jar ~/soft/Bytecode-Viewer-2.12.jar` on the reported OpenJDK 21 macOS environment while opening a Java class. Trace the native `libobjc.A.dylib` crash and identify its trigger; done means opening the affected class no longer causes the JVM to abort.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, macos
Domain
desktop, reverse-engineering
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.