From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129570 invoked by alias); 12 Nov 2018 09:52:12 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 129513 invoked by uid 48); 12 Nov 2018 09:52:05 -0000 From: "idealities at gmail dot com" To: systemtap@sourceware.org Subject: [Bug tapsets/23879] New: print_ubacktrace can not print function name Date: Mon, 12 Nov 2018 09:52:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: tapsets X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: idealities at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q4/txt/msg00091.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23879 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.17= 4, 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; re= try 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; re= try 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. --=20 You are receiving this mail because: You are the assignee for the bug.