All three persist hook functions (job/worker/queue) were ignoring the situation argument, so they fired on both BEFORE and AFTER events. BEFORE_EVENT hooks pass different va_list layouts than AFTER_EVENT: - WORKER_JOIN BEFORE: (cluster_t*, char* name, int 0) vs AFTER: (cluster_t*, worker_t*) - JOB_NEW BEFORE: (cluster_t*, xce_job_submit_t*) vs AFTER: (cluster_t*, xlist_t*) Reading the wrong type from va_list caused a dereference crash. Fix: return 0 immediately on HOOK_BEFORE_EVENT in all three hooks. |
||
|---|---|---|
| .. | ||
| autoscaler | ||
| controller | ||
| docs | ||
| frontend | ||
| include | ||
| lib | ||
| nixSupport | ||
| scheduler | ||
| schema | ||
| tools | ||
| worker | ||
| flake.lock | ||
| flake.nix | ||
| meson.build | ||
| meson.options | ||