I can consistently reproduce this crash with a certain pattern in application-level code, but because of the frameworks it's sitting on top of, the reproducer ends up containing a large amount of Swift code in total. The crash backtrace is very concerning:
💣 Program crashed: Bad pointer dereference at 0x0000000000000000
Platform: x86_64 Linux (Ubuntu 24.04.3 LTS)
Thread 0 "WeatherApp" crashed:
0 0x00007fae5a076627 swift_weakLoadStrong + 23 in libswiftCore.so
1 closure #5 in GestureClick.registerSignals() + 88 in WeatherApp at /home/bbrk24/distrobox/ubuntu/workspace/weather-app/.build/checkouts/swift-cross-ui/Sources/Gtk/Generated/GestureClick.swift:49:13
47│
48│ addSignal(name: "stopped") { [weak self] () in
49│ guard let self else { return }
│ ▲
50│ self.stopped?(self)
51│ }
Should it even be possible for swift_weakLoadStrong to crash?