CLion crashed at opening due to JVM crash in macOS Tahoe on M3 Max

Completed

After upgrading my OS to MacOS, my CLion stopped working. 
Crash Reporter Key:  7E712762-E6FE-F146-B57E-AB4039AFFEA8
Incident Identifier: 25CBB456-596B-4D5A-97EA-5DB5A090D08D

Sleep/Wake UUID:       01EFA854-2555-4B7E-8AA3-4C15B8894B15

Time Awake Since Boot: 78000 seconds
Time Since Wake:       2609 seconds

System Integrity Protection: enabled

Triggered by Thread: 1

Exception Type:    EXC_BAD_ACCESS (SIGABRT)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x000000011d010000
Exception Codes:   0x0000000000000002, 0x000000011d010000

Termination Reason:  Namespace SIGNAL, Code 6, Abort trap: 6
Terminating Process: clion [32944]


VM Region Info: 0x11d010000 is in 0x11d010000-0x11d280000;  bytes after start: 0  bytes before end: 2555903
     REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
     VM_ALLOCATE                 10d548000-11d010000    [250.8M] ---/rwx SM=ZER  
--->  VM_ALLOCATE                 11d010000-11d280000    [ 2496K] rwx/rwx SM=ZER  
     VM_ALLOCATE                 11d280000-11d5a0000    [ 3200K] ---/rwx SM=ZER  

Application Specific Information:
abort() called


Thread 0:: main Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib                   0x181b74bb0 semaphore_wait_trap + 8
1   libdispatch.dylib                        0x1819ff490 _dispatch_sema4_wait + 28 (lock.c:139)
2   libdispatch.dylib                        0x1819ffb20 _dispatch_semaphore_wait_slow + 132 (semaphore.c:132)
3   clion                                    0x10251ed98 std::thread::park::hada7fd3068eec817 + 172
4   clion                                    0x10254e95c std::sync::mpmc::context::Context::wait_until::hb326ac5bc6236bb8 + 88
5   clion                                    0x102550578 std::sync::mpmc::list::Channel$LT$T$GT$::recv::_$u7b$$u7b$closure$u7d$$u7d$::h77091dff99732cb0 + 76
6   clion                                    0x10255a4f0 xplat_launcher::main_lib::h6c782f04e7c42fc7 + 6512
7   clion                                    0x1025043f0 std::sys::backtrace::__rust_begin_short_backtrace::hc4f4d0decc7f7219 + 12
8   clion                                    0x1025046b8 main + 700
9   dyld                                     0x181809244 start + 7188 (dyldMain.cpp:1477)

Thread 1 Crashed:
0   libsystem_kernel.dylib                   0x181b7d548 __pthread_kill + 8
1   libsystem_pthread.dylib                  0x181bb78d8 pthread_kill + 296 (pthread.c:1721)
2   libsystem_c.dylib                        0x181abf6c4 abort + 148 (abort.c:122)
3   libjvm.dylib                             0x10890d9f0 os::die() + 12
4   libjvm.dylib                             0x108b5db78 VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long) + 2468
5   libjvm.dylib                             0x108b5d1d4 VMError::report_and_die(Thread*, unsigned int, unsigned char*, void*, void*, char const*, ...) + 72
6   libjvm.dylib                             0x108b5deb0 VMError::report_and_die(Thread*, unsigned int, unsigned char*, void*, void*) + 36
7   libjvm.dylib                             0x108a28564 JVM_handle_bsd_signal + 500
8   libsystem_platform.dylib                 0x181bc1764 _sigtramp + 56
9   libsystem_pthread.dylib                  0x181bb78d8 pthread_kill + 296 (pthread.c:1721)
10  libsystem_c.dylib                        0x181abf6c4 abort + 148 (abort.c:122)
11  libjvm.dylib                             0x10890d9dc os::abort(bool, void*, void const*) + 56
12  libjvm.dylib                             0x108b5dbc0 VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long) + 2540
13  libjvm.dylib                             0x108b5d1d4 VMError::report_and_die(Thread*, unsigned int, unsigned char*, void*, void*, char const*, ...) + 72
14  libjvm.dylib                             0x108b5deb0 VMError::report_and_die(Thread*, unsigned int, unsigned char*, void*, void*) + 36
15  libjvm.dylib                             0x108a28564 JVM_handle_bsd_signal + 500
16  libsystem_platform.dylib                 0x181bc1764 _sigtramp + 56
17  libjvm.dylib                             0x10852ad20 CodeHeap::allocate(unsigned long) + 400
18  libjvm.dylib                             0x10834b5d4 CodeCache::allocate(int, CodeBlobType, bool, CodeBlobType) + 164
19  libjvm.dylib                             0x108342b38 BufferBlob::create(char const*, int) + 240
20  libjvm.dylib                             0x108a85378 initialize_stubs(StubCodeGenerator::StubsKind, int, int, char const*, char const*, char const*) + 156
21  libjvm.dylib                             0x108a85600 initial_stubs_init() + 68
22  libjvm.dylib                             0x10855a7e8 init_globals() + 88
23  libjvm.dylib                             0x108af3eb0 Threads::create_vm(JavaVMInitArgs*, bool*) + 620
24  libjvm.dylib                             0x10861095c JNI_CreateJavaVM + 116
25  clion                                    0x10254b4dc std::sys::backtrace::__rust_begin_short_backtrace::h68813f5fc05da1fc + 2000
26  clion                                    0x1025509ac core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::ha3f38747cf8b64d3 + 228
27  clion                                    0x102543e48 std::sys::pal::unix::thread::Thread::new::thread_start::hd88bc8e95f2ca709 + 52
28  libsystem_pthread.dylib                  0x181bb7c58 _pthread_start + 136 (pthread.c:931)
29  libsystem_pthread.dylib                  0x181bb2c1c thread_start + 8


