https://bugs.kde.org/show_bug.cgi?id=474332
Paul Floyd <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|3.21.0 |3.22 GIT --- Comment #1 from Paul Floyd <[email protected]> --- Exactly which version of GNU libc is this with? At the time that I made these changes aligned_alloc was just an alias for memalign. And memalign basically did no input validation and just allocated something like the next power of 2 sized block of memory. GNU libc behaviour changes with this: https://sourceware.org/pipermail/libc-alpha/2023-March/146383.html I don't yet have a system using that to test. Getting back to older GNU libc. On a Debian system with GNU C Library (Debian GLIBC 2.36-9+deb12u1) stable release version 2.36. Looking to see what aligned_alloc is exactly: nm -D /lib/x86_64-linux-gnu/libc.so.6 | grep aligned_alloc 0000000000099450 W aligned_alloc@@GLIBC_2.16 Then looking for that offset in the file: nm -D /lib/x86_64-linux-gnu/libc.so.6 | grep 0000000000099450 0000000000099450 T __libc_memalign@@GLIBC_2.2.5 0000000000099450 W aligned_alloc@@GLIBC_2.16 0000000000099450 W memalign@@GLIBC_2.2.5 Which means that aligned_alloc is really just a call to memalign. You testcase works fine on that Debian system. Could you post the output that you get with nm? -- You are receiving this mail because: You are watching all bug changes.
