Bug 4467 - 32 bit signal testcase failure on ppc64.
Summary: 32 bit signal testcase failure on ppc64.
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: testsuite (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-07 14:26 UTC by Srinivasa DS
Modified: 2007-05-07 14:39 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 Srinivasa DS 2007-05-07 14:26:31 UTC
32-bit executable calls different systemcall(comapt_*) compared to 64-bit
executable. So signal.c testcase has to be modified to match the pattern.
======================================================
signal: signal (SIGUSR1, 0x0000000000000001) = 0
signal: signal (SIGUSR1, 0x0000000000000000) = 1
signal: signal (SIGUSR1, 0x00000000100004bc) = 0
signal: compat_sys_sigprocmask (SIG_BLOCK, 0x00000000ffabf76c, 0x0000000000000000) =
  signal: sigprocmask (SIG_BLOCK, 0xc000000016bc3df0, 0x0000000000000000) = 0
signal: compat_sys_sigprocmask (SIG_UNBLOCK, 0x00000000ffabf76c,
0x0000000000000000) =
  signal: sigprocmask (SIG_UNBLOCK, 0xc000000016bc3df0, 0x0000000000000000) = 0
signal: exit_group (0) =
  signal: exit (0) =
--------- EXPECTED and NOT MATCHED ----------
signal: signal \(SIGUSR1, 0x00000001\) = 0
signal: signal \(SIGUSR1, 0x00000000\) = 1
signal: signal \(SIGUSR1, [x0-9a-fA-F]+\) = 0
signal: sigprocmask \(SIG_BLOCK, [x0-9a-fA-F]+, 0x[0]+\) = 0
signal: sigprocmask \(SIG_UNBLOCK, [x0-9a-fA-F]+, 0x[0]+\) = 0
signal: sigaction \(SIGUSR1, [x0-9a-fA-F]+, 0x[0]+\) = 0
========================================

I think we can use "__WORDSIZE" here to distinguish between 64-bit and 32-bit
executables.
Comment 1 Martin Hunt 2007-05-07 15:39:14 UTC
Checked in a fix to CVS.