Skip to content

Commit 9e1eb8a

Browse files
committed
Collect macOS 14 crash backtrace
1 parent 53ec584 commit 9e1eb8a

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

‎.github/workflows/diagnose-macos14-launch.yml‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ jobs:
2828
xcrun vtool -show-build /tmp/yojam-volume/Yojam.app/Contents/MacOS/Yojam
2929
codesign --verify --deep --strict --verbose=2 /tmp/yojam-volume/Yojam.app
3030
spctl --assess --type execute --verbose=2 /tmp/yojam-volume/Yojam.app
31+
codesign --display --entitlements :- /tmp/yojam-volume/Yojam.app 2>&1
3132
sudo ditto /tmp/yojam-volume/Yojam.app /Applications/Yojam.app
3233
hdiutil detach /tmp/yojam-volume
33-
- name: Launch as an ordinary process
34+
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f /Applications/Yojam.app
35+
- name: Reproduce and collect crash evidence
3436
run: |
3537
defaults delete com.yojam.app 2>/dev/null || true
3638
launch_log=/tmp/yojam-launch.log
@@ -58,6 +60,16 @@ jobs:
5860
set -e
5961
echo "Yojam exited early with status $app_status"
6062
sed -n '1,240p' "$launch_log"
61-
find "$HOME/Library/Logs/DiagnosticReports" -maxdepth 1 -type f -name 'Yojam*' -print -exec sed -n '1,320p' {} \; 2>/dev/null || true
62-
log show --last 3m --style compact --predicate 'process == "Yojam" OR eventMessage CONTAINS[c] "Yojam"' 2>/dev/null | tail -500 || true
63+
sleep 15
64+
find "$HOME/Library/Logs/DiagnosticReports" -maxdepth 1 -type f -name 'Yojam*' -print 2>/dev/null || true
65+
for report in "$HOME"/Library/Logs/DiagnosticReports/Yojam*; do
66+
if [ -f "$report" ]; then
67+
echo "CRASH_REPORT=$report"
68+
sed -n '1,500p' "$report"
69+
fi
70+
done
71+
log show --last 5m --style compact --predicate 'process == "Yojam" OR eventMessage CONTAINS[c] "Yojam"' 2>/dev/null | tail -800 || true
72+
echo 'LLDB_BACKTRACE_BEGIN'
73+
lldb --batch -o run -o 'thread backtrace all' -o quit -- /Applications/Yojam.app/Contents/MacOS/Yojam 2>&1 || true
74+
echo 'LLDB_BACKTRACE_END'
6375
exit 1

0 commit comments

Comments
 (0)