https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92983
--- Comment #7 from Jeffrey A. Law <law at redhat dot com> --- So I first took a clean RHEL 8.1 system with kernel-4.18.0-147 and verified that this simple stap script would fail: stap -p4 -e 'probe module("nfsv3").function("nfs3_commit_done") { println($task) }' Which barfs with something like this output: semantic error: failed to retrieve location attribute for 'task' [man error::dwarf]: identifier '$task' at <input>:1:62 dieoffset: 0x8068a from /usr/lib/debug/lib/modules/4.18.0-105.el8.x86_64/kernel/fs/nfs/nfsv3.ko.debug function: nfs3_commit_done at fs/nfs/nfs3proc.c:847:2 inlined by nfs3_commit_done at fs/nfs/nfs3proc.c:840:12 source: probe module("nfsv3").function("nfs3_commit_done") { println($task) } I then rebuilt/reinstalled GCC with the patch in c#3, then rebuilt the kernel with the updated GCC. The simple stap script above is handled without error (generates a suitable .ko file). So it definitely helps. Richi, do you want to move forward with this?