This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/24199] misleading error when providing wrong printf format for pid().


https://sourceware.org/bugzilla/show_bug.cgi?id=24199

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |fche at redhat dot com
         Resolution|---                         |FIXED

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
After commit d36f6fe, we get:

./stap -p2 -e '                     
probe vfs.read {  
        printf("%s %s %s\n", execname(), pid(), pathname);
}'
semantic error: unknown type in dereference: operator '->' at
...../tapset/linux/dev.stp:73:11
        source:         hd = bdev->bd_disk
                                 ^

semantic error: type mismatch: expected string but found long: identifier 'pid'
at <input>:3:42
        source:         printf("%s %s %s\n", execname(), pid(), pathname);
                                                         ^

Pass 2: analysis failed.  [man error::pass2]
Number of similar error messages suppressed: 30.
Rerun with -v to see them.


So the second message is no longer hidden.
Suppressing the first message (which is a real problem but one that doesn't
impact this end-user script) will be tackled under separate cover.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]