#1017440 pahole: Several tools just segfault

Package:
pahole
Source:
pahole
Description:
set of advanced DWARF utilities
Submitter:
Guillem Jover
Date:
2026-09-27 06:15:02 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

#1017440#24
Date:
2026-09-26 11:49:12 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
dwarves, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1017440@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Håvard F. Aasen <havard.f.aasen@pfft.no> (supplier of updated dwarves package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 19 Sep 2026 21:48:11 +0200
Source: dwarves
Architecture: source
Version: 1.32-1
Distribution: unstable
Urgency: medium
Maintainer: Håvard F. Aasen <havard.f.aasen@pfft.no>
Changed-By: Håvard F. Aasen <havard.f.aasen@pfft.no>
Closes: 1017440
Changes:
 dwarves (1.32-1) unstable; urgency=medium
 .
   * New upstream release.
   * Drop patch, similar patch implemented upstream.
   * Add patch to fix groff warning.
   * Don't clean test files with d/clean.
   * Include man-page for pfunct in pahole binary.
   * Update Standards-Version to 4.7.4, no changes needed.
   * Rewrite the autopkgtest, smoketest. (Closes: #1017440)
   * Update URL and add wrap-and-sort as job in CI.
Checksums-Sha1:
 e013091d5925b861ce13101de7d98339e3a371d0 2294 dwarves_1.32-1.dsc
 7d3fd5b2d7ab2583393c3c32238ff3742d845863 2484328 dwarves_1.32.orig.tar.xz
 2620c54f8327de19cf207e4c279fc3161ce72a91 21496 dwarves_1.32-1.debian.tar.xz
 5ac2bfe39e68fb33e30f7dc6fae62c65d05ca650 6781 dwarves_1.32-1_source.buildinfo
Checksums-Sha256:
 7f71d1d77a1be4eecb9279e0f8148cb9d6d20c15b78c09f830c1ac3e5f45bf72 2294 dwarves_1.32-1.dsc
 319cbf319e9fc92065a5407ce47eb868d73566f3d4840a56832734e4579df947 2484328 dwarves_1.32.orig.tar.xz
 d36bd14f3add6ef8be93de57965aa603754e727c947e8d2fe2e6aade9ec4018b 21496 dwarves_1.32-1.debian.tar.xz
 e2076de23bec5f7b05fcb70ad1dad6ae80d2d897468dbc0d0d1245b70161635e 6781 dwarves_1.32-1_source.buildinfo
Files:
 421b5a69269130da9708c82966b5d28f 2294 utils optional dwarves_1.32-1.dsc
 c71e0c1cbe512bdaee74762032b7d706 2484328 utils optional dwarves_1.32.orig.tar.xz
 c68da2c587b24dd81b0a9fd532e10b41 21496 utils optional dwarves_1.32-1.debian.tar.xz
 0d1317ba38da3eb8c1110237a6b46b16 6781 utils optional dwarves_1.32-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmq3rr4ACgkQMfMURUSh
dBoU2A/+Ko1UH+X7jfXssh9F7P9KADDusEhHftcW+Ov0olnKGo1Jz45YCP3jFics
OUtS7fFXZn2mO431Nm83ZevcPqYn/AZb1+e9LUnthPwqUOE4XFLAJrAw/FLBqiMt
xIfKT6yWMDqNYDcDgJqUFyekst/dVH871BWb4YP42G2RMryEgLqkQFuZwAr0LAQs
fIqAoSZFrk70JZyFzeS2HwRpj5KvCRDljzq4zUNNDKmXQiG+AsEE3dsjIlwOAYzF
ldkow70AU8SUGNM3jVQdKHVzYGHoSsZLOrpza7rVQdctX0Nhayj7ABwNM+71t0Bn
Ksuskgh+u9hUQDbmAYyvRd//eP9LgwGqJqKUgDaxNvyugdoqEZQ+oIvqIkCcw7s9
4TlbsVMt4UzwquOca8z/eFRbZra5rYrRPazZdgj0DgR4ff9paDQtPxmAY++F2Btt
oesAqE1EVewylk41RR1DML26a1Cln3jIV18ctpHBq+VFis3krArA6/0kUcvmJ+YL
IOQf/ZsFM1jkVKO33WmQ5EDLZrGr2T/4irCG0yN3uTOzVd8C4W4hpl8g+tETNU5p
YzKExVkN/IcLK9Pvi4vt8/XsD61Rdn1YHHofg1gPHU0qD9/9SWh7Xw2cnAun8pov
hYOUWL09PiLbR/aJQcizkSIY7ntaPi+JyeRcruM8n4gYoc1QUqk=
=YiAu
-----END PGP SIGNATURE-----

#1017440#29
Date:
2026-09-26 20:46:12 UTC
From:
To:
Hi!

Thanks, the situation looks much better now, although I can still
reproduce one of the segfaults:

  $ prefcnt
  Segmentation fault         (core dumped) prefcnt

Thanks,
Guillem

#1017440#40
Date:
2026-09-27 06:02:29 UTC
From:
To:
Hi Guillem,

Thanks for the info, I wrongly assumed that the autopkgtest covered all
examples from this issue. I'll update the autopkgtest and include a note
that it can be seen as regression tests against this issue.

I will create a patch and submit it upstream for handling program
arguments on the command line.


Regards,
Håvard