Bug 11160 - syscall.sigaction32 decoding $act argument incorrectly
Summary: syscall.sigaction32 decoding $act argument incorrectly
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: tapsets (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-11 22:04 UTC by David Smith
Modified: 2010-01-13 15:33 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Smith 2010-01-11 22:04:06 UTC
On a 64-bit system, there are 64-bit and 32-bit versions of the sigaction system
call.

The syscall tapset wrapper for sysaction, 'syscall.sigaction', uses the
'_struct_sigaction_u' auxiliary function to decode the '$act' pointer back into
a string like 'SIG_IGN' or 'SIG_DFL'.

The syscall tapset wrapper for sysaction32, 'syscall.sigaction32', doesn't use
the '_struct_sigaction32_u' auxiliary function to decode the '$act' pointer. 
Even if it used that function, on rawhide kernels (2.6.32.2-15.fc13.x86_64),
that function doesn't decode the argument correctly.  (The hard-coded 'struct
sigaction32' may be a culprit.)
Comment 1 David Smith 2010-01-13 15:33:37 UTC
Fixed in commit c74bc9e.