https://bugs.kde.org/show_bug.cgi?id=372861

            Bug ID: 372861
           Summary: Test pselect_alarm for Bug 359871 seg faults on RHEL 4
           Product: valgrind
           Version: 3.12 SVN
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: ntus...@yahoo.com
  Target Milestone: ---

Linux cacofonix 2.6.9-89.0.9.ELsmp #1 SMP Wed Aug 19 08:06:10 EDT 2009 x86_64
x86_64 x86_64 GNU/Linux

The crash occurs at line

assert(pselect(0, NULL, NULL, NULL, NULL, (sigset_t *)12) == -1);

RHEL 4 does not handle bad address by returning EFAULT

If the goal is to have pselect fail, can the test be replace with 

assert(pselect(-1, NULL, NULL, NULL, NULL, NULL) == -1);
assert(errno == EINVAL);

These changes work on RHEL 4, 5 and 6.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to