NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-arm/55533: nodejs fails with "out of memory" on aarch64 (with reproducer)
The following reply was made to PR port-arm/55533; it has been noted by GNATS.
From: coypu%sdf.org@localhost
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: port-arm/55533: nodejs fails with "out of memory" on aarch64
(with reproducer)
Date: Mon, 3 Aug 2020 22:25:39 +0000
From mlelstv, this fails with ENOMEM on aarch64 but not amd64.
(Allocating an already in use address)
#include <stdio.h>
#include <err.h>
#include <sys/mman.h>
int main()
{
void *p;
p = (void *) mmap;
p = mmap(p,0x7f000,PROT_NONE,MAP_PRIVATE | MAP_NORESERVE | MAP_ANONYMOUS, 0xffffffff, 0);
if (p == MAP_FAILED)
err(1,"mmap");
printf("mmap = %p\n", p);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index