From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7DB65385782E; Wed, 26 May 2021 21:26:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7DB65385782E From: "guillaume at morinfr dot org" To: systemtap@sourceware.org Subject: [Bug tapsets/26184] New: fullpath_struct_file does not handle struct dentry on 5.6.19-300.fc32.x86_64 Date: Wed, 26 May 2021 21:26:50 +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: guillaume at morinfr dot org 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 cc target_milestone attachments.created 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-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 May 2021 21:26:50 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26184 Bug ID: 26184 Summary: fullpath_struct_file does not handle struct dentry on 5.6.19-300.fc32.x86_64 Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: tapsets Assignee: systemtap at sourceware dot org Reporter: craig.ringer at 2ndquadrant dot com CC: guillaume at morinfr dot org Target Milestone: --- CC: guillaume at morinfr dot org Created attachment 12671 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D12671&action=3Ded= it Output from fullpath_struct_file fullpath_struct_file fails in dentry.stp with "type definition 'dentry' not found". Full error output will be provided as attachment. Command: $ stap -v -c /bin/false -e 'probe process.begin { printf("%s", fullpath_struct_file(task_current(), current_exe_file())); exit(); }' semantic error: type definition 'dentry' not found in '': operator '@cast' = at /usr/share/systemtap/tapset/linux/dentry.stp:64:15 source: s =3D & @cast(dentry, "dentry")->d_name; ... more errors ... (see attached) $ uname -r 5.6.19-300.fc32.x86_64 $ rpm -q systemtap systemtap-4.3-1.fc32.x86_64 $ stap --version Systemtap translator/driver (version 4.3/0.179, rpm 4.3-1.fc32) Copyright (C) 2005-2020 Red Hat, Inc. and others This is free software; see the source for copying conditions. tested kernel versions: 2.6.32 ... 5.7.0 enabled features: AVAHI BOOST_STRING_REF DYNINST BPF JAVA PYTHON3 LIBRPM LIBSQLITE3 LIBVIRT LIBXML2 NLS NSS READLINE MONITOR_LIBS The failing command simplifies to: $ stap -v -c /bin/false -e 'probe process.begin { printf("%s", d_name(0)); exit(); }' --- Comment #1 from Craig Ringer --- *** Bug 26185 has been marked as a duplicate of this bug. *** --- Comment #2 from Craig Ringer --- *** Bug 26186 has been marked as a duplicate of this bug. *** --- Comment #3 from Craig Ringer --- Checked latest git 403e92779, same outcome: WARNING: Potential type mismatch in reassignment: identifier 'root_dentry' = at /usr/local/systemtap/share/systemtap/tapset/linux/dentry.stp:246:3 source: root_dentry =3D @cast(task, "task_struct", "kernel")->fs->root->dentry ^ --- Comment #4 from Craig Ringer --- Well, similar anyway; it runs, then dies with ERROR: read fault [man error::fault] at 0x10 near operator '->' at /usr/local/systemtap/share/systemtap/tapset/linux/dentry.stp:267:19 but the warnings from the latest git match the errors from the packaged version. --=20 You are receiving this mail because: You are the assignee for the bug.=