Thread 1 crashed with ARM Thread State (64-bit):
   x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
   x4: 0x0000000000000001   x5: 0x000000016db04ef8   x6: 0x000000000000005d   x7: 0x000000016db05a38
   x8: 0xa88188a44fc2e9c2   x9: 0xa88188a5227299c2  x10: 0x00000000000007b0  x11: 0x0000000000000009
  x12: 0x000000016db04a70  x13: 0x0000000000000009  x14: 0x0000000000000010  x15: 0xf8fffefffffcc0ff
  x16: 0x0000000000000148  x17: 0x00000001ef5151f8  x18: 0x0000000000000000  x19: 0x0000000000000006
  x20: 0x0000000000000a03  x21: 0x000000016db070e0  x22: 0x0000000108e4e000  x23: 0x0000000000000006
  x24: 0x0000000108ea7b88  x25: 0x0000000102603600  x26: 0x0000000000000000  x27: 0x00000000000007d0
  x28: 0x00000000ffffffff   fp: 0x000000016db056b0   lr: 0x0000000181bb78d8
   sp: 0x000000016db05690   pc: 0x0000000181b7d548 cpsr: 0x40001000
  far: 0x0000000000000000  esr: 0x56000080 (Syscall)

Binary Images:
      0x102500000 -        0x10257bfff com.jetbrains.CLion (2025.2.4) <5bc574a4-7246-3122-8168-69b32a6aa6f0> /Applications/CLion.app/Contents/MacOS/clion
      0x106f28000 -        0x106f3bfff libjli.dylib (*) <95a1d658-25ca-3078-8441-8e08a7771ffa> /Applications/CLion.app/Contents/jbr/Contents/Home/lib/libjli.dylib
      0x1080c8000 -        0x108d07fff libjvm.dylib (*) <fe475574-fbac-364c-b156-f2094487d74b> /Applications/CLion.app/Contents/jbr/Contents/Home/lib/server/libjvm.dylib
      0x106f4c000 -        0x106f4ffff libjimage.dylib (*) <ade74217-835d-3737-890b-165db8d14b4e> /Applications/CLion.app/Contents/jbr/Contents/Home/lib/libjimage.dylib
      0x106fd0000 -        0x106fe3fff libjava.dylib (*) <f3e99192-c631-34f8-ad79-177a4e983675> /Applications/CLion.app/Contents/jbr/Contents/Home/lib/libjava.dylib
      0x107000000 -        0x107017fff libzip.dylib (*) <e254cb3b-da24-3ce2-bbaa-39bb778d2453> /Applications/CLion.app/Contents/jbr/Contents/Home/lib/libzip.dylib
      0x181b74000 -        0x181bb0627 libsystem_kernel.dylib (*) <27cb1ba0-bb18-3451-8519-352396218f9d> /usr/lib/system/libsystem_kernel.dylib
      0x1819fc000 -        0x181a4331f libdispatch.dylib (*) <b7220aba-30c5-3a12-83c2-9e29e0a687e5> /usr/lib/system/libdispatch.dylib
      0x1817eb000 -        0x181889c47 dyld (*) <c52f20e4-cb80-36d7-8072-12b478880fbb> /usr/lib/dyld
              0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
      0x1817bb000 -        0x1817eaf29 libdyld.dylib (*) <a9af698f-f0fa-3c13-baf0-fdb1c81208a5> /usr/lib/system/libdyld.dylib
      0x181bb1000 -        0x181bbdb2b libsystem_pthread.dylib (*) <2b338724-415c-3f0d-84a8-fbe37b50e306> /usr/lib/system/libsystem_pthread.dylib
      0x181a47000 -        0x181ac7dd3 libsystem_c.dylib (*) <21846dee-4950-306c-9c19-1041fffa5a50> /usr/lib/system/libsystem_c.dylib
      0x181bbe000 -        0x181bc6803 libsystem_platform.dylib (*) <dea7ec2f-b067-3dd4-a63a-95b1458bcc4d> /usr/lib/system/libsystem_platform.dylib

