Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@AT_decl_file asserts on systemtap debuginfo #16

Closed
pmachata opened this issue Jan 19, 2015 · 1 comment
Closed

@AT_decl_file asserts on systemtap debuginfo #16

pmachata opened this issue Jan 19, 2015 · 1 comment
Labels

Comments

@pmachata
Copy link
Owner

A strange bug in reading DW_AT_decl_file:

$ rpm -q systemtap-debuginfo
systemtap-debuginfo-2.6-3.fc21.x86_64
$ ./dwgrep/dwgrep -e 'entry (offset == 0x1306a) @AT_decl_file' /usr/lib/debug/usr/bin/stap.debug
dwgrep: /home/petr/proj/dwgrep-older/libzwerg/dwpp.hh:52: void throw_libdw(int): Assertion `dwerr != 0' failed.
Aborted (core dumped)
$ ./dwgrep/dwgrep -e 'entry (offset == 0x1306a) attribute ?AT_decl_file value' /usr/lib/debug/usr/bin/stap.debug
/usr/src/debug/systemtap-2.6/cscommon.h
/usr/src/debug/systemtap-2.6/cscommon.h
@pmachata pmachata added the bug label Jan 19, 2015
@pmachata
Copy link
Owner Author

Provisional fix is at: https://gist.github.com/pmachata/63426aacf01d441d9ee3
This is sub-par though in that it unnecessarily clones value_die and has no test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant