piker/ai/diagnostics/20261019-chart-253598/README.md

95 lines
5.0 KiB
Markdown
Raw Normal View History

# Chart PID 253598 native crash diagnostics
Captured 2026-10-19 from the human-selected systemd core. This is
post-mortem inspection; no chart, provider or order was started.
## Core identity
- PID/TID: 253598 (`python3`), chart actor short UUID `b1326a`.
- Timestamp: 2026-10-19 15:29:39 EDT (19:29:39 UTC).
- Signal: 11 / SIGSEGV, `si_code: SEGV_MAPERR`.
- Boot ID: `b418978aeaef486d8413548e0ecbd79a`.
- Executable:
`/nix/store/pbdy5h9sjs92a37gq9sspg2797q4j4fa-python3-3.13.14/bin/python3.13`
- Command: evaluation `py313/bin/piker -l info --pdb chart mnq.cme.ib mnq.cme.20270319.ib`.
- Original systemd core, present at inspection (58.6 MiB compressed):
`/var/lib/systemd/coredump/core.python3.1000.b418978aeaef486d8413548e0ecbd79a.253598.1792438179000000.zst`
- Source checkout: `/home/goodboy/repos/piker/wkts/ib_downstream_pin_eval`,
baseline `eed58566226d5476b548c6dd3bb6a44fcd6325f9` plus dirty changes.
- Runtime Tractor imported from
`/home/goodboy/repos/tractor/wkts/address_logging_levels`; its state may
have advanced since earlier trial evidence. Do not substitute current
HEAD for a historical crash revision without checking provenance.
## Journal-native fault stack
Extracted from `coredumpctl info 253598`; worker stacks in that output
include OpenBLAS condition waits and Polars Rayon/Tokio parked workers.
```text
Stack trace of thread 253598:
#0 0x00007fffb6574ad0 sip_api_get_address (sip.cpython-313-x86_64-linux-gnu.so + 0x8ad0)
#1 0x00007fffa68629c2 _ZL15cleanup_qobjectP17_sipSimpleWrapperPv (QtCore.abi3.so + 0x2629c2)
#2 0x00007fffb6574ee9 sip_api_visit_wrappers (sip.cpython-313-x86_64-linux-gnu.so + 0x8ee9)
#3 0x00007fffa68620be _ZL15cleanup_on_exitP7_objectS0_ (QtCore.abi3.so + 0x2620be)
#4 0x00007ffff7983ec4 cfunction_vectorcall_NOARGS (libpython3.13.so.1.0 + 0x183ec4)
#5 0x00007ffff7a5288d atexit_callfuncs (libpython3.13.so.1.0 + 0x25288d)
#6 0x00007ffff7bcab6f _Py_Finalize.part.0.constprop.0 (libpython3.13.so.1.0 + 0x3cab6f)
#7 0x00007ffff7bcb603 Py_Exit (libpython3.13.so.1.0 + 0x3cb603)
#8 0x00007ffff7bc9f1d _PyErr_PrintEx (libpython3.13.so.1.0 + 0x3c9f1d)
#9 0x00007ffff7bef832 _PyRun_SimpleFileObject (libpython3.13.so.1.0 + 0x3ef832)
#10 0x00007ffff7bf1891 Py_RunMain (libpython3.13.so.1.0 + 0x3f1891)
#11 0x00007ffff742b285 __libc_start_call_main (libc.so.6 + 0x2b285)
#12 0x00007ffff742b338 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2b338)
#13 0x0000555555555085 _start (python3.13 + 0x1085)
```
This identifies the fault during PyQt QObject/SIP wrapper cleanup at
Python atexit/finalization. It does not prove which wrapper is invalid,
whether earlier cleanup corrupted it, or whether Qt/Trio guest ordering
caused the invalid state. No Trio/Qt event-loop frame appears in this
journal fault stack itself.
The human's preceding Python output shows cancellation groups relayed
from FSPs, followed by MainWindow.closeEvent self-SIGINT and KBI. Treat
that as preceding evidence, not a native root-cause diagnosis.
## Detailed debugger capture
[gdb.txt](gdb.txt) contains the thread inventory (82 threads), all-thread
backtraces, fault-thread `bt full` and shared-library inventory. GDB 17.2
successfully opened the systemd core and resolved the same fault chain.
The fault-thread trace begins at line 886; `bt full` begins at line 903.
PyQt6 6.11.0 and pyqt6-sip 13.10.2 resolve to the Nix store paths recorded
there; Qtbase is 6.11.1. Wayland and qt6ct plugins were loaded.
Most libraries lack debug information. Function symbols resolve, but
`bt full` reports no symbol-table information for the fault frames;
wrapper arguments/locals and source lines are not available. Full debug
builds/symbols are still needed to identify the invalid wrapper state.
GDB auto-load and debuginfod were disabled for this capture. No inferior
code was executed. The first debugger invocation had an argument-quoting
failure; the corrected invocation completed successfully.
Capture through `coredumpctl debug 253598` with the installed debugger:
```xsh
coredumpctl --debugger=/nix/store/mvfz8qyy2nklpdfpjny285j8d3yswf7w-gdb-17.2/bin/gdb --debugger-arguments "-nx -batch -iex 'set auto-load safe-path /nonexistent' -iex 'set debuginfod enabled off' -ex 'set pagination off' -ex 'info threads' -ex 'thread apply all bt' -ex 'thread 1' -ex 'bt full' -ex 'info sharedlibrary'" debug 253598
```
The saved run additionally enabled GDB logging to `gdb.txt` before those
inspection commands. The original core is not copied into Git. Preserve
it separately before systemd expiry if later work needs memory inspection.
Saved `gdb.txt` SHA-256:
`0aa3f74aa68ea8d148c3a45ef47fed3db9b1656493c67d52be33abc22ff8f5b2`.
## Source and handoff
The human authorized diagnostics and a linked task in the repo-local
Taken source on `wkt/federated_project_stores`. Existing task states are
preserved. The task owns the follow-up investigation; this report is
supporting evidence, not a claim of a fix or test acceptance.
Task ID: `piker-qt6-chart-teardown-sigsegv`, source ID: `piker`.
The guarded append succeeded; read-only Taken lint reported no diagnostics.