#1017440 pahole: Several tools just segfault

Package:
pahole
Source:
pahole
Description:
set of advanced DWARF utilities
Submitter:
Guillem Jover
Date:
2025-02-01 14:24:01 UTC
Severity:
normal
Tags:
#1017440#5
Date:
2022-08-16 11:12:55 UTC
From:
To:
Hi!

Many of the tools simply segfault when executed. On a shared library
with debugging symbols:

  $ codiff libsysfs.so.2.0.1 libsysfs.so.2.0.1
  Segmentation fault (core dumped)
  $ dtagnames libsysfs.so.2.0.1
  Segmentation fault (core dumped)
  $ prefcnt libsysfs.so.2.0.1
  Segmentation fault (core dumped)
  $ scncopy -s data -o output libsysfs.so.2.0.1
  Segmentation fault (core dumped)
  $ syscse libsysfs.so.2.0.1
  Segmentation fault (core dumped)

On a stripped library:

  $ codiff /usr/lib/x86_64-linux-gnu/libbsd.so.0 \
           /usr/lib/x86_64-linux-gnu/libbsd.so.0
  Segmentation fault (core dumped)
  $ dtagnames /usr/lib/x86_64-linux-gnu/libbsd.so.0
  Segmentation fault (core dumped)
  $ prefcnt /usr/lib/x86_64-linux-gnu/libbsd.so.0
  Segmentation fault (core dumped)
  $ scncopy -s data -o output /usr/lib/x86_64-linux-gnu/libbsd.so.0
  Segmentation fault (core dumped)
  $ syscse /usr/lib/x86_64-linux-gnu/libbsd.so.0
  Segmentation fault (core dumped)

Some even with no arguments:

  $ dtagnames
  Segmentation fault (core dumped)
  $ prefcnt
  Segmentation fault (core dumped)

Thanks,
Guillem

#1017440#10
Date:
2022-10-15 10:29:25 UTC
From:
To:
user debian-release@lists.debian.org
usertags -1 + bsp-2022-10-de-karlsruhe
thank you

Hi,

one of the crashes is fixed upstream in commit [49a2dd], already
released in 1.24. There are several more crashes fixed upstream,
so updating to the newest release would make sense.
Though unfornately not all crashes are fixed yet, and they don't
look trivial to fix without knowing the code better.

Kind regards,
 Reiner

[49a2dd] https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?id=49a2dd

#1017440#15
Date:
2022-11-08 10:14:46 UTC
From:
To:
severity -1 important
thanks

Hi Guillem!

Thank you for reporting, I added a smoke test that tries to use all
these tools and can be used to track the overall state.

I've not the time to dig into these failures but I'll report them to
the upstream developers.

Given that the package is far from being unusable, I'm reducing its
severity to important.

Regards,
Domenico