On 2019/03/28 11:52, paul.zimmerm...@inria.fr wrote: > >Synopsis: posix_memalign does not return aligned memory > >Category: system > >Environment: > System : OpenBSD 6.1 > Details : OpenBSD 6.1 (GENERIC.MP) #20: Sat Apr 1 13:45:56 MDT 2017 > > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
This is old. > Architecture: OpenBSD.amd64 > Machine : amd64 > >Description: > when compiled, the program below gives: > $ ./a.out > rc=0 res=cc3061966d0 > The 'res' value should be aligned on 64 bytes, i.e., end with > either 00, 40, 80, or c0. > >How-To-Repeat: > ude <stdio.h> > #include <stdlib.h> > int main() > { > void *res = NULL; > int rc = posix_memalign (&res, 64, 2340); > printf ("rc=%d res=%lx\n", rc, (unsigned long) res); > } > Fix: I believe this was fixed in $OpenBSD: malloc.c,v 1.225 2017/05/13 07:11:29 otto Exp $