public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/19176] New: dieoffset: 0x1924e6 from unknown debug file for /home/amazon/oct-20/ngos/workspace/sysroot/lib/x86_64-linux-gnu/libc-2.19.so         function: __GI___libc_malloc at /build/glibc-6hJbOt/glibc-2.19/malloc/malloc.c:2876    thrown from: dwflpp.cxx:2682
@ 2015-10-26 22:18 dhanakumar_subramani at dell dot com
  2015-10-26 22:20 ` [Bug translator/19176] dieoffset: 0x1924e6 from unknown debug file for /home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so " dhanakumar_subramani at dell dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dhanakumar_subramani at dell dot com @ 2015-10-26 22:18 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=19176

            Bug ID: 19176
           Summary: dieoffset: 0x1924e6 from unknown debug file for
                    /home/amazon/oct-20/ngos/workspace/sysroot/lib/x86_64-
                    linux-gnu/libc-2.19.so         function:
                    __GI___libc_malloc at
                    /build/glibc-6hJbOt/glibc-2.19/malloc/malloc.c:2876
                    thrown from: dwflpp.cxx:2682
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: dhanakumar_subramani at dell dot com
  Target Milestone: ---

Created attachment 8750
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8750&action=edit
leaks.stp

When I am trying cross compile leaks.stp, an user space script with 
Systemtap Ver 2.8,
ELF version  0.159, 
probing GLIBC (debug version 2.19),
I am getting 

semantic error: No cfa_ops supplied, but needed by DW_OP_call_frame_cfa:
identifier '$bytes' at leaks.stp:12:25
        dieoffset: 0x1924e6 from unknown debug file for
/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so
        function: __GI___libc_malloc at
/build/glibc-6hJbOt/glibc-2.19/malloc/malloc.c:2876
   thrown from: dwflpp.cxx:2682
        source:     printf("malloc %d", $bytes);
                                        ^

deleting module_cache
Pass 2: analyzed script: 2 probe(s), 1 function(s), 0 embed(s), 0 global(s)
using 103760virt/48588res/8048shr/41016data kb, in 60usr/20sys/82real ms.
Pass 2: analysis failed.  [man error::pass2]
Running rm -rf /tmp/stap3036DH
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stap3036DH"

Here is the complete log -

usr/bin/stap  -gv --vp 0400 -a x86_64 -B CROSS_COMPILE=x86_64-linux-gnu- -r
/home/amazon/oct-20/build/open-source-kernel/3.16/linux-source-3.16/ 
--sysroot=/home/amazon/oct-20/sysroot/ leaks.stp -m leaks
WARNING: kernel release/architecture mismatch with host forces last-pass 4.
Pass 1: parsed user script and 107 library script(s) using
97392virt/40148res/6272shr/34648data kb, in 340usr/20sys/366real ms.
derive-probes begin
derive-probes
process("/lib/x86_64-linux-gnu/libc-2.19.so").function("malloc").return
Extracting build ID.
blacklist regexps:
blfn: ^(.^)$
blfn_ret: ^(_start)$
blfile: ^(.^)$
blsection: ^(.^)
dwarf_builder::build for
/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so
parse 'malloc', func 'malloc'
pattern '/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so' matches
module '/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so'
focused on module
'/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so' =
[0x10000-0x1b9a7c, bias 0 file
/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so ELF machine
i?86|x86_64 (code 3)
focused on module
'/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so'
module function cache
/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so size 3611
module function cache
/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so hit malloc
selected function __libc_malloc
function cache
/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so:malloc.c size 79
function cache
/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so:malloc.c hit
malloc
selected function __libc_malloc
CU 'malloc.c' in module
'/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so' has valid locs
probe __libc_malloc@/build/glibc-6hJbOt/glibc-2.19/malloc/malloc.c:2875
process=/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so
reloc=.dynamic pc=0x75ae0
die parent cache
/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so:malloc.c size 406
finding location for local 'bytes' near address 0x75ae0, module bias 0x10000
get_cfa_ops @0x85ae0, module_start @0x10000
dwfl_module_dwarf_cfi failed: no error
dwfl_module_eh_cfi failed: no error
not found cfa
Eliding side-effect-free singleton block operator '{' at leaks.stp:7:13
Eliding side-effect-free singleton block operator '{' at leaks.stp:11:79
Resolution problem with probe
process("/lib/x86_64-linux-gnu/libc-2.19.so").function("__libc_malloc@/build/glibc-6hJbOt/glibc-2.19/malloc/malloc.c:2875").return
printf("malloc %d", $bytes)
semantic error: No cfa_ops supplied, but needed by DW_OP_call_frame_cfa:
identifier '$bytes' at leaks.stp:12:25
        dieoffset: 0x1924e6 from unknown debug file for
/home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so
        function: __GI___libc_malloc at
/build/glibc-6hJbOt/glibc-2.19/malloc/malloc.c:2876
   thrown from: dwflpp.cxx:2682
        source:     printf("malloc %d", $bytes);
                                        ^

deleting module_cache
Pass 2: analyzed script: 2 probe(s), 1 function(s), 0 embed(s), 0 global(s)
using 103764virt/48504res/7964shr/41020data kb, in 70usr/10sys/78real ms.
Pass 2: analysis failed.  [man error::pass2]
Running rm -rf /tmp/staplnfXEf
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/staplnfXEf"


I have also attached the leaks.stp script.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-10-27 21:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-26 22:18 [Bug translator/19176] New: dieoffset: 0x1924e6 from unknown debug file for /home/amazon/oct-20/ngos/workspace/sysroot/lib/x86_64-linux-gnu/libc-2.19.so function: __GI___libc_malloc at /build/glibc-6hJbOt/glibc-2.19/malloc/malloc.c:2876 thrown from: dwflpp.cxx:2682 dhanakumar_subramani at dell dot com
2015-10-26 22:20 ` [Bug translator/19176] dieoffset: 0x1924e6 from unknown debug file for /home/amazon/oct-20/sysroot/lib/x86_64-linux-gnu/libc-2.19.so " dhanakumar_subramani at dell dot com
2015-10-26 22:40 ` [Bug translator/19176] malloc $bytes "semantic error: No cfa_ops supplied..." jistone at redhat dot com
2015-10-26 23:42 ` dhanakumar_subramani at dell dot com
2015-10-27  1:20 ` jistone at redhat dot com
2015-10-27 18:00 ` dhanakumar_subramani at dell dot com
2015-10-27 18:02 ` dhanakumar_subramani at dell dot com
2015-10-27 21:55 ` jistone at redhat dot com

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).