[Bug tapsets/16991] New: infinite loop in task_dentry_path
dsmith at redhat dot com
sourceware-bugzilla@sourceware.org
Tue May 27 13:46:00 GMT 2014
https://sourceware.org/bugzilla/show_bug.cgi?id=16991
Bug ID: 16991
Summary: infinite loop in task_dentry_path
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tapsets
Assignee: systemtap at sourceware dot org
Reporter: dsmith at redhat dot com
CC: henrik at kaarposoft dot dk
As noted in the following email thread,
<https://sourceware.org/ml/systemtap/2014-q2/msg00136.html>
there is a infinite loop in task_dentry_path when it hits virtual file systems
(like the pipe file system). Here's a reproducer:
===================
cd /tmp
mkdir T
cd T
cat > t.sh <<"EOF1"
KX_BASE="$(cd $(dirname ".")/../..; pwd -P)"
echo $KX_BASE
EOF1
cat > t.stp <<"EOF2"
global FSNOTIFY_EVENT_PATH = 1;
probe kernel.function("fsnotify") {
if (!target_set_pid(pid())) { next; }
if ($data_is==FSNOTIFY_EVENT_PATH) {
path = task_dentry_path(task_current(),
@cast($data, "path")->dentry,
@cast($data, "path")->mnt);
println(path);
} }
EOF2
stap -v -c "sh t.sh" t.stp
===================
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list