Dwarves debugging tools
 help / color / mirror / Atom feed
* [PATCH dwarves 0/2] pahole: Fix -C -T segfault
@ 2026-09-03 20:56 Aditya Dutt
  2026-09-03 20:56 ` [PATCH dwarves 1/2] pahole: Fix option name in the -m/-C error message Aditya Dutt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Aditya Dutt @ 2026-09-03 20:56 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: Aditya Dutt, dwarves, Alan Maguire

'formatter' is NULL when -T is given and the -C path calls it, which
segfaults.
Patch 2 rejects that, like '-m -C' already does.
Patch 1 fixes the '-m -C' error, which names '--class' incorrectly.

-T has set 'formatter' to NULL since commit 286c7740fd98c4df but -C did
not call formatter until f5857bd34b220a64 (used to call tag__fprintf
before), so added Fixes tag referencing it. 

I think support for the combinations '-T -C' and '-m -C' could be added
in the future.

Problem with doing that right now is that the counting logic lives in
the 'class_name == NULL' block that -C skips. And -C stops loading CUs
once all classes are found.

Aditya Dutt (2):
  pahole: Fix option name in the -m/-C error message
  pahole: Fix -C -T segfault

 pahole.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-04  1:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03 20:56 [PATCH dwarves 0/2] pahole: Fix -C -T segfault Aditya Dutt
2026-09-03 20:56 ` [PATCH dwarves 1/2] pahole: Fix option name in the -m/-C error message Aditya Dutt
2026-09-03 20:56 ` [PATCH dwarves 2/2] pahole: Fix -C -T segfault Aditya Dutt
2026-09-04  1:33 ` [PATCH dwarves 0/2] " Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox