Repository: electron
Issue: [Bug]: macOS application crashes if the name contains NFD-normalized characters
Labels: platform/macOS,bug :beetle:,status/reviewed,has-repro-repo,27-x-y,28-x-y,29-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

27.1.2

### What operating system are you using?

macOS

### Operating System Version

macOS 14.1.1 (23B81)

### What arch are you using?

arm64 (including Apple Silicon)

### Last Known Working Electron version

26.6.2

### Expected Behavior

Application starts normally, even when the name contains diacritics or Hangul, which have different NFC and NFD Unicode normalization form.

### Actual Behavior

Application crashes when starting:
<details>
<summary>Translated Report</summary>

```
------------------
Translated Report
------------------

Process:               Tést 테스트 [49087]
Path:                  /Users/USER/*/1.app/Contents/MacOS/Tést 테스트
Identifier:            test
Version:               1.0.0 (1.0.0)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               503

Date/Time:             2023-12-05 19:46:28.3416 +0900
OS Version:            macOS 14.1.1 (23B81)
Report Version:        12
Anonymous UUID:        95521792-728F-B515-79EC-F5C435192A5C

Sleep/Wake UUID:       BD122786-F566-42B6-BA73-115AA88863B9

Time Awake Since Boot: 70000 seconds
Time Since Wake:       979 seconds

System Integrity Protection: enabled

Crashed Thread:        0  CrBrowserMain  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x000000010dcf57b0

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [49087]

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0   Electron Framework            	       0x10dcf57b0 v8::internal::compiler::SLVerifierHintParametersOf(v8::internal::compiler::Operator const*) + 12624
1   Electron Framework            	       0x1100054e4 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 5546900
2   Electron Framework            	       0x110004188 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 5541944
3   Electron Framework            	       0x11000407c v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 5541676
4   Electron Framework            	       0x10fff6280 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 5484848
5   Electron Framework            	       0x10fff6b0c v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 5487036
6   Electron Framework            	       0x10fff6a24 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 5486804
7   Electron Framework            	       0x10fe73918 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 3901384
8   Electron Framework            	       0x10fe73534 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 3900388
9   Electron Framework            	       0x11039118c v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 9265212
10  Electron Framework            	       0x10fe73220 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 3899600
11  Electron Framework            	       0x10fe75858 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 3909384
12  Electron Framework            	       0x10fe71cf4 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 3894180
13  Electron Framework            	       0x10df0ead4 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 13756
14  Electron Framework            	       0x10df0f9a8 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 17552
15  Electron Framework            	       0x10df0f7f8 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 17120
16  Electron Framework            	       0x10df0e3c0 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 11944
17  Electron Framework            	       0x10df0e4d0 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 12216
18  Electron Framework            	       0x10dc183cc ElectronMain + 128
19  dyld                          	       0x18ed010e0 start + 2360

Thread 1:
0   libsystem_pthread.dylib       	       0x18f077e28 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	       0x18f077e28 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	       0x18f077e28 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib       	       0x18f077e28 start_wqthread + 0

Thread 5:: ThreadPoolServiceThread
0   libsystem_kernel.dylib        	       0x18f048808 kevent64 + 8
1   Electron Framework            	       0x110d10164 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19222548
2   Electron Framework            	       0x110d0f918 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19220424
3   Electron Framework            	       0x110cc2d48 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18906104
4   Electron Framework            	       0x110c8f058 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18693896
5   Electron Framework            	       0x110ce1628 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19031256
6   Electron Framework            	       0x110ccb050 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18939648
7   Electron Framework            	       0x110ce17c0 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19031664
8   Electron Framework            	       0x110cf4574 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19108900
9   libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
10  libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 6:: ThreadPoolForegroundWorker
0   libsystem_kernel.dylib        	       0x18f03c8b4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x18f04ed30 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18f0454f0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x18f03cc38 mach_msg + 24
4   Electron Framework            	       0x110d099b8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19196008
5   Electron Framework            	       0x110ca7ce8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18795416
6   Electron Framework            	       0x110cd9cf4 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19000228
7   Electron Framework            	       0x110cda63c v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19002604
8   Electron Framework            	       0x110cda428 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19002072
9   Electron Framework            	       0x110cda300 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19001776
10  Electron Framework            	       0x110cf4574 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19108900
11  libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
12  libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 7:: ThreadPoolBackgroundWorker
0   libsystem_kernel.dylib        	       0x18f03c8b4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x18f04ed30 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18f0454f0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x18f03cc38 mach_msg + 24
4   Electron Framework            	       0x110d099b8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19196008
5   Electron Framework            	       0x110ca7ce8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18795416
6   Electron Framework            	       0x110cd9cf4 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19000228
7   Electron Framework            	       0x110cda5a8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19002456
8   Electron Framework            	       0x110cda3a4 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19001940
9   Electron Framework            	       0x110cda334 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19001828
10  Electron Framework            	       0x110cf4574 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19108900
11  libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
12  libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 8:: ThreadPoolForegroundWorker
0   libsystem_kernel.dylib        	       0x18f03c8b4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x18f04ed30 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18f0454f0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x18f03cc38 mach_msg + 24
4   Electron Framework            	       0x110d099b8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19196008
5   Electron Framework            	       0x110ca7ce8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18795416
6   Electron Framework            	       0x110cd9cf4 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19000228
7   Electron Framework            	       0x110cda63c v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19002604
8   Electron Framework            	       0x110cda428 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19002072
9   Electron Framework            	       0x110cda300 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19001776
10  Electron Framework            	       0x110cf4574 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19108900
11  libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
12  libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 9:: Chrome_IOThread
0   libsystem_kernel.dylib        	       0x18f048808 kevent64 + 8
1   Electron Framework            	       0x110d10164 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19222548
2   Electron Framework            	       0x110d0f918 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19220424
3   Electron Framework            	       0x110cc2d48 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18906104
4   Electron Framework            	       0x110c8f058 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18693896
5   Electron Framework            	       0x110ce1628 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19031256
6   Electron Framework            	       0x10fe768c4 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 3913588
7   Electron Framework            	       0x110ce17c0 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19031664
8   Electron Framework            	       0x110cf4574 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19108900
9   libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
10  libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 10:: MemoryInfra
0   libsystem_kernel.dylib        	       0x18f03c8b4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x18f04ed30 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18f0454f0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x18f03cc38 mach_msg + 24
4   Electron Framework            	       0x110d099b8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19196008
5   Electron Framework            	       0x110ca7be0 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18795152
6   Electron Framework            	       0x110c69954 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18540548
7   Electron Framework            	       0x110cc2d48 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18906104
8   Electron Framework            	       0x110c8f058 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18693896
9   Electron Framework            	       0x110ce1628 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19031256
10  Electron Framework            	       0x110ce17c0 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19031664
11  Electron Framework            	       0x110cf4574 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19108900
12  libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
13  libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 11:
0   libsystem_kernel.dylib        	       0x18f042a00 kevent + 8
1   Electron Framework            	       0x10dc17e14 uv_free_interface_addresses + 2204
2   Electron Framework            	       0x10dc06fcc uv_run + 272
3   Electron Framework            	       0x1144c12bc node::OnFatalError(char const*, char const*) + 447860
4   libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
5   libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 12:
0   libsystem_kernel.dylib        	       0x18f0400ac __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18f07d5fc _pthread_cond_wait + 1228
2   Electron Framework            	       0x10dc12a70 uv_cond_wait + 12
3   Electron Framework            	       0x1144bf16c node::OnFatalError(char const*, char const*) + 439332
4   libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
5   libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 13:
0   libsystem_kernel.dylib        	       0x18f0400ac __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18f07d5fc _pthread_cond_wait + 1228
2   Electron Framework            	       0x10dc12a70 uv_cond_wait + 12
3   Electron Framework            	       0x1144bf16c node::OnFatalError(char const*, char const*) + 439332
4   libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
5   libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 14:
0   libsystem_kernel.dylib        	       0x18f0400ac __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18f07d5fc _pthread_cond_wait + 1228
2   Electron Framework            	       0x10dc12a70 uv_cond_wait + 12
3   Electron Framework            	       0x1144bf16c node::OnFatalError(char const*, char const*) + 439332
4   libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
5   libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 15:
0   libsystem_kernel.dylib        	       0x18f03c830 semaphore_wait_trap + 8
1   Electron Framework            	       0x10dc13088 uv_sem_wait + 24
2   Electron Framework            	       0x11454f128 node::SetTracingController(v8::TracingController*) + 71952
3   libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
4   libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 16:: NetworkConfigWatcher
0   libsystem_kernel.dylib        	       0x18f03c8b4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x18f04ed30 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18f0454f0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x18f03cc38 mach_msg + 24
4   CoreFoundation                	       0x18f159ea4 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x18f15876c __CFRunLoopRun + 1208
6   CoreFoundation                	       0x18f157c5c CFRunLoopRunSpecific + 608
7   Foundation                    	       0x190260a78 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8   Electron Framework            	       0x110d06b94 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19184196
9   Electron Framework            	       0x110d04e18 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19176648
10  Electron Framework            	       0x110cc2d48 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18906104
11  Electron Framework            	       0x110c8f058 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18693896
12  Electron Framework            	       0x110ce1628 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19031256
13  Electron Framework            	       0x110ce17c0 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19031664
14  Electron Framework            	       0x110cf4574 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19108900
15  libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
16  libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 17:: CrShutdownDetector
0   libsystem_kernel.dylib        	       0x18f03d474 read + 8
1   Electron Framework            	       0x10dddd8e4 node::FreeArrayBufferAllocator(node::ArrayBufferAllocator*) + 264340
2   Electron Framework            	       0x110cf4574 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19108900
3   libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
4   libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 18:: NetworkConfigWatcher
0   libsystem_kernel.dylib        	       0x18f03c8b4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x18f04ed30 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18f0454f0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x18f03cc38 mach_msg + 24
4   CoreFoundation                	       0x18f159ea4 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x18f15876c __CFRunLoopRun + 1208
6   CoreFoundation                	       0x18f157c5c CFRunLoopRunSpecific + 608
7   Foundation                    	       0x190260a78 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8   Electron Framework            	       0x110d06b94 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19184196
9   Electron Framework            	       0x110d04e18 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19176648
10  Electron Framework            	       0x110cc2d48 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18906104
11  Electron Framework            	       0x110c8f058 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18693896
12  Electron Framework            	       0x110ce1628 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19031256
13  Electron Framework            	       0x110ce17c0 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19031664
14  Electron Framework            	       0x110cf4574 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19108900
15  libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
16  libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 19:: ThreadPoolForegroundWorker
0   libsystem_kernel.dylib        	       0x18f03c8b4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x18f04ed30 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18f0454f0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x18f03cc38 mach_msg + 24
4   Electron Framework            	       0x110d099b8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19196008
5   Electron Framework            	       0x110ca7ce8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18795416
6   Electron Framework            	       0x110cd9cf4 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19000228
7   Electron Framework            	       0x110cda63c v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19002604
8   Electron Framework            	       0x110cda428 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19002072
9   Electron Framework            	       0x110cda300 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19001776
10  Electron Framework            	       0x110cf4574 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19108900
11  libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
12  libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8

Thread 20:: ThreadPoolForegroundWorker
0   libsystem_kernel.dylib        	       0x18f03c8b4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x18f04ed30 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18f0454f0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x18f03cc38 mach_msg + 24
4   Electron Framework            	       0x110d099b8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19196008
5   Electron Framework            	       0x110ca7ce8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 18795416
6   Electron Framework            	       0x110cd9cf4 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19000228
7   Electron Framework            	       0x110cda5a8 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19002456
8   Electron Framework            	       0x110cda428 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19002072
9   Electron Framework            	       0x110cda300 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19001776
10  Electron Framework            	       0x110cf4574 v8::internal::SetupIsolateDelegate::SetupBuiltins(v8::internal::Isolate*, bool) + 19108900
11  libsystem_pthread.dylib       	       0x18f07d034 _pthread_start + 136
12  libsystem_pthread.dylib       	       0x18f077e3c thread_start + 8


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x000000016b26a478   x2: 0x00000000000000a0   x3: 0x0000000000000025
    x4: 0x0000000000008040   x5: 0x0000000000000003   x6: 0x0000000000000002   x7: 0x00000001149ad99b
    x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x00000000ffffff80  x11: 0x0000000000000080
   x12: 0x0000000000000080  x13: 0x0000000000000024  x14: 0x0000000134e00000  x15: 0x0000000080000000
   x16: 0xd796000104ffc080  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000134e68f70
   x20: 0x0000000134f49310  x21: 0x0000000000000002  x22: 0xaaaaaaaaaaaaaaaa  x23: 0x0000000000000004
   x24: 0x00000001149310ea  x25: 0x000000000000008c  x26: 0x0000000000000000  x27: 0x0000000115fbd000
   x28: 0x0000000000000000   fp: 0x000000016b26a500   lr: 0x000000010dcf521c
    sp: 0x000000016b26a3f0   pc: 0x000000010dcf57b0 cpsr: 0x20001000
   far: 0x0000000000000000  esr: 0xf2000000 (Breakpoint) brk 0

Binary Images:
       0x10d9c4000 -        0x1159fffff com.github.Electron.framework (*) <4c4c443f-5555-3144-a140-adaad3b02552> /Users/USER/*/1.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework
       0x105010000 -        0x105023fff com.github.Squirrel (1.0) <4c4c4477-5555-3144-a161-64d2b1a2f1a2> /Users/USER/*/1.app/Contents/Frameworks/Squirrel.framework/Versions/A/Squirrel
       0x10508c000 -        0x1050cbfff com.electron.reactive (3.1.0) <4c4c44bd-5555-3144-a1a6-cafd28c57fdc> /Users/USER/*/1.app/Contents/Frameworks/ReactiveObjC.framework/Versions/A/ReactiveObjC
       0x105030000 -        0x10503bfff org.mantle.Mantle (1.0) <4c4c4482-5555-3144-a18d-d95328e32b29> /Users/USER/*/1.app/Contents/Frameworks/Mantle.framework/Versions/A/Mantle
       0x105314000 -        0x1054f7fff libffmpeg.dylib (*) <4c4c4463-5555-3144-a1c3-0d1515be9533> /Users/USER/*/1.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib
       0x104b94000 -        0x104b97fff test (1.0.0) <4c4c4421-5555-3144-a1e7-9f51a19b922e> /Users/USER/*/1.app/Contents/MacOS/Tést 테스트
       0x18ecfb000 -        0x18ed8f317 dyld (*) <ec7a3ba0-f9bf-3ab8-a0f4-8622e5606b20> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x18f076000 -        0x18f082ff3 libsystem_pthread.dylib (*) <daf95373-5de6-39a1-a6ce-d87f3f0629cc> /usr/lib/system/libsystem_pthread.dylib
       0x18f03b000 -        0x18f075fef libsystem_kernel.dylib (*) <b7751381-1442-30b5-91b9-ad7be461bebe> /usr/lib/system/libsystem_kernel.dylib
       0x18f0dc000 -        0x18f5b3fff com.apple.CoreFoundation (6.9) <9f046e36-7286-3a6e-a280-699d6e47cfaf> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x190206000 -        0x190e53fff com.apple.Foundation (6.9) <2126fd9a-52ce-3eb2-8640-b57535e073b8> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation

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: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.8G resident=0K(0%) swapped_out_or_unallocated=1.8G(100%)
Writable regions: Total=1.3G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.3G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
ColorSync                          464K       23 
CoreGraphics                        16K        1 
Dispatch continuations            80.0M        1 
Kernel Alloc Once                   32K        1 
MALLOC                           835.3M       37 
MALLOC guard page                  192K       12 
Memory Tag 253                    32.0G        1 
Memory Tag 255                     1.1T       59 
Memory Tag 255 (reserved)           64K        1         reserved VM address space (unallocated)
STACK GUARD                       56.3M       21 
Stack                            122.5M       21 
VM_ALLOCATE                         96K        3 
__AUTH                            3143K      527 
__AUTH_CONST                      39.0M      780 
__CTF                               824        1 
__DATA                            20.0M      774 
__DATA_CONST                      44.7M      794 
__DATA_DIRTY                      2854K      314 
__FONT_DATA                          4K        1 
__INFO_FILTER                         8        1 
__LINKEDIT                       890.3M        7 
__OBJC_RO                         70.8M        1 
__OBJC_RW                         2156K        1 
__TEXT                           935.8M      811 
dyld private memory                272K        2 
mapped file                      162.8M       18 
shared memory                     1360K       13 
===========                     =======  ======= 
TOTAL                              1.1T     4227 
TOTAL, minus reserved VM space     1.1T     4227 


Model: MacBookPro18,3, BootROM 10151.41.12, proc 10:8:2 processors, 32 GB, SMC 
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Sep  1 2023 19:46:07 version 20.10.1073.3.8.7.165 FWID 01-b66346c5
AirPort: 
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: YubiKey OTP+FIDO+CCID
USB Device: USB31Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
```
</details>

### Testcase Gist URL

https://github.com/jebibot/electron-test

### Additional Information

Also reproducible on `27.0.0-beta.1` and `28.0.0`.

Please find attached the minidump from crashpad: [9f61583f-7447-4b44-9ad7-596b696253b1.dmp](https://github.com/electron/electron/files/13573012/9f61583f-7447-4b44-9ad7-596b696253b1.dmp).