https://bugs.kde.org/show_bug.cgi?id=521065

            Bug ID: 521065
           Summary: MacOS 26.4: Kate exits with -1 on launch
    Classification: Applications
           Product: kate
      Version First 26.04.2
       Reported In:
          Platform: Homebrew (macOS)
                OS: macOS
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
On MacOS 26.4, Kate exists with -1 during startup, before showing any window.

This does not reproduce on MacOS 26.3.1 and 15.7.8
Unfortunately I cannot verify if it's same on current MacOS 26.5 as I'm bound
by company MDM to 26.4 at the moment.

STEPS TO REPRODUCE
1. `brew install kate` (or download DMG from cdn.kde.org)
2. Try to launch `/Applications/Kate.app/Contents/MacOS/kate`

OBSERVED RESULT
```
% /Applications/Kate.app/Contents/MacOS/kate
SingleApplication: Unable to create block.
SingleApplication:  QSharedMemory::KeyError "QSharedMemory::attach (shm_open):
bad name"
% echo $?
1
```

EXPECTED RESULT
Kate opens.

SOFTWARE/OS VERSIONS
% /Applications/Kate.app/Contents/MacOS/kate --version
kate 26.04.2

% brew info kate | head -1
==> kate (Kate): 26.04,11769

% sw_vers
ProductName:            macOS
ProductVersion:         26.4
BuildVersion:           25E246

% uname -a
Darwin <...> 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 19 19:33:25 PDT 2026;
root:xnu-12377.101.15~1/RELEASE_ARM64_T6041 arm64

ADDITIONAL INFORMATION
LLDB backtrace (obviously not very useful since binaries is stripped but
anyway):

(lldb) run
Process 98340 launched: '/Applications/Kate.app/Contents/MacOS/kate' (arm64)
2026-06-04 14:56:22.952325-0300 kate[98340:1640085] SingleApplication: Unable
to create block.
2026-06-04 14:56:22.952348-0300 kate[98340:1640085] SingleApplication: 
QSharedMemory::KeyError "QSharedMemory::attach (shm_open): bad name"
Process 98340 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.7
    frame #0: 0x000000018991dc1c libsystem_c.dylib`exit
libsystem_c.dylib`exit:
->  0x18991dc1c <+0>:  pacibsp
    0x18991dc20 <+4>:  stp    x20, x19, [sp, #-0x20]!
    0x18991dc24 <+8>:  stp    x29, x30, [sp, #0x10]
    0x18991dc28 <+12>: add    x29, sp, #0x10
Target 0: (kate) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.7
  * frame #0: 0x000000018991dc1c libsystem_c.dylib`exit
    frame #1: 0x0000000100012c38 kate`___lldb_unnamed_symbol_100012ad8 + 352
    frame #2: 0x0000000100012ca0 kate`___lldb_unnamed_symbol_100012c38 + 104
    frame #3: 0x000000010000bc70 kate`___lldb_unnamed_symbol_10000b590 + 1760
    frame #4: 0x0000000100010af4 kate`___lldb_unnamed_symbol_10000f15c + 6552
    frame #5: 0x00000001896abda4 dyld`start + 6992
(lldb) thread backtrace all
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.7
  * frame #0: 0x000000018991dc1c libsystem_c.dylib`exit
    frame #1: 0x0000000100012c38 kate`___lldb_unnamed_symbol_100012ad8 + 352
    frame #2: 0x0000000100012ca0 kate`___lldb_unnamed_symbol_100012c38 + 104
    frame #3: 0x000000010000bc70 kate`___lldb_unnamed_symbol_10000b590 + 1760
    frame #4: 0x0000000100010af4 kate`___lldb_unnamed_symbol_10000f15c + 6552
    frame #5: 0x00000001896abda4 dyld`start + 6992
  thread #2
    frame #0: 0x0000000189a259f0 libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #3
    frame #0: 0x0000000189a259f0 libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #4
    frame #0: 0x0000000189a259f0 libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #5
    frame #0: 0x0000000189a259f0 libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #6, name = 'com.apple.NSEventThread'
    frame #0: 0x0000000189a23c34 libsystem_kernel.dylib`mach_msg2_trap + 8
    frame #1: 0x0000000189a36574 libsystem_kernel.dylib`mach_msg2_internal + 76
    frame #2: 0x0000000189a2c9c0 libsystem_kernel.dylib`mach_msg_overwrite +
480
    frame #3: 0x0000000189a23fc0 libsystem_kernel.dylib`mach_msg + 24
    frame #4: 0x0000000189b24d68 CoreFoundation`__CFRunLoopServiceMachPort +
160
    frame #5: 0x0000000189b23654 CoreFoundation`__CFRunLoopRun + 1188
    frame #6: 0x0000000189bf5be0
CoreFoundation`_CFRunLoopRunSpecificWithOptions + 532
    frame #7: 0x000000018e070c64 AppKit`_NSEventThread + 184
    frame #8: 0x0000000189a67c58 libsystem_pthread.dylib`_pthread_start + 136
(lldb) c
Process 98340 resuming
Process 98340 exited with status = 1 (0x00000001)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to