This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug testsuite/10671] semok/twenty.stp takes 15 minutes on slow/low-memorry machine
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 21 Sep 2009 00:00:50 -0000
- Subject: [Bug testsuite/10671] semok/twenty.stp takes 15 minutes on slow/low-memorry machine
- References: <20090920165213.10671.mjw@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From fche at redhat dot com 2009-09-21 00:00 -------
After this patch:
diff --git a/translate.cxx b/translate.cxx
index 04a9247..c304178 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -4482,7 +4482,7 @@ static void get_unwind_data (Dwfl_Module *m,
// fetch .eh_frame info preferably from main elf file.
dwfl_module_info (m, NULL, &start, NULL, NULL, NULL, NULL, NULL);
- elf = dwfl_module_getelf(m, &bias);
+ elf = (dwarf_getelf (dwfl_module_getdwarf (m, &bias)) ?: dwfl_module_getelf
(m, &bias));
ehdr = gelf_getehdr(elf, &ehdr_mem);
scn = NULL;
while ((scn = elf_nextscn(elf, scn)))
the situation improves somewhat. Then, random SIGINT/backtraces appear to
implicate translate.cxx:4740, the call to dwfl_module_address_section().
Program received signal SIGINT, Interrupt.
0x00002baa1f167330 in gelf_getsymshndx@plt ()
from
/home/fche/Private/DEVEL/DEVEL-systemtap/git/BUILD2/../INST2/lib/systemtap/libdw.so.1
(gdb) bt
#0 0x00002baa1f167330 in gelf_getsymshndx@plt ()
from
/home/fche/Private/DEVEL/DEVEL-systemtap/git/BUILD2/../INST2/lib/systemtap/libdw.so.1
#1 0x00002baa1f1721f0 in resolve_symbol (shndx=2, sym=0x7fffdc87d5d0,
symtab=<value optimized out>,
referer=<value optimized out>) at
/home/fche/Private/DEVEL/DEVEL-systemtap/elfutils-0.141/libdwfl/relocate.c:246
#2 relocate (shndx=2, sym=0x7fffdc87d5d0, symtab=<value optimized out>,
referer=<value optimized out>)
at
/home/fche/Private/DEVEL/DEVEL-systemtap/elfutils-0.141/libdwfl/relocate.c:348
#3 0x00002baa1f1727a8 in relocate_section (ehdr=<value optimized out>,
shstrndx=<value optimized out>,
reloc_symtab=<value optimized out>, scn=<value optimized out>,
shdr=0x7fffdc87d7a0, tscn=0x17856350, debugscn=false,
partial=true) at
/home/fche/Private/DEVEL/DEVEL-systemtap/elfutils-0.141/libdwfl/relocate.c:501
#4 0x00002baa1f172cd2 in __libdwfl_relocate_section (mod=0xc7ace60,
relocated=0x17856100, relocscn=0x17856408,
tscn=0x17856350, partial=true) at
/home/fche/Private/DEVEL/DEVEL-systemtap/elfutils-0.141/libdwfl/relocate.c:633
#5 0x00002baa1f173b5c in dwfl_module_address_section (mod=0xc7ace60,
address=<value optimized out>, bias=0x7fffdc87dc78)
at
/home/fche/Private/DEVEL/DEVEL-systemtap/elfutils-0.141/libdwfl/derelocate.c:398
#6 0x00000000004633b3 in dump_unwindsyms (m=0xc7ace60, userdata=<value
optimized out>, name=<value optimized out>,
base=<value optimized out>, arg=<value optimized out>) at
../systemtap2/translate.cxx:4740
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10671
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.