From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20147 invoked by alias); 13 Sep 2011 19:43:59 -0000 Received: (qmail 20133 invoked by uid 22791); 13 Sep 2011 19:43:58 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Sep 2011 19:43:44 +0000 From: "anish at chelsio dot com" To: systemtap@sourceware.org Subject: [Bug translator/13186] New: systemtap does not correctly point out offending structure when accidentally dereferencing a structure as a string Date: Tue, 13 Sep 2011 19:43:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anish at chelsio dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2011-q3/txt/msg00323.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13186 Bug #: 13186 Summary: systemtap does not correctly point out offending structure when accidentally dereferencing a structure as a string Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: translator AssignedTo: systemtap@sourceware.org ReportedBy: anish@chelsio.com Classification: Unclassified probe point : printf("%s : %s\n",thread_indent(1),kernel_string($kobj->dentry->d_name)) error message : Pass 1: parsed user script and 76 library script(s) using 138788virt/22212res/2784shr kb, in 140usr/10sys/152real ms. semantic error: 'struct qstr' is being accessed instead of a member: identifier '$kobj' at /tmp/sysfs.stp:14:53 source: printf("%s : %s\n",thread_indent(1),kernel_string($kobj->dentry->d_name)) ^ Here d_name is a structure of type qstr; which is the offending dereference however the translator points to $kobj instead of d_name. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.