Skip to content

Crash on cold launch via "Pair with TablePro" from Raycast extension (SIGSEGV, freed executor in Swift Concurrency) #2930

Closed

Description

@siennap1981

Summary

TablePro crashes with SIGSEGV every time it is launched cold via the "Pair with TablePro" action from the TablePro Raycast extension (tablepro://integrations/pair?... deep link). macOS shows "TablePro quit unexpectedly" and the pairing never completes.

Environment

  • TablePro 0.74.0 (build 130, bundle com.TablePro)
  • macOS 26.6.2 (25G83), Apple Silicon (arm64)
  • Reproduced 6 consecutive times within one minute — every relaunch crashes

Reproduction

  1. Make sure TablePro is not running.
  2. From the TablePro Raycast extension, run "Pair with TablePro".
  3. TablePro launches, then crashes before the pairing approval sheet appears.

Crash analysis

EXC_BAD_ACCESS (SIGSEGV, KERN_INVALID_ADDRESS at 0x10) on the main thread. Address 0x10 (null + 16) is a classic dereference of a freed / deallocated object.

Faulting stack (main thread):

lookUpImpOrForward                      libobjc.A.dylib      ← CRASH (freed isa read)
_objc_msgSend_uncached                  libobjc.A.dylib
swift_getObjectType                     libswiftCore.dylib
swift_task_isMainExecutorImpl           libswift_Concurrency.dylib
SerialExecutorRef::isMainExecutor()     libswift_Concurrency.dylib
swift_task_isCurrentExecutorWithFlagsImpl  libswift_Concurrency.dylib
TablePro (0xF7ADF0)
-[NSToolbarItemGroup validate]          AppKit
-[NSToolbar validateVisibleItems]       AppKit
__CFRunLoopDoTimer (delayed validation) CoreFoundation

Two distinct entry points, same underlying executor use-after-free:

  • The first launch crash traced directly from NSApplicationMain during app startup (applicationDidFinishLaunching phase) — before the pairing HTTP/redirect path runs.
  • Subsequent relaunches crash in the first toolbar item-group validation (NSToolbarItemGroup validate → delegate → Swift @MainActor thunk).

Both paths call swift_task_isCurrentExecutorWithFlagsImpl and crash inside swift_getObjectType when SerialExecutorRef::isMainExecutor dereferences a dangling executor object. This looks like a Swift structured-concurrency lifetime bug (a Task/actor executor that has been released but is still referenced by the current job context), racing the cold-start window/toolbar setup rather than anything the pairing logic itself does.

Notes / hypothesis

  • The deep link arrives while startup is still initializing (main.swift runs MainActor.assumeIsolated bootstrap, MCP server lazyStart, window + toolbar construction). A Task created early whose executor reference outlives its context would produce exactly this.
  • Workaround for users: launch TablePro manually first, wait for the window, then run "Pair with TablePro" (warm launch avoids the startup race). Pairing to an already-running instance does not crash.
  • No crash-fix commits for the pairing / toolbar / launch code appear on main after the v0.74.0 tag, so this still reproduces on current main.

Attachments

Sanitized .ips crash report attached (personal identifiers stripped): TablePro-crash-sanitized.ips.

Activity

  1. siennap1981 commented on Sep 16, 2026

    @siennap1981
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions