Public bug reported: trace-cmd 3.3.x and 3.4 segfault in "trace-cmd report --profile" on a compressed trace.dat (the default, zstd):
trace-cmd record --profile sleep 1 trace-cmd report --profile --comm sleep -> Segmentation fault (exit 139) #0 trace_rbtree_delete #1 free_zpage (lib/trace-cmd/trace-input.c: cache of decompressed chunks) #2 tracecmd_free_record #3 do_trace_profile #4 trace_report It is deterministic for a given trace file. Cause: trace_rbtree_delete() dereferences NULL if the node to fix up has no children. Fixed upstream by 6cca77e6cdab "libtracecmd: Fix rb-tree deletion" (libtracecmd 1.5.6, https://bugzilla.kernel.org/show_bug.cgi?id=221171); not in any trace-cmd release yet (latest is 3.4). Impact: - the trace-cmd-examples autopkgtest fails about 63% of the runs in the archive history (19 of 20 on a test VM), which blocks libtraceevent 1:1.9.1-0ubuntu1 in tenacious-proposed (see LP: #2172071) - trace-cmd crashes on a recorded profile Affected: resolute 3.3.3-1ubuntu2, stonking and tenacious 3.4-2 (not noble 3.2, no rbtree cache there). Verified: with the upstream fix the 19 trace files that crash 3.4-2 report fine (0 of 19 crash), and 20 of 20 fresh record/report runs pass (0 of 20 before). Proposal: tenacious 3.4-2ubuntu1 (cherry-pick), then SRUs. ** Affects: ubuntu-power-systems Importance: High Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) Status: In Progress ** Affects: libtraceevent (Ubuntu) Importance: Undecided Status: New ** Affects: trace-cmd (Ubuntu) Importance: High Assignee: Frank Heimes (fheimes) Status: In Progress ** Tags: ppc64el update-execuses ** Also affects: ubuntu-power-systems Importance: Undecided Status: New ** Changed in: ubuntu-power-systems Assignee: (unassigned) => Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) ** Changed in: trace-cmd (Ubuntu) Assignee: (unassigned) => Frank Heimes (fheimes) ** Changed in: ubuntu-power-systems Importance: Undecided => High ** Changed in: trace-cmd (Ubuntu) Importance: Undecided => High ** Changed in: ubuntu-power-systems Status: New => In Progress ** Changed in: trace-cmd (Ubuntu) Status: New => In Progress ** Also affects: libtraceevent (Ubuntu) Importance: Undecided Status: New ** Tags added: ppc64el update-execuses -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2180230 Title: trace-cmd report --profile segfaults on compressed trace files (NULL deref in trace_rbtree_delete), trace-cmd-examples autopkgtest fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-power-systems/+bug/2180230/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
