Bug 6963 - Bug in elfutils-0.137 causing failure in lookup of kernel global variables
Summary: Bug in elfutils-0.137 causing failure in lookup of kernel global variables
Status: RESOLVED DUPLICATE of bug 6928
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-16 12:01 UTC by Prerna
Modified: 2011-03-16 21:19 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Prerna 2008-10-16 12:01:15 UTC
The following script runs successfully on ppc64 when compiled with
elfutils-0.135 but fails on ppc64 with elfutils-0.137

probe kernel.function("__vm_enough_memory")
{
        printf("sysctl_overcommit_ratio = %d\n", $sysctl_overcommit_ratio)
}

The stack backtrace for the failure :

#0  0x1fbb10a0 in raise () from /lib/libc.so.6
#1  0x1fbb2e04 in abort () from /lib/libc.so.6
#2  0x1fbf2a24 in __libc_message () from /lib/libc.so.6
#3  0x1fbfece4 in _int_realloc () from /lib/libc.so.6
#4  0x1fc012c0 in realloc () from /lib/libc.so.6
#5  0x1ffc3a24 in insert (dwfl=0x20873710, i=20, start=2157856, 
    end=13835058055282163712, segndx=-1)
    at /root/prerna/elfutils-0.137/libdwfl/segment.c:80
#6  0x1ffc4280 in dwfl_addrsegment (dwfl=0x20873710, 
    address=13835058055289295728, mod=0xffc660d8)
    at /root/prerna/elfutils-0.137/libdwfl/segment.c:179
#7  0x1ffc9d84 in dwfl_addrmodule (dwfl=<value optimized out>, 
    address=25769803784)
    at /root/prerna/elfutils-0.137/libdwfl/dwfl_addrmodule.c:56
#8  0x200cf550 in dwflpp::emit_address (this=0x208735e0, 
    pool=<value optimized out>, address=13835058055282163720)
    at tapsets.cxx:1573
#9  0x200cfb70 in dwflpp::loc2c_emit_address (arg=<value optimized out>, 
    pool=<value optimized out>, address=25769803784) at tapsets.cxx:1625
-------------------------------------------------------------------------
Looks like an issue with dwfl_addrmodule.c

( I'm labelling this as a translator bug since I couldnt find a separate section
for elfutils-bugs )
Comment 1 Frank Ch. Eigler 2008-10-16 13:21:56 UTC

*** This bug has been marked as a duplicate of 6928 ***