Bug 19070 - Call to __ustack_raw(0) causes 'Unknown symbol in module' on rhel6-
Summary: Call to __ustack_raw(0) causes 'Unknown symbol in module' on rhel6-
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: tapsets (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-05 20:58 UTC by Martin Cermak
Modified: 2015-10-06 12:33 UTC (History)
1 user (show)

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 Martin Cermak 2015-10-05 20:58:22 UTC
Call to __ustack_raw(0) causes 'Unknown symbol in module' on rhel6 and older kernels (all arches):

=======
 6.7 S x86_64 # stap --poison-cache -e 'probe oneshot{println(__ustack_raw(0))}'
WARNING: "uprobe_get_pc" [/tmp/stapJi1kb4/stap_45d1c4a66fbffea13ac8a0c88df0581e_1588.ko] undefined!
ERROR: Couldn't insert module '/tmp/stapJi1kb4/stap_45d1c4a66fbffea13ac8a0c88df0581e_1588.ko': Unknown symbol in module
WARNING: /root/mcermak-systemtap/systemtap-build/bin/staprun exited with status: 1
Pass 5: run failed.  [man error::pass5]
 6.7 S x86_64 #
=======

Using unoptimized mode (-u) helps here.
Comment 1 Frank Ch. Eigler 2015-10-05 21:21:31 UTC
It might just need the /* pragma:uprobes */ ditty added.
Comment 2 Martin Cermak 2015-10-05 21:39:15 UTC
(In reply to Frank Ch. Eigler from comment #1)
> It might just need the /* pragma:uprobes */ ditty added.

Yup, confirmed!
Comment 3 Martin Cermak 2015-10-06 12:33:05 UTC
Fixed in commit 9808d86fc891468546d3a601bcb74334d9dc7c2a