Bug 666660
Summary: | inadequate parenthesization in systemtap probe macros | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tom Lane <tgl> |
Component: | systemtap | Assignee: | Frank Ch. Eigler <fche> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 13 | CC: | fche, hhorak, jistone, roland, scox |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-04-24 15:09:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tom Lane
2011-01-02 00:45:10 UTC
Can you check whether changing /usr/include/sys/sdt.h by adding parentheses in these two places works for you? 67: #define STAP_CAST(t) (t) 83: #define STAP_CAST(t) (size_t)(t) Stan, can you audit git systemtap's sdt.h also, to make sure that incoming parameter expressions are parenthesized? The _SDT_PROBE() calls in #define STAP_PROBE... near line 200+ appear to lack this. I confirm those changes silence the warning in Postgres. Personally I'd spell the latter macro as "((size_t) (t))", but maybe I'm just overly paranoid. systemtap-1.4 corrects this. |