public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/23879] New: print_ubacktrace can not print function name
@ 2018-11-12  9:52 idealities at gmail dot com
  2018-11-12  9:53 ` [Bug tapsets/23879] " idealities at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: idealities at gmail dot com @ 2018-11-12  9:52 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 23879
           Summary: print_ubacktrace can not print function name
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tapsets
          Assignee: systemtap at sourceware dot org
          Reporter: idealities at gmail dot com
  Target Milestone: ---

On archlinux, with kernel 4.18.16-arch1-1-ARCH, systemtap (version 4.0/0.174,
non-git sources), elfutils 0.174.

If use stap on target process originated from system packages,
print_ubacktrace() works fine:

$ stap -v  -e 'probe process.function("*") { print_ubacktrace(); exit() }' -x
4924
Pass 1: parsed user script and 470 library scripts using
75324virt/51500res/6800shr/44864data kb, in 100usr/10sys/110real ms.
Pass 2: analyzed script: 234 probes, 2 functions, 0 embeds, 0 globals using
77040virt/54192res/7668shr/46580data kb, in 10usr/0sys/11real ms.
Pass 3: translated to C into
"/tmp/stapOV3tv1/stap_1bc1f6af99b98d562e15bc3b6e4ee1a2_52098_src.c" using
77184virt/54628res/7924shr/46724data kb, in 10usr/100sys/111real ms.
Pass 4: compiled C into "stap_1bc1f6af99b98d562e15bc3b6e4ee1a2_52098.ko" in
3070usr/460sys/3418real ms.
Pass 5: starting run.
WARNING: Missing unwind data for a module, rerun with 'stap -d (unknown; retry
with -DDEBUG_UNWIND)'
 0x55c3c7f8f9c0 : ProcessList_scan+0x0/0x1a0 [/usr/bin/htop]
 0x55c3c7f90497 : ScreenManager_run+0x107/0x11e0 [/usr/bin/htop]
 0x55c3c7f86c51 : main+0x451/0x660 [/usr/bin/htop]
 0x7f067850d223
Pass 5: run completed in 10usr/20sys/1033real ms.


However if I compile a program manually, stap can only print an address,
without function name:

$ stap -v -DSTP_NO_BUILDID_CHECK -e 'probe process.function("*") {
print_ubacktrace(); exit() }' -x 5465
Pass 1: parsed user script and 470 library scripts using
75332virt/51852res/7144shr/44872data kb, in 90usr/10sys/106real ms.
Pass 2: analyzed script: 341 probes, 2 functions, 0 embeds, 0 globals using
77444virt/55028res/8080shr/46984data kb, in 10usr/0sys/14real ms.
Pass 3: using cached
/root/.systemtap/cache/3d/stap_3d92b79fdcedbfc63746fbaa7ff985f2_90414.c
Pass 4: using cached
/root/.systemtap/cache/3d/stap_3d92b79fdcedbfc63746fbaa7ff985f2_90414.ko
Pass 5: starting run.
WARNING: Missing unwind data for a module, rerun with 'stap -d (unknown; retry
with -DDEBUG_UNWIND)'
 0x5608a9394100
Pass 5: run completed in 10usr/20sys/1038real ms.

Is it the compatible error between new gcc versions and systemtap (or its
dependencies like elfutils) ? Thanks.

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

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

end of thread, other threads:[~2019-08-22  0:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-12  9:52 [Bug tapsets/23879] New: print_ubacktrace can not print function name idealities at gmail dot com
2018-11-12  9:53 ` [Bug tapsets/23879] " idealities at gmail dot com
2018-11-12 14:28 ` fche at redhat dot com
2018-11-13  1:58 ` idealities at gmail dot com
2018-11-13  5:35 ` idealities at gmail dot com
2019-08-21 14:05 ` fche at redhat dot com
2019-08-22  0:12 ` fche 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).