This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: __getpagesize: Assertion Failure
- From: Siddhesh Poyarekar <siddhesh dot poyarekar at gmail dot com>
- To: David Chappelle <chappedm at gmail dot com>
- Cc: libc-help <libc-help at sourceware dot org>
- Date: Mon, 12 Jun 2017 23:40:21 +0530
- Subject: Re: __getpagesize: Assertion Failure
- Authentication-results: sourceware.org; auth=none
- References: <CALj-ATJ2SR1qBEe79z_FbrcBKre6Jjya6rv09io+N408BTJZ7w@mail.gmail.com> <CAAHN_R0Jqmhmfk0jg4iW4-VY=J0vLyLj-9YeejSkiQSPc1L7KA@mail.gmail.com> <CALj-ATJQ9aq2GFFdheOK-ZwXZVtDr3rXdm=k-if0hNYW--i0Rg@mail.gmail.com>
On 12 June 2017 at 23:23, David Chappelle <chappedm@gmail.com> wrote:
> Sadly I am stuck working on an embedded device with no gdb. So I don't
> even have a stacktrace to share. Also, I do not have source code for
> the binary that I am executing ... this is my hail mary.
Both ways in which this could happen points to the kernel. One way is
via auxv, where the kernel passes up the page size using the AT_PAGESZ
auxval and the other is EXEC_PAGESIZE macro in param.h, which glibc
builds with to get the initial value of page size.
Siddhesh
--
http://siddhesh.in