Bug 742257 - pahole dies with error
Summary: pahole dies with error
Alias: None
Product: Fedora
Classification: Fedora
Component: dwarves
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Arnaldo Carvalho de Melo
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2011-09-29 14:19 UTC by Jeff Layton
Modified: 2014-06-18 07:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-07-03 15:55:12 UTC

Attachments (Terms of Use)
Hack patch to make pahole work again. (1.03 KB, patch)
2012-02-13 15:01 UTC, Lennert Buytenhek
no flags Details | Diff

Description Jeff Layton 2011-09-29 14:19:15 UTC
Attempting to debug a kernel issue and wanted to see the layout of a struct with pahole (dwarves-1.9-1.fc16.x86_64). When I do so, I get the following spew:

# pahole -C mid_q_entry fs/cifs/cifs.ko 
[...same line repeated many times...]
die__process_function: DW_TAG_INVALID (0x4109) @ <0x14876> not handled!

I also get similar errors on recently built userspace programs.

Comment 1 nmorey 2011-11-14 07:36:03 UTC
I ran accross the same issue but I am not sure this is a pahole problem.
I tried running an old version on FC16 or the latest on FC15 and they both fail.

I'd say the problem comes from bad debug info produced by the latest version of GCC....

Comment 2 Lennert Buytenhek 2012-02-13 15:01:07 UTC
Created attachment 561575 [details]
Hack patch to make pahole work again.

This is likely the wrong fix, but it at least makes pahole work again.

Comment 3 Arnaldo Carvalho de Melo 2012-05-15 13:54:56 UTC
I pushed placeholders for DW_TAG_GNU_call_site (0x4109) and DW_TAG_GNU_call_site_parameter on the DW_TAG_subprogram and DW_TAG_inlined_subroutine handlers.

Because we need to handle it there at some point, but yeah, the solution is almost what Lennert proposed, modulo the fact we need to check if die__process_tag found an unhandled DWARF tag like this new 0x4109 or if ENOMEM really hapenned, leading to it returning NULL.o

Fixes in:


Just installing all of the debuginfo packages in F16 and F17 Beta x86_64 to run pahole and pfunct before and after these and the DWARF4 support patches I merged from Tom Tromey.

Comment 4 Masatake YAMATO 2012-05-30 13:54:28 UTC
I've tested the code pulled from the git repo.
It works fine!

Could you make a new release?

Comment 5 Arnaldo Carvalho de Melo 2012-05-30 18:31:04 UTC
Thanks a lot for testing and reporting, I'll tag it and release ASAP.

Comment 6 Fedora Update System 2012-05-31 17:48:00 UTC
dwarves-1.10-1.fc17 has been submitted as an update for Fedora 17.

Comment 7 Fedora Update System 2012-05-31 18:08:32 UTC
dwarves-1.10-1.fc16 has been submitted as an update for Fedora 16.

Comment 8 Fedora Update System 2012-05-31 18:56:35 UTC
dwarves-1.10-1.fc15 has been submitted as an update for Fedora 15.

Comment 9 Fedora Update System 2012-06-01 16:49:00 UTC
Package dwarves-1.10-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dwarves-1.10-1.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 10 Masatake YAMATO 2012-06-20 18:27:59 UTC
When is the newer package released?

Comment 11 Fedora Update System 2012-07-03 15:55:12 UTC
dwarves-1.10-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2012-07-03 15:56:17 UTC
dwarves-1.10-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 nmorey 2013-04-17 12:59:02 UTC
I still have the issue with 1.10-1:
$ pahole  unit0.elf
die__process_function: DW_TAG_INVALID (0x4109) @ <0x9c4> not handled!
$ rpm -q dwarves

Note: The binary is not i686 or x86_64 ELF but a custom arch and built with a gcc 4.7-0

Problem does not show using dwarves 1.10-2 on FC18..

Note You need to log in before you can comment on or make changes to this bug.