debugging strategies

Rogelio Serrano rogelio.serrano at
Fri Mar 23 23:55:50 PDT 2007

On 3/24/07, Robert Connolly <robert at> wrote:
> GDB doesn't build, or doesn't work?

doesn't work. im always getting "Error accessing memory address
0xnnnnnnnn: Input/output error.". even with all protections turned
off. the programs dont segfault on a non pax kernel.

im debugging a man-db segfault. "man ./man.1" works but "man man"
segfaults. my latest suspect is a getdents64 call returning out of
memory. according to strace.

maybe the apps  are not being pax friendly, so maybe i code refactor
the code and make them pax friendly... or it could be a bug in uclibc.
im  using a snapshot after all.

writing small self-tests and strace does not seem to be so bad...

More information about the hlfs-dev mailing list