* [Bug translator/20288] New: dwfl/elfutils problem when gathering line-record data for *symfile/*symline functions
@ 2016-06-21 21:39 fche at redhat dot com
2016-06-21 22:08 ` [Bug translator/20288] " mjw at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: fche at redhat dot com @ 2016-06-21 21:39 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=20288
Bug ID: 20288
Summary: dwfl/elfutils problem when gathering line-record data
for *symfile/*symline functions
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
Assignee: systemtap at sourceware dot org
Reporter: fche at redhat dot com
Target Milestone: ---
random git stap build running against f22
% ./stap -V
Systemtap translator/driver (version 3.1/0.166, commit
release-3.0-110-g713029398d38 + changes)
% ./stap -p4 -e 'probe process("/bin/ls").function("main") { log(usymfile(0))
}' --vp 0044
[...]
dump_unwindsyms /usr/bin/ls index=2 base=0x400000
Found build-id in /usr/bin/ls, length 20, start at 0x400284
WARNING: No debug line data for /usr/bin/ls, no error
[...]
wait, wha?
% rpm -qf /usr/bin/ls
coreutils-8.23-11.fc22.x86_64
% rpm -q coreutils-debuginfo
coreutils-debuginfo-8.23-11.fc22.x86_64
% readelf -S /usr/lib/debug/usr/bin/ls.debug | grep -A1 debug.line
[31] .debug_line PROGBITS 0000000000000000 00017bc3
0000000000006668 0000000000000000 0 0 1
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug translator/20288] dwfl/elfutils problem when gathering line-record data for *symfile/*symline functions
2016-06-21 21:39 [Bug translator/20288] New: dwfl/elfutils problem when gathering line-record data for *symfile/*symline functions fche at redhat dot com
@ 2016-06-21 22:08 ` mjw at redhat dot com
2017-10-11 10:44 ` mark at klomp dot org
2017-10-11 10:48 ` mjw at fedoraproject dot org
2 siblings, 0 replies; 4+ messages in thread
From: mjw at redhat dot com @ 2016-06-21 22:08 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=20288
Mark Wielaard <mjw at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mjw at redhat dot com
--- Comment #1 from Mark Wielaard <mjw at redhat dot com> ---
The dwfl_errmsg (-1) looks bogus (or at least way too late). The code seems to
use raw libelf calls. Here is a quick untested patch:
diff --git a/translate.cxx b/translate.cxx
index 4c91660..271f0e1 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -6453,6 +6453,7 @@ static void
dump_line_tables (Dwfl_Module *m, unwindsym_dump_context *c,
const char *, Dwarf_Addr)
{
+ Dwarf* dwarf;
Elf* elf;
Elf_Scn* scn = NULL;
Elf_Data* data;
@@ -6462,7 +6463,11 @@ dump_line_tables (Dwfl_Module *m, unwindsym_dump_context
*c,
dwfl_module_info (m, NULL, &start, NULL, NULL, NULL, NULL, NULL);
- elf = dwfl_module_getelf (m, &bias);
+ dwarf = dwfl_module_getdwarf (m, &bias);
+ if (dwarf == NULL)
+ return;
+
+ elf = dwarf_getelf (dwarf);
if (elf == NULL)
return;
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug translator/20288] dwfl/elfutils problem when gathering line-record data for *symfile/*symline functions
2016-06-21 21:39 [Bug translator/20288] New: dwfl/elfutils problem when gathering line-record data for *symfile/*symline functions fche at redhat dot com
2016-06-21 22:08 ` [Bug translator/20288] " mjw at redhat dot com
@ 2017-10-11 10:44 ` mark at klomp dot org
2017-10-11 10:48 ` mjw at fedoraproject dot org
2 siblings, 0 replies; 4+ messages in thread
From: mark at klomp dot org @ 2017-10-11 10:44 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=20288
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug translator/20288] dwfl/elfutils problem when gathering line-record data for *symfile/*symline functions
2016-06-21 21:39 [Bug translator/20288] New: dwfl/elfutils problem when gathering line-record data for *symfile/*symline functions fche at redhat dot com
2016-06-21 22:08 ` [Bug translator/20288] " mjw at redhat dot com
2017-10-11 10:44 ` mark at klomp dot org
@ 2017-10-11 10:48 ` mjw at fedoraproject dot org
2 siblings, 0 replies; 4+ messages in thread
From: mjw at fedoraproject dot org @ 2017-10-11 10:48 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=20288
Mark Wielaard <mjw at fedoraproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|mjw at fedoraproject dot org |
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-11 10:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-21 21:39 [Bug translator/20288] New: dwfl/elfutils problem when gathering line-record data for *symfile/*symline functions fche at redhat dot com
2016-06-21 22:08 ` [Bug translator/20288] " mjw at redhat dot com
2017-10-11 10:44 ` mark at klomp dot org
2017-10-11 10:48 ` mjw at fedoraproject dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).