Skip to content

diagnostics: persistent crash and lifecycle records for shutdown aborts - #41

Merged
Monstrofil merged 1 commit into
mainfrom
diag/abort-diagnostics
Oct 28, 2026
Merged

Monstrofil merged 1 commit into
mainfrom
diag/abort-diagnostics

Conversation

@Monstrofil

Copy link
Copy Markdown
Contributor

nv_navigation aborted (SIGABRT, main thread) during an ignition-off on the car unit (2026-10-27 06:07:41 radio time) and left no trace: the crash reporter skipped SIGABRT and all logs were in /tmp.

  • crash reporter: SIGABRT (re-raised), libc return addresses in the stack scan, persistent copy in /datastore/navicore-backend/crash.log
  • std::set_terminate names the uncaught exception
  • Qt fatal/critical messages recorded, then passed on
  • atexit record: did exit() run with the OsmAnd core live
  • provider lifecycle breadcrumbs with monotonic ms in /datastore/navicore-backend/lifecycle.log

Host tests: 34/34 pass. QNX cross-build OK; new imports exported by libOsmAndCore_shared.so.

🤖 Generated with Claude Code

nv_navigation died with SIGABRT on its main thread during an ignition-off
on the car (M9148801407, 2026-10-27 06:07:41 radio time) and left no
trace: the crash reporter skipped SIGABRT and every log lived in /tmp.

- crash reporter: also SIGABRT (re-raised after the record), libc return
  addresses in the stack scan, a persistent copy in
  /datastore/navicore-backend/crash.log (restarted past 256 KB)
- std::set_terminate names the uncaught exception before abort
- Qt fatal/critical messages are recorded (QThread destroyed while
  running at exit), then passed to the previous handler
- an atexit record registered after InitializeCore says whether exit()
  ran with the OsmAnd core still live
- provider lifecycle breadcrumbs with monotonic ms in
  /datastore/navicore-backend/lifecycle.log (panaInitialize,
  panaDeinitialize, each deinit stage) to time deinit against the
  30 s System Manager stop limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Monstrofil
Monstrofil merged commit a90dede into main Oct 28, 2026
1 check passed
@Monstrofil
Monstrofil deleted the diag/abort-diagnostics branch October 28, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant