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

            Bug ID: 509107
           Summary: memcheck/tests/duplicate_align_size_errors.cpp fails
    Classification: Developer tools
           Product: valgrind
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: memcheck
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 184712
  --> https://bugs.kde.org/attachment.cgi?id=184712&action=edit
stderr diff

Observed on s390 and amd64 with git revision 6902553f902e6 built from scratch.
glibc version is 2.35 on both platforms.

So it seems that instead of aligned_alloc function memalign is called.
memalign does not have the constraint that size should be a multiple of
the request alignment. Which explains the missing complaint.

This  aligned_alloc -> memalign replacement is not caused by some ifdeffery  in
header files as 
objdump --disassemble=main  does not refer to memalign.  Looks like valgrind's
malloc replacement
machinery may be causing it.

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

Reply via email to