External Modification Summary:
 Calls made by other processes targeting this process:
   task_for_pid: 0
   thread_create: 0
   thread_set_state: 0
 Calls made by this process:
   task_for_pid: 0
   thread_create: 0
   thread_set_state: 0
 Calls made by all processes on this machine:
   task_for_pid: 5
   thread_create: 0
   thread_set_state: 2205

VM Region Summary:
ReadOnly portion of Libraries: Total=963.7M resident=0K(0%) swapped_out_or_unallocated=963.7M(100%)
Writable regions: Total=107.6M written=320K(0%) resident=320K(0%) swapped_out=0K(0%) unallocated=107.3M(100%)

                               VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                   32K        1 
MALLOC                            88.9M       13 
MALLOC guard page                 3536K        4 
STACK GUARD                         48K        1 
Stack                             10.0M        2 
Stack Guard                       56.0M        2 
VM_ALLOCATE                      516.1M       16 
VM_ALLOCATE (reserved)             272K        3         reserved VM address space (unallocated)
__AUTH                            1731K      193 
__AUTH_CONST                      31.9M      403 
__CTF                               824        1 
__DATA                            6688K      363 
__DATA_CONST                      22.3M      409 
__DATA_DIRTY                      1999K      341 
__FONT_DATA                        2352        1 
__LINKEDIT                       594.2M        7 
__OBJC_RO                         78.8M        1 
__OBJC_RW                         2593K        1 
__TEXT                           369.5M      425 
__TPRO_CONST                       128K        2 
dyld private memory                160K        4 
mapped file                       64.1M        3 
page table in kernel               320K        1 
shared memory                       96K        3 
===========                     =======  ======= 
TOTAL                              1.8G     2201 
TOTAL, minus reserved VM space     1.8G     2201 


Here is the java_error_in_clion.log file 

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x000000010852ad34, pid=32944, tid=2563
#
# JRE version:  (21.0.8+9) (build )
# Java VM: OpenJDK 64-Bit Server VM (21.0.8+9-b1038.73, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# V  [libjvm.dylib+0x462d34]  CodeHeap::allocate(unsigned long)+0x1a4
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
#
I am trying to switch to to different JVM through 
1. export CLION_JDK
2. modify clion.vmoptions file under ~/Library/Application Support/JetBrains/CLion2025.2/clion.vmoptions

Both of them doesn't work. Can you please help me?

0
3 comments

Hello!

It seems that you faced JBR-6473. Is System Integrity Protection disabled on your side? If so, please enable it.

Also, feel free to comment or upvote JBR-6473 to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

0

hi Anna, as you can see in my crash report 

System Integrity Protection: enabled

Triggered by Thread: 1

I tried to enable it again and the crash still persisted. 

0

I see that my colleague asked you to create a new issue in the tracker. Please do that, and my colleagues will try to assist you.

0

Please sign in to leave a comment.