This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Possibly a bug in glibc around the getrandom(2) implementation.
- From: Carlos O'Donell <carlos at redhat dot com>
- To: Marcin Mielniczuk <marmistrz dot dev at zoho dot eu>, libc-help at sourceware dot org
- Date: Fri, 14 Jul 2017 11:24:52 -0400
- Subject: Re: Possibly a bug in glibc around the getrandom(2) implementation.
- Authentication-results: sourceware.org; auth=none
- References: <00dbbfa7-05ce-9d3f-d32b-e519c8c0dfc3@zoho.eu> <9e927d7f-b914-4f14-0a09-900bc7169d7c@redhat.com> <20ead7b8-7797-c73d-b0c3-6fbf4999fe58@zoho.eu>
On 07/14/2017 11:04 AM, Marcin Mielniczuk wrote:
> On the other hand, the error I'm experiencing happens only if I'm
> overwriting memory with PTRACE_POKEUSER and gdb won't load a
> scriptable file with a shebang. Should I simply print the RSP
> register in my C utility before overwriting the buffer?
That is a good idea. Likewise you can try to reduce your problem to
something you _can_ debug, for example if you can deatch your tracer
and leave the program in a loop, then you can attach gdb and inspect
the state.
--
Cheers,
Carlos.