You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ui-smoke: only use a readable core from this run for the native backtrace
Testing the crash path (segfault injected into a GUI) surfaced two
things in the crash dump helper. First, it globbed /tmp/core* and picked
up a stale, root-owned core from an unrelated run, so gdb printed only
'Permission denied'. Second, the non-root case (CI, and local runtests
-u) never produces a core at all: we will not sudo to point
kernel.core_pattern at a writable dir, so nothing lands.
Restrict the core search to a core the kernel wrote into our own fresh
CORE_DIR, or a relative 'core' in the cwd that postdates arming, and
require it to be readable. When there is no such core, say so and point
at the Python faulthandler traceback in linuxcnc.err, which names the
crash site and is the reliable signal in every environment. The native
backtrace stays a best-effort extra for the root case.
Verified: an injected GUI segfault now fails the test in ~20s (no hang),
logs the Python traceback, and prints a clear 'no readable core dump'
note instead of a misleading permission error.
0 commit comments