Skip to content

JBR 21.0.5 on macOS 15 causes SIGSEGV in AWT initialization (objc_opt_isKindOfClass) #80

Open
@loganoxo

Description

@loganoxo
  • The application fails to start on macOS 15 due to JBR incompatibility.

  • When running jclasslib bundled with JetBrains Runtime (JBR) 21.0.5 on macOS 15.5 (Sonoma) Apple Silicon, the app crashes during AWT initialization. The crash is caused by a native SIGSEGV inside Objective-C runtime objc_opt_isKindOfClass while calling [SystemHotkey setUp], which relates to macOS symbolic hotkeys cache.

  • This suggests a compatibility issue with the way JBR 21.0.5 handles macOS 15 symbolic hotkeys during Toolkit initialization.

  • Please consider upgrading the bundled JBR to version 21.0.6-b895.109, which is the latest version used by IntelliJ IDEA and works well on macOS 15.

Process:               JavaApplicationStub [21532]
Path:                  /Applications/jclasslib bytecode viewer.app/Contents/MacOS/JavaApplicationStub
Identifier:            org.jclasslib.browser
Version:               6.1 (20250110160303)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2025-06-07 19:46:56.6960 +0800
OS Version:            macOS 15.5 (24F74)


Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000024
Exception Codes:       0x0000000000000001, 0x0000000000000024

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   JavaApplicationStub [21532]

VM Region Info: 0x24 is not in any region.  Bytes before following region: 4376199132
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      104d78000-104d84000    [   48K] r-x/r-x SM=COW  /Applications/jclasslib bytecode viewer.app/Contents/MacOS/JavaApplicationStub

Application Specific Information:
abort() called


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x196b75388 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x196bae88c pthread_kill + 296
2   libsystem_c.dylib             	       0x196ab7c60 abort + 124
3   libjvm.dylib                  	       0x109d703a0 os::abort(bool, void*, void const*) + 56
4   libjvm.dylib                  	       0x109fb2864 VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long) + 2364
5   libjvm.dylib                  	       0x109fb1f28 VMError::report_and_die(Thread*, unsigned int, unsigned char*, void*, void*, char const*, ...) + 72
6   libjvm.dylib                  	       0x109fb2ba0 VMError::report_and_die(Thread*, unsigned int, unsigned char*, void*, void*) + 36
7   libjvm.dylib                  	       0x109e8aefc JVM_handle_bsd_signal + 500
8   libsystem_platform.dylib      	       0x196be8624 _sigtramp + 56
9   libawt_lwawt.dylib            	       0x13adcc640 updateAppleSymbolicHotkeysCache + 356
10  libawt_lwawt.dylib            	       0x13adc9254 +[SystemHotkey setUp] + 40
11  libawt_lwawt.dylib            	       0x13ad9d67c setUpAWTAppKit + 228
12  libawt_lwawt.dylib            	       0x13ad9d468 +[AWTStarter starter:headless:] + 244
13  ???                           	    0x60000352c2d0 ???
14  ???                           	               0x0 ???
15  ???                           	    0x7d9121002e88 ???

Thread 1:
0   libsystem_pthread.dylib       	       0x196ba9b6c start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	       0x196ba9b6c start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	       0x196ba9b6c start_wqthread + 0

Thread 4:
0   libsystem_kernel.dylib        	       0x196b6e9b8 __ulock_wait + 8
1   libsystem_pthread.dylib       	       0x196bb10b0 _pthread_join + 608
2   libjli.dylib                  	       0x104ec556c CallJavaMainInNewThread + 184
3   libjli.dylib                  	       0x104ec41fc ContinueInNewThread + 148
4   libjli.dylib                  	       0x104ec1d04 JLI_Launch + 5620
5   JavaApplicationStub           	       0x104d811cc launcher_main + 164
6   JavaApplicationStub           	       0x104d81448 main + 36
7   libjli.dylib                  	       0x104ec5e48 apple_main + 88
8   libsystem_pthread.dylib       	       0x196baec0c _pthread_start + 136
9   libsystem_pthread.dylib       	       0x196ba9b80 thread_start + 8

Thread 5:
0   libsystem_kernel.dylib        	       0x196b703cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x196baf0e0 _pthread_cond_wait + 984
2   libawt_lwawt.dylib            	       0x13ad9d2c4 +[AWTStarter start:] + 400
3   libawt_lwawt.dylib            	       0x13ad9eecc Java_sun_lwawt_macosx_LWCToolkit_initAppkit + 248
4   ???                           	       0x118760a88 ???
5   ???                           	       0x11875d17c ???
6   ???                           	       0x11875cf70 ???
7   ???                           	       0x11875d420 ???
8   ???                           	       0x11875cf70 ???
9   ???                           	       0x11875cf70 ???
10  ???                           	       0x11875d17c ???
11  ???                           	       0x11875cf70 ???
12  ???                           	       0x11875cf70 ???
13  ???                           	       0x11875cf70 ???
14  ???                           	       0x11875d420 ???
15  ???                           	       0x11875cf70 ???
16  ???                           	       0x11875cf70 ???
17  ???                           	       0x11875cf70 ???
18  ???                           	       0x11875d17c ???
19  ???                           	       0x11875d17c ???
20  ???                           	       0x11875cf70 ???
21  ???                           	       0x11875cf70 ???
22  ???                           	       0x11875d17c ???
23  ???                           	       0x11875d17c ???
24  ???                           	       0x11875d17c ???
25  ???                           	       0x11875cf70 ???
26  ???                           	       0x11875cf70 ???
27  ???                           	       0x11875cf70 ???
28  ???                           	       0x11875d420 ???
29  ???                           	       0x11875cf70 ???
30  ???                           	       0x11875d17c ???
31  ???                           	       0x118758140 ???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions