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

            Bug ID: 410757
           Summary: glibc wrapper discrepancy for preadv2/pwritev2 system
                    calls across different versions
           Product: valgrind
           Version: 3.15 SVN
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: stefan.maksimo...@rt-rk.com
                CC: mips3...@gmail.com
  Target Milestone: ---

Running the memcheck/tests/linux/sys-preadv2_pwritev2 test on a system with
glibc v2.27 and v2.28 we experienced
a failure which manifested itself in additional output on stderr.
Namely, in addition to the expected output for the preadv2/pwritev2 calls
stderr contained output for preadv/pwritev calls as well.
The wrappers pertaining to v2.27 and v2.28 trigger a call to preadv/pwritev
which produce the extra output.

Inspecting a bit further we found out that the above was due to the changes for
the preadv2/pwritev2 system call wrappers inside glibc.
The versions which do not differ are 2.26 and 2.29.
Those on the other hand differ from the versions 2.27 and 2.28.
The difference can be easily observed here:
https://elixir.bootlin.com/glibc/glibc-2.27/source/sysdeps/unix/sysv/linux/preadv2.c
(it concerns the if statement which checks the return value of SYSCALL_CANCEL).


I presume this should be handled using either a separate .exp or a suppression
file.
Would the latter be the way to go?

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

Reply via